spacepaste

  1.  
  2. for i=1, 4 do
  3. local stack = player_inv:get_stack("armor", i)
  4. local item = stack:get_name()
  5. if stack:get_count() == 1 then
  6. local def = stack:get_definition()
  7. for k, v in pairs(elements) do
  8. if v == false then
  9. local level = def.groups["armor_"..k]
  10. "list[detached:"..name.."_armor;armor1;0.25,1.25;1,2;]"..
  11.