suit.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. armor:register_armor("spacesuit:helmet", {
  2. description = "Spacesuit Helmet",
  3. inventory_image = "spacesuit_inv_helmet.png",
  4. groups = {armor_head=5, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1},
  5. wear = 0,
  6. wear_represents = "spacesuit_wear",
  7. })
  8. minetest.register_tool("spacesuit:chestplate", {
  9. description = "Spacesuit Chestplate",
  10. inventory_image = "spacesuit_inv_chestplate.png",
  11. groups = {armor_torso=8, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1},
  12. wear = 0,
  13. wear_represents = "spacesuit_wear",
  14. })
  15. minetest.register_tool("spacesuit:pants", {
  16. description = "Spacesuit Pants",
  17. inventory_image = "spacesuit_inv_pants.png",
  18. groups = {armor_legs=7, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1},
  19. wear = 0,
  20. wear_represents = "spacesuit_wear",
  21. })
  22. minetest.register_tool("spacesuit:boots", {
  23. description = "Spacesuit Boots",
  24. inventory_image = "spacesuit_inv_boots.png",
  25. groups = {armor_feet=4, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1},
  26. wear = 0,
  27. wear_represents = "spacesuit_wear",
  28. })