diff --git a/compatibility.lua b/compatibility.lua index 88ff977..40b20f9 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -374,7 +374,7 @@ if industrialtest.mclAvailable then type="shaped", output="industrialtest:"..material.."_pickaxe", recipe={ - {"industrialtest:"..material,"industrialtest:"..material,"industrialtest:"..material}, + {"industrialtest:"..materialItem,"industrialtest:"..materialItem,"industrialtest:"..materialItem}, {"","mcl_core:stick",""}, {"","mcl_core:stick",""} } @@ -383,126 +383,54 @@ if industrialtest.mclAvailable then type="shaped", output="industrialtest:"..material.."_shovel", recipe={ - {"","industrialtest:"..material,""}, - {"","mcl_core:stick",""}, - {"","mcl_core:stick",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_shovel", - recipe={ - {"industrialtest:"..material,"",""}, - {"mcl_core:stick","",""}, - {"mcl_core:stick","",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_shovel", - recipe={ - {"","","industrialtest:"..material}, - {"","","mcl_core:stick"}, - {"","","mcl_core:stick"} + {"industrialtest:"..materialItem}, + {"mcl_core:stick"}, + {"mcl_core:stick"} } }) minetest.register_craft({ type="shaped", output="industrialtest:"..material.."_axe", recipe={ - {"industrialtest:"..material,"industrialtest:"..material,""}, - {"industrialtest:"..material,"mcl_core:stick",""}, - {"","mcl_core:stick",""} + {"industrialtest:"..materialItem,"industrialtest:"..materialItem}, + {"industrialtest:"..materialItem,"mcl_core:stick"}, + {"","mcl_core:stick"} } }) minetest.register_craft({ type="shaped", output="industrialtest:"..material.."_axe", recipe={ - {"","industrialtest:"..material,"industrialtest:"..material}, - {"","mcl_core:stick","industrialtest:"..material}, - {"","mcl_core:stick",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_axe", - recipe={ - {"industrialtest:"..material,"industrialtest:"..material,""}, - {"mcl_core:stick","industrialtest:"..material,""}, - {"mcl_core:stick","",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_axe", - recipe={ - {"","industrialtest:"..material,"industrialtest:"..material}, - {"","mcl_core:stick","industrialtest:"..material}, - {"","","mcl_core:stick"} + {"industrialtest:"..materialItem,"industrialtest:"..materialItem}, + {"mcl_core:stick","industrialtest:"..materialItem}, + {"mcl_core:stick",""} } }) minetest.register_craft({ type="shaped", output="industrialtest:"..material.."_sword", recipe={ - {"industrialtest:"..material,"",""}, - {"industrialtest:"..material,"",""}, - {"mcl_core:stick","",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_sword", - recipe={ - {"","industrialtest:"..material,""}, - {"","industrialtest:"..material,""}, - {"","mcl_core:stick",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_sword", - recipe={ - {"","","industrialtest:"..material}, - {"","","industrialtest:"..material}, - {"","","mcl_core:stick"} + {"industrialtest:"..materialItem}, + {"industrialtest:"..materialItem}, + {"mcl_core:stick"} } }) minetest.register_craft({ type="shaped", output="industrialtest:"..material.."_hoe", recipe={ - {"industrialtest:"..material,"industrialtest:"..material,""}, - {"","mcl_core:stick",""}, - {"","mcl_core:stick",""} + {"industrialtest:"..materialItem,"industrialtest:"..materialItem}, + {"","mcl_core:stick"}, + {"","mcl_core:stick"} } }) minetest.register_craft({ type="shaped", output="industrialtest:"..material.."_hoe", recipe={ - {"","industrialtest:"..material,"industrialtest:"..material}, - {"","","mcl_core:stick"}, - {"","","mcl_core:stick"} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_hoe", - recipe={ - {"","industrialtest:"..material,"industrialtest:"..material}, - {"","mcl_core:stick",""}, - {"","mcl_core:stick",""} - } - }) - minetest.register_craft({ - type="shaped", - output="industrialtest:"..material.."_hoe", - recipe={ - {"industrialtest:"..material,"industrialtest:"..material,""}, - {"mcl_core:stick","",""}, - {"mcl_core:stick","",""} + {"industrialtest:"..materialItem,"industrialtest:"..materialItem}, + {"mcl_core:stick",""}, + {"mcl_core:stick",""} } }) end