From 84b20db53efd460b0056b7d444ecb50da0d2afbe Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Feb 2017 01:05:37 +0100 Subject: [PATCH] Add anvil dummy nodes --- mods/ITEMS/mcl_anvils/depends.txt | 2 + mods/ITEMS/mcl_anvils/init.lua | 44 ++++++++++++++++++ mods/ITEMS/mcl_anvils/mod.conf | 1 + .../textures/mcl_anvils_anvil_base.png | Bin 0 -> 684 bytes .../mcl_anvils_anvil_top_damaged_0.png | Bin 0 -> 500 bytes .../mcl_anvils_anvil_top_damaged_1.png | Bin 0 -> 586 bytes .../mcl_anvils_anvil_top_damaged_2.png | Bin 0 -> 622 bytes 7 files changed, 47 insertions(+) create mode 100644 mods/ITEMS/mcl_anvils/depends.txt create mode 100644 mods/ITEMS/mcl_anvils/init.lua create mode 100644 mods/ITEMS/mcl_anvils/mod.conf create mode 100644 mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_base.png create mode 100644 mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_0.png create mode 100644 mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_1.png create mode 100644 mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_2.png diff --git a/mods/ITEMS/mcl_anvils/depends.txt b/mods/ITEMS/mcl_anvils/depends.txt new file mode 100644 index 0000000000..115fd33401 --- /dev/null +++ b/mods/ITEMS/mcl_anvils/depends.txt @@ -0,0 +1,2 @@ +mcl_sounds +mcl_core diff --git a/mods/ITEMS/mcl_anvils/init.lua b/mods/ITEMS/mcl_anvils/init.lua new file mode 100644 index 0000000000..eae860c3dc --- /dev/null +++ b/mods/ITEMS/mcl_anvils/init.lua @@ -0,0 +1,44 @@ +local anvildef = { + groups = {cracky=1, falling_node=1, deco_block=1}, + tiles = {"mcl_anvils_anvil_top_damaged_0.png^[transformR90", "mcl_anvils_anvil_base.png"}, + paramtype = "light", + sunlight_propagates = true, + is_ground_content = false, + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-6/16, -8/16, -5/16, 6/16, -6/16, 5/16}, + {-5/16, -6/16, -3/16, 5/16, 0, 3/16}, + {-7/16, -2/16, -4/16, 7/16, 4/16, 4/16} + } + }, + sounds = mcl_sounds.node_sound_metal_defaults(), +} + +local anvildef0 = table.copy(anvildef) +anvildef0.description = "Anvil" + +local anvildef1 = table.copy(anvildef) +anvildef1.description = "Slightly Damaged Anvil" +anvildef1.groups.not_in_creative_inventory = 1 +anvildef1.tiles = {"mcl_anvils_anvil_top_damaged_1.png^[transformR90", "mcl_anvils_anvil_base.png"} + +local anvildef2 = table.copy(anvildef) +anvildef2.description = "Very Damaged Anvil" +anvildef2.groups.not_in_creative_inventory = 1 +anvildef2.tiles = {"mcl_anvils_anvil_top_damaged_2.png^[transformR90", "mcl_anvils_anvil_base.png"} + +minetest.register_node("mcl_anvils:anvil", anvildef0) +minetest.register_node("mcl_anvils:anvil_damage_1", anvildef1) +minetest.register_node("mcl_anvils:anvil_damage_2", anvildef2) + +minetest.register_craft({ + output = "mcl_anvils:anvil", + recipe = { + { "mcl_core:ironblock", "mcl_core:ironblock", "mcl_core:ironblock" }, + { "", "mcl_core:iron_ingot", "" }, + { "mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot" }, + } +}) diff --git a/mods/ITEMS/mcl_anvils/mod.conf b/mods/ITEMS/mcl_anvils/mod.conf new file mode 100644 index 0000000000..7712df1901 --- /dev/null +++ b/mods/ITEMS/mcl_anvils/mod.conf @@ -0,0 +1 @@ +name = mcl_anvils diff --git a/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_base.png b/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_base.png new file mode 100644 index 0000000000000000000000000000000000000000..d130357f37149f7f5d11546eec142b1279c39c81 GIT binary patch literal 684 zcmeAS@N?(olHy`uVBq!ia0vp^3Lwk@BpAX3RW*PVOS+@4BLl<6e(pbstRTr`k04(L zhAK4%hK3dfhF?ITh8GMBr3MTPuM!v-tY$DUh!@P+6=(yLU`q0KcVYP7-hXC4kjGx) z>Fdh=kV%X|SAo^axtW21af_#mV~E9R-^qd7R1`U!^_@gbZ_oPs{&}W$n%$dsm47N! zEEPC!#otb2;1lQZP-9hC`Sw^Nqn^U#bF2vrt|7(Nk_^8V#_`DbuG-l6v(fqk!vql) zmp8mqf^FtD`#6W{sXU% z`^?)bKCJ#9c_UmQjaiTBq}SS?9;{8T82)xxsZUxrTlRF^*)=)~>`S^NhQ%pHt*$koFAnirV5ZX`klMHC6=dQ%eiA*Q!-AdUtmzve0j}})3e;`$wV_VUNy^# z&-x2nI~d|vHuRrA-K+F9?&8D)z8#NppIRQVxW`wJAuqna+Wv&mht0}@8$WUDX-Fts zPGrg5n9%coM{?Uamco*VK9xi-BT7;dOH!?pi&B9UgOP!uxvqhcu8~oQfq|8YnU$fT uwt=CQfkC+5-T)L0x%nxXX_e?2Os$NKAR6{{F6IYnVDNPHb6Mw<&;$U{X#+X{ literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_0.png b/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_0.png new file mode 100644 index 0000000000000000000000000000000000000000..7666b1f5815aeeb28d2ef094f2a13db9468f244d GIT binary patch literal 500 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fgAr#;f;`;ype>*EHCwqG@ zH#c(=6Cl@*(NP{K%UBZR7tG-B>_!@hljQC0!qCAg>jC7jmw5WRvOi=JW6)J#wQ_C- z3SIJaaSYKoA3EXfRu(}4m!$z74rf&yyc5cv%3s$0T(eewPVv@VcjpxI%?q0?Sn!|w zpV8`t3VaDsk_Xr1PGEdn$}pcP#NpPN1B;t@;+Q|=@u((7+T@D~S?cRvmfmIji%a^; z^$+Hs&s->O@IB77O0Ral0_*7~7bBV&3%@h^HdT0=I9#=@%+39)^|09NTghwnw>|g5 zA9Fgr6PkTEmA9>JZsAEq&q(ofOP z>D1P3?^OOW#aEwP{g>I0QFHkkkrN=_sg}4#l%yn~RsBcl)l z11l3VD?>wV14AnVgK)jQ0Vo=B^HVa@D$zBVS{WNbH0^JH Bsy6@t literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_1.png b/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_1.png new file mode 100644 index 0000000000000000000000000000000000000000..5f2dbb897eefe837a64a50e72b4d1b63699237d3 GIT binary patch literal 586 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fgp%vg0;`;ype>*EHCwqG@ zH#c(=6JrAdQzN6WprFveKp#&J69a<)Utb+9EugaVw>QWEbupF%`2{mLJiCzw;v{*y zyD)UH%6b4f>?NMQuIvw)#29oHSgo9!fzkq=E{-7@=R+rM^gC=I;`*8UdY@M4t4FiB zN=xH@G+g@Q7}~j2NY<#C#oAkPw@ZmD$HEWXJ(53k;=10pn5S55I{$U|$xS-V3q!UF zocPDKOkibBrwzl!j~kS}a@Z`muf_0K=L>`8#YWQ&pA!TbrknEn^JyL}I2kQ;Z+S%A zT(*}l9E>A`FWj!4QT{7(N)Y4zlWL4Ny>?dZ-q-)&@rKVS-z8-?PyhT_uKTm*zQq@P zZ~gIZW~vZKxN6(K@v0lI{pI$Td2jOX+?dh#(vtPsV?XV#)0MG2wr=i?>n=|)5@p#V z7k!cIu8YmdKI;Vst03bBdasU7T literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_2.png b/mods/ITEMS/mcl_anvils/textures/mcl_anvils_anvil_top_damaged_2.png new file mode 100644 index 0000000000000000000000000000000000000000..fdcb3812bc39af79bdef74b80310ab050f906258 GIT binary patch literal 622 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fgp%vg0;`;ype>*EHCwqG@ zH#c(=6JrB|(7-?+Pmi#mAX6hF69a<)Utb+9EugY@t&b&vx)@7>{DK)Ap4~_Tagw~< zT^Kr8Wj%l#_7YEDSN4ZYVhp+ptX9s=Kxq?C7sn8d^RAZ+y$?G`us!(G`aO!1arz!z z(c`D5KZ?2SI%mt02P>Sk^X4W!Tb0rq<$ZLe^T99r7GjPc+$%5b{(P+c@!8+C(-kL^7K(~KF~7p%FZWkTQLzJY&lK13tUMdxu2+)UF#pM+W**g-Yjzp4%YXKn{Pk9< z%j7+4Hp~xScl?k~kcs&UDY18~FRolyJK=O|zrubOxtfiWW$wrwPkgGtbY+?$7yHA_ z$GRggPGs#}_#pkKeGGSL?ENXv>l_cf-XXAaZL++TtHl-eo%Q0Ic||U@?7ldc)0gv0 zMxq|)!h8Ft^PQRD5HjuQskIvnHY`)w_i`o2dJj>n7qcflc~|~}^*)#X-_3~|HUNWE zwZt`|BqgyV)hf9t6-Y4{85o-D8W`ys8HE@aSeckv85(LE7+M(^gzN1MK+%w!pOTqY ciLSxa%Gd~^VPEHBexL>hPgg&ebxsLQ0KFdNQ~&?~ literal 0 HcmV?d00001