From 7227fdcb2c2bd3c9acd7e84f10b2ca90db154e5d Mon Sep 17 00:00:00 2001 From: Crabman77 Date: Sun, 10 Jul 2022 21:37:00 +0200 Subject: [PATCH] fix toolrank hell tools and add hell sword --- nalc_hell/init.lua | 99 +++++++--------------------------------------- 1 file changed, 15 insertions(+), 84 deletions(-) diff --git a/nalc_hell/init.lua b/nalc_hell/init.lua index bb8993a..59dc684 100644 --- a/nalc_hell/init.lua +++ b/nalc_hell/init.lua @@ -4,94 +4,25 @@ minetest.register_alias("hell:sword_sywtonic", "nether:sword_sywtonic") -- Hell Toolranks -- Hell Pickaxes -minetest.override_item( - "hell:pick_mushroom", - { - original_description = "Hell Mushroom Pickaxe", - description = toolranks.create_description("Hell Mushroom Pickaxe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:pick_wood", - { - original_description = "Hell Wood Pickaxe", - description = toolranks.create_description("Hell Wood Pickaxe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:pick_hellrack", - { - original_description = "Hellrack Pickaxe", - description = toolranks.create_description("Hellrack Pickaxe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:pick_hellrack_blue", - { - original_description = "Blue Hellrack Pickaxe", - description = toolranks.create_description("Blue Hellrack Pickaxe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:pick_white", - { - original_description = "Siwtonic Pickaxe", - description = toolranks.create_description("Siwtonic Pickaxe", 0, 1), - after_use = toolranks.new_afteruse - }) +toolranks.add_tool("hell:pick_mushroom") +toolranks.add_tool("hell:pick_wood") +toolranks.add_tool("hell:pick_hellrack") +toolranks.add_tool("hell:pick_hellrack_blue") +toolranks.add_tool("hell:pick_white") -- Hell Axes -minetest.override_item( - "hell:axe_hellrack", - { - original_description = "Hellrack Axe", - description = toolranks.create_description("Hellrack Axe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:axe_hellrack_blue", - { - original_description = "Blue Hellrack Axe", - description = toolranks.create_description("Blue Hellrack Axe", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:axe_white", - { - original_description = "Siwtonic Axe", - description = toolranks.create_description("Siwtonic Axe", 0, 1), - after_use = toolranks.new_afteruse - }) +toolranks.add_tool("hell:axe_hellrack") +toolranks.add_tool("hell:axe_hellrack_blue") +toolranks.add_tool("hell:axe_white") -- Hell Shovels -minetest.override_item( - "hell:shovel_hellrack", - { - original_description = "Hellrack Shovel", - description = toolranks.create_description("Hellrack Shovel", 0, 1), - after_use = toolranks.new_afteruse - }) +toolranks.add_tool("hell:shovel_hellrack") +toolranks.add_tool("hell:shovel_hellrack_blue") +toolranks.add_tool("hell:shovel_white") -minetest.override_item( - "hell:shovel_hellrack_blue", - { - original_description = "Blue Hellrack Shovel", - description = toolranks.create_description("Blue Hellrack Shovel", 0, 1), - after_use = toolranks.new_afteruse - }) - -minetest.override_item( - "hell:shovel_white", - { - original_description = "Siwtonic Shovel", - description = toolranks.create_description("Siwtonic Shovel", 0, 1), - after_use = toolranks.new_afteruse - }) +-- Hell swords +toolranks.add_tool("hell:sword_hellrack") +toolranks.add_tool("hell:sword_hellrack_blue") +toolranks.add_tool("hell:sword_white") minetest.log("action", "[nalc_hell] loaded.")