From 5c6d2b494bea4c4da9f5b7658bb67e508051277d Mon Sep 17 00:00:00 2001 From: coil <51716565+coil0@users.noreply.github.com> Date: Mon, 1 Jul 2019 00:04:40 -0400 Subject: [PATCH 1/2] Make spacesuit not repairable by anvil --- suit.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/suit.lua b/suit.lua index c0ba67c..5942db1 100644 --- a/suit.lua +++ b/suit.lua @@ -3,27 +3,27 @@ armor:register_armor("spacesuit:helmet", { description = "Spacesuit Helmet", inventory_image = "spacesuit_inv_helmet.png", - groups = {armor_head=5, armor_heal=1, armor_use=spacesuit.armor_use}, + groups = {armor_head=5, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, }) minetest.register_tool("spacesuit:chestplate", { description = "Spacesuit Chestplate", inventory_image = "spacesuit_inv_chestplate.png", - groups = {armor_torso=8, armor_heal=1, armor_use=spacesuit.armor_use}, + groups = {armor_torso=8, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, }) minetest.register_tool("spacesuit:pants", { description = "Spacesuit Pants", inventory_image = "spacesuit_inv_pants.png", - groups = {armor_legs=7, armor_heal=1, armor_use=spacesuit.armor_use}, + groups = {armor_legs=7, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, }) minetest.register_tool("spacesuit:boots", { description = "Spacesuit Boots", inventory_image = "spacesuit_inv_boots.png", - groups = {armor_feet=4, armor_heal=1, armor_use=spacesuit.armor_use}, + groups = {armor_feet=4, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, -}) \ No newline at end of file +}) From d113fd26fdf88a90cda89aaea2d9decb4d38e795 Mon Sep 17 00:00:00 2001 From: coil <51716565+coil0@users.noreply.github.com> Date: Mon, 1 Jul 2019 00:21:30 -0400 Subject: [PATCH 2/2] Make spacesuit not repairable by the tool workshop --- suit.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/suit.lua b/suit.lua index 5942db1..31179fc 100644 --- a/suit.lua +++ b/suit.lua @@ -5,6 +5,7 @@ armor:register_armor("spacesuit:helmet", { inventory_image = "spacesuit_inv_helmet.png", groups = {armor_head=5, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, + wear_represents = "spacesuit_wear", }) minetest.register_tool("spacesuit:chestplate", { @@ -12,6 +13,7 @@ minetest.register_tool("spacesuit:chestplate", { inventory_image = "spacesuit_inv_chestplate.png", groups = {armor_torso=8, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, + wear_represents = "spacesuit_wear", }) minetest.register_tool("spacesuit:pants", { @@ -19,6 +21,7 @@ minetest.register_tool("spacesuit:pants", { inventory_image = "spacesuit_inv_pants.png", groups = {armor_legs=7, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, + wear_represents = "spacesuit_wear", }) minetest.register_tool("spacesuit:boots", { @@ -26,4 +29,5 @@ minetest.register_tool("spacesuit:boots", { inventory_image = "spacesuit_inv_boots.png", groups = {armor_feet=4, armor_heal=1, armor_use=spacesuit.armor_use, not_repaired_by_anvil=1}, wear = 0, + wear_represents = "spacesuit_wear", })