diff options
Diffstat (limited to 'games/minimal/mods')
-rw-r--r-- | games/minimal/mods/experimental/init.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua index 4d4e3e90c..e8aeff2b3 100644 --- a/games/minimal/mods/experimental/init.lua +++ b/games/minimal/mods/experimental/init.lua @@ -615,6 +615,34 @@ minetest.register_craftitem("experimental:tester_tool_2", { end, }) +-- Test the disable_repair=1 group +minetest.register_tool("experimental:unrepairable_tool", { + description = "Unrepairable Tool", + wield_image = "default_stone.png", + inventory_image = "default_stone.png", + tool_capabilities = { + groupcaps = { + cracky = { + times = {3, 2, 1}, + } + } + }, + groups = { disable_repair = 1 } +}) + +minetest.register_tool("experimental:repairable_tool", { + description = "Repairable Tool", + wield_image = "default_dirt.png", + inventory_image = "default_dirt.png", + tool_capabilities = { + groupcaps = { + cracky = { + times = {3, 2, 1}, + } + } + }, +}) + minetest.register_craft({ output = 'experimental:tester_tool_2', recipe = { |