diff --git a/init.lua b/init.lua index 9c72ba9..c6e24c1 100644 --- a/init.lua +++ b/init.lua @@ -115,6 +115,7 @@ end -- Load files dofile(nether.path .. "/portal_api.lua") dofile(nether.path .. "/nodes.lua") +dofile(nether.path .. "/tools.lua") if nether.NETHER_REALM_ENABLED then if nether.useBiomes then dofile(nether.path .. "/mapgen.lua") diff --git a/nodes.lua b/nodes.lua index 770ae0c..ea94206 100644 --- a/nodes.lua +++ b/nodes.lua @@ -103,6 +103,14 @@ minetest.register_node("nether:brick", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("nether:brick_compressed", { + description = S("Compressed Netherbrick"), + tiles = {"nether_brick_compressed.png"}, + groups = {cracky = 3, level = 2}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), +}) + local fence_texture = "default_fence_overlay.png^nether_brick.png^default_fence_overlay.png^[makealpha:255,126,126" @@ -405,4 +413,11 @@ minetest.register_craft({ }, }) - +minetest.register_craft({ + output = "nether:brick_compressed", + recipe = { + {"nether:brick","nether:brick","nether:brick"}, + {"nether:brick","nether:brick","nether:brick"}, + {"nether:brick","nether:brick","nether:brick"}, + } +}) diff --git a/textures/nether_brick_compressed.png b/textures/nether_brick_compressed.png new file mode 100644 index 0000000..9c7fd05 Binary files /dev/null and b/textures/nether_brick_compressed.png differ diff --git a/textures/nether_nether_ingot.png b/textures/nether_nether_ingot.png new file mode 100644 index 0000000..82aed3a Binary files /dev/null and b/textures/nether_nether_ingot.png differ diff --git a/textures/nether_nether_lump.png b/textures/nether_nether_lump.png new file mode 100644 index 0000000..6944572 Binary files /dev/null and b/textures/nether_nether_lump.png differ diff --git a/textures/nether_tool_netheraxe.png b/textures/nether_tool_netheraxe.png new file mode 100644 index 0000000..d0554e0 Binary files /dev/null and b/textures/nether_tool_netheraxe.png differ diff --git a/textures/nether_tool_netherpick.png b/textures/nether_tool_netherpick.png new file mode 100644 index 0000000..6794553 Binary files /dev/null and b/textures/nether_tool_netherpick.png differ diff --git a/textures/nether_tool_nethershovel.png b/textures/nether_tool_nethershovel.png new file mode 100644 index 0000000..fddffbd Binary files /dev/null and b/textures/nether_tool_nethershovel.png differ diff --git a/textures/nether_tool_nethersword.png b/textures/nether_tool_nethersword.png new file mode 100644 index 0000000..93ae28a Binary files /dev/null and b/textures/nether_tool_nethersword.png differ diff --git a/tools.lua b/tools.lua new file mode 100644 index 0000000..637cdf0 --- /dev/null +++ b/tools.lua @@ -0,0 +1,119 @@ +local S = nether.get_translator + +minetest.register_tool("nether:pick_nether", { + description = S("Nether Pickaxe"), + inventory_image = "nether_tool_netherpick.png", + tool_capabilities = { + full_punch_interval = 0.8, + max_drop_level=3, + groupcaps={ + cracky = {times={[1]=1.90, [2]=0.9, [3]=0.4}, uses=35, maxlevel=3}, + }, + damage_groups = {fleshy=4}, + }, + sound = {breaks = "default_tool_breaks"}, + groups = {pickaxe = 1} +}) + +minetest.register_tool("nether:shovel_nether", { + description = S("Nether Shovel"), + inventory_image = "nether_tool_nethershovel.png", + wield_image = "nether_tool_nethershovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps={ + crumbly = {times={[1]=1.0, [2]=0.4, [3]=0.25}, uses=35, maxlevel=3}, + }, + damage_groups = {fleshy=4}, + }, + sound = {breaks = "default_tool_breaks"}, + groups = {shovel = 1} +}) + +minetest.register_tool("nether:axe_nether", { + description = S("Nether Axe"), + inventory_image = "nether_tool_netheraxe.png", + tool_capabilities = { + full_punch_interval = 0.8, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=1.9, [2]=0.7, [3]=0.4}, uses=35, maxlevel=3}, + }, + damage_groups = {fleshy=7}, + }, + sound = {breaks = "default_tool_breaks"}, + groups = {axe = 1} +}) + +minetest.register_tool("nether:sword_nether", { + description = S("Nether Sword"), + inventory_image = "nether_tool_nethersword.png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=1.5, [2]=0.6, [3]=0.2}, uses=45, maxlevel=3}, + }, + damage_groups = {fleshy=10}, + }, + sound = {breaks = "default_tool_breaks"}, + groups = {sword = 1} +}) + +minetest.register_craftitem("nether:nether_ingot", { + description = S("Nether Ingot"), + inventory_image = "nether_nether_ingot.png" +}) +minetest.register_craftitem("nether:nether_lump", { + description = S("Nether Lump"), + inventory_image = "nether_nether_lump.png", +}) + +minetest.register_craft({ + type = "cooking", + output = "nether:nether_ingot", + recipe = "nether:nether_lump", + cooktime = 30, +}) +minetest.register_craft({ + output = "nether:nether_lump", + recipe = { + {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, + {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, + {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, + } +}) + +minetest.register_craft({ + output = "nether:pick_nether", + recipe = { + {"nether:nether_ingot","nether:nether_ingot","nether:nether_ingot"}, + {"", "group:stick", ""}, + {"", "group:stick", ""} + } +}) +minetest.register_craft({ + output = "nether:shovel_nether", + recipe = { + {"nether:nether_ingot"}, + {"group:stick"}, + {"group:stick"} + } +}) +minetest.register_craft({ + output = "nether:axe_nether", + recipe = { + {"nether:nether_ingot","nether:nether_ingot"}, + {"nether:nether_ingot","group:stick"}, + {"","group:stick"} + } +}) +minetest.register_craft({ + output = "nether:sword_nether", + recipe = { + {"nether:nether_ingot"}, + {"nether:nether_ingot"}, + {"group:stick"} + } +})