From c7776cc082071c588578463e0a380bae939a28c5 Mon Sep 17 00:00:00 2001 From: lortas Date: Fri, 1 Jan 2021 13:54:48 +0100 Subject: [PATCH] Add nether based tools to mod (#31) * textures for new tool items * axe, shovel, pick, sword based on nether * run also tools.lua * Textture for Compressed Netherbrick * new node "Compressed Netherbrick" * define how to craft "Compressed Netherbrick" * change recipe for NetherLump and remove old node * Delete nether_nether_compressed.png --- init.lua | 1 + nodes.lua | 17 +++- textures/nether_brick_compressed.png | Bin 0 -> 342 bytes textures/nether_nether_ingot.png | Bin 0 -> 203 bytes textures/nether_nether_lump.png | Bin 0 -> 164 bytes textures/nether_tool_netheraxe.png | Bin 0 -> 201 bytes textures/nether_tool_netherpick.png | Bin 0 -> 223 bytes textures/nether_tool_nethershovel.png | Bin 0 -> 231 bytes textures/nether_tool_nethersword.png | Bin 0 -> 181 bytes tools.lua | 119 ++++++++++++++++++++++++++ 10 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 textures/nether_brick_compressed.png create mode 100644 textures/nether_nether_ingot.png create mode 100644 textures/nether_nether_lump.png create mode 100644 textures/nether_tool_netheraxe.png create mode 100644 textures/nether_tool_netherpick.png create mode 100644 textures/nether_tool_nethershovel.png create mode 100644 textures/nether_tool_nethersword.png create mode 100644 tools.lua 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 0000000000000000000000000000000000000000..9c7fd0580d0c3192addd5f69da1d0d53f173bef9 GIT binary patch literal 342 zcmV-c0jd6pP)9TPb@4-E-O(kEmAKoS1&MFFELs% zGF>z^OG+qFODa-KD_c)5W@I~JW; zG>V@Hmz)@SlKBEI0M--5U6WYwWqyNAs+n~Pvfu_R;T2-=6R&Wk|B*P>oBA_m@4eRI z{?Q-GITy=co7+UpG9j&)!2OZpAP}nJ@h?$>`~pWwcQsMit*QwzgcU_KRmt#51AGcQt`nC+pF8}}l07*qoM6N<$f=tYO=l}o! literal 0 HcmV?d00001 diff --git a/textures/nether_nether_ingot.png b/textures/nether_nether_ingot.png new file mode 100644 index 0000000000000000000000000000000000000000..82aed3a3001da69cf152f9bba5a92a4928b0d5c3 GIT binary patch literal 203 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFP2=EDU4P{`6OVUrtG|9{}&&szf zsd6Zs80I8W(4*wx$9+k1c~O*#3`GiC<>BRs5$Wy~wt8;YJOJOYI%VV?)6BAL?iz`bLiG4HY rjYdtFS&5zT)So^p?j`(y0cU-2 ze^cH-OPOdVnH*1H*Kk*lNO#8|hrr|jAj2!hGd4davnHdkrJ$^{)Yooi9Z)l4NswPK zgTu2MX+Tb(r;B5V#O2yPN4^FH9v1TeR>tg&|NpOU6ZY<@o^9zP_9J3t+3Q7q`@^2b z3eA2NdBUSq=(b$ce5;on`N!3!1%@R#SQ~d4GM6S!IXKb(c*lL)$yQ8#{U%E9K<@N( L^>bP0l+XkKb>Kqv literal 0 HcmV?d00001 diff --git a/textures/nether_tool_nethershovel.png b/textures/nether_tool_nethershovel.png new file mode 100644 index 0000000000000000000000000000000000000000..fddffbd68e92d1890642bbeb7f556f7d0aa220f7 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Yk*IPYwpQyK&FC$LZGEgj;C;H zd5X2FKyho4yP;5CLvCSnLCdtJwi&HvN&?eYO#?E3T-R{d?zvs_HqHfdy<)r)9EJbp zJ)Z$Ig|Q^aFPOpM*^M+HC&1IiF+}3>((~SY4F()60ZmFG3+3y-+pk)elf6hf{kz%* ziH7fI0+Z9Z9E%^T2Bhuo^;x-Q*LChKn*t9-bx0JxcHZ#S!0-C?!yk^{%P(p_Kc~2g V$?$KL-9n(*44$rjF6*2Ung9%sR1g3F literal 0 HcmV?d00001 diff --git a/textures/nether_tool_nethersword.png b/textures/nether_tool_nethersword.png new file mode 100644 index 0000000000000000000000000000000000000000..93ae28ae1f3dd1f38bb8795fbdf2ba68a15a18b3 GIT binary patch literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFv4DbnY1=2u}*N~fDnWkW%kWiH1 z72{>8E@bXup5rO(Z^~OPdvG^U1!GB&UoeBivm0qZj+3X0V+hCf