From 3fe5271fdfebc6e6ac618bf8dac2b97ca138c329 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Mar 2017 17:26:33 +0100 Subject: [PATCH] Add basic cauldron --- mods/ITEMS/mcl_cauldrons/depends.txt | 1 + mods/ITEMS/mcl_cauldrons/init.lua | 45 ++++++++++++++++++ mods/ITEMS/mcl_cauldrons/mod.conf | 1 + .../textures/mcl_cauldrons_cauldron.png | Bin 0 -> 563 bytes .../mcl_cauldrons_cauldron_bottom.png | Bin 0 -> 428 bytes .../textures/mcl_cauldrons_cauldron_inner.png | Bin 0 -> 620 bytes .../textures/mcl_cauldrons_cauldron_side.png | Bin 0 -> 989 bytes .../textures/mcl_cauldrons_cauldron_top.png | Bin 0 -> 601 bytes 8 files changed, 47 insertions(+) create mode 100644 mods/ITEMS/mcl_cauldrons/depends.txt create mode 100644 mods/ITEMS/mcl_cauldrons/init.lua create mode 100644 mods/ITEMS/mcl_cauldrons/mod.conf create mode 100644 mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron.png create mode 100644 mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_bottom.png create mode 100644 mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_inner.png create mode 100644 mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_side.png create mode 100644 mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_top.png diff --git a/mods/ITEMS/mcl_cauldrons/depends.txt b/mods/ITEMS/mcl_cauldrons/depends.txt new file mode 100644 index 000000000..3d96266de --- /dev/null +++ b/mods/ITEMS/mcl_cauldrons/depends.txt @@ -0,0 +1 @@ +mcl_sounds diff --git a/mods/ITEMS/mcl_cauldrons/init.lua b/mods/ITEMS/mcl_cauldrons/init.lua new file mode 100644 index 000000000..c41674ec9 --- /dev/null +++ b/mods/ITEMS/mcl_cauldrons/init.lua @@ -0,0 +1,45 @@ +minetest.register_node("mcl_cauldrons:cauldron", { + description = "Cauldron", + wield_image = "mcl_cauldrons_cauldron.png", + inventory_image = "mcl_cauldrons_cauldron.png", + drawtype = "nodebox", + paramtype = "light", + sunlight_propagates = true, + groups = {pickaxey=1}, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.1875, -0.5, -0.375, 0.5, 0.5}, -- Left wall + {0.375, -0.1875, -0.5, 0.5, 0.5, 0.5}, -- Right wall + {-0.375, -0.1875, 0.375, 0.375, 0.5, 0.5}, -- Back wall + {-0.375, -0.1875, -0.5, 0.375, 0.5, -0.375}, -- Front wall + {-0.5, -0.3125, -0.5, 0.5, -0.1875, 0.5}, -- Floor + {-0.5, -0.5, -0.5, -0.375, -0.3125, -0.25}, -- Left front foot, part 1 + {-0.375, -0.5, -0.5, -0.25, -0.3125, -0.375}, -- Left front foot, part 2 + {-0.5, -0.5, 0.25, -0.375, -0.3125, 0.5}, -- Left back foot, part 1 + {-0.375, -0.5, 0.375, -0.25, -0.3125, 0.5}, -- Left back foot, part 2 + {0.375, -0.5, 0.25, 0.5, -0.3125, 0.5}, -- Right back foot, part 1 + {0.25, -0.5, 0.375, 0.375, -0.3125, 0.5}, -- Right back foot, part 2 + {0.375, -0.5, -0.5, 0.5, -0.3125, -0.25}, -- Right front foot, part 1 + {0.25, -0.5, -0.5, 0.375, -0.3125, -0.375}, -- Right front foot, part 2 + } + }, + selection_box = { type = "regular" }, + tiles = { + "mcl_cauldrons_cauldron_inner.png^mcl_cauldrons_cauldron_top.png", + "mcl_cauldrons_cauldron_inner.png^mcl_cauldrons_cauldron_bottom.png", + "mcl_cauldrons_cauldron_side.png" + }, + sounds = mcl_sounds.node_sound_metal_defaults(), + _mcl_hardness = 2, + _mcl_blast_resistance = 10, +}) + +minetest.register_craft({ + output = "mcl_cauldrons:cauldron", + recipe = { + { "mcl_core:iron_ingot", "", "mcl_core:iron_ingot" }, + { "mcl_core:iron_ingot", "", "mcl_core:iron_ingot" }, + { "mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot" }, + } +}) diff --git a/mods/ITEMS/mcl_cauldrons/mod.conf b/mods/ITEMS/mcl_cauldrons/mod.conf new file mode 100644 index 000000000..1bedf9d73 --- /dev/null +++ b/mods/ITEMS/mcl_cauldrons/mod.conf @@ -0,0 +1 @@ +name = mcl_cauldrons diff --git a/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron.png b/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron.png new file mode 100644 index 0000000000000000000000000000000000000000..579630ee4be6f1aaf3319bc40cfc8765613dc17f GIT binary patch literal 563 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4i*LmhMUEk>KPaqSkfJR9T^xl_H+M9WCckk zdj$D1FjT2AFf_C0_3kUG+V3>T3I(OIbUt={qL;(LD7`!BcH+?o|7ZMM%$OJa=T+Fy7n3ONXAY^erWnD*6(+ox_qq35W@~vA;O#bk6sKq(D^4;;@ zBsTFuBa2qqfmUv5GmbSs-|v~UbS6jF+q1QPeNJc3RhBz`=FqVF!Ir=s(kRY4ZKZoo zrCg`!hbfnwdYyK=RbAhDT4e?Y`$gUk)s5l`>Kz}i)T*&9H(2Ym@WqQqYIU93kIvrk z4RK(XVcA?7^=CnC} fQ!>*kF*O()Lo}rA@Nj2fU|{fc^>bP0l+XkK*%`^d literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_bottom.png b/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..edc14daf151569fdbdbcfa83235ed672ea2475bd GIT binary patch literal 428 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4i*LmhMUEk>KPaqSkfJR9T^xl_H+M9WCckk zdj$D1FjT2AFf_CE0oxO7DF^E%N}Z>R6xEtvO6zN!6z;t%Pj=$RS` z+&`+6B2OBwXWSdMlWW_P=x_m*=zkTyRf4+>n{P}~I9$8tNZ-GTD%%T7#9!%sDlNSwWJ? z9znhg3{`3j3=J&|48Ir{7#dzMFq9fFFuY1&V6d9Oz#v{QXIG#N0|Nt7lDE4H!~gdF zGy54B7}!fZeO=ifGBXOYN$YdpkY`|EEb(-446!(EI@yyi)tu*u$ITbPPybE#nm41h zzB=)M@EWaYf7IJ&EoHi(cD=L3bMi_Dm*U7n#_2zn~ zHz<2c$oE>$-p;FbV=7Y=Q`zx}M_+jHOp#y9nVD>zch5+3-;I+;f1LAsa-}v)ciLYk zi})F#CJL^<<-Kq1;&^y)huaSCErOp5Zyn}SZ1&u8JI`^$?XVuBSEr8u3XP7Bf7{O; zbE+wdLm|4*DWO7W-pLta5%R8gc;?xkn4LWJsnTO*$q$Dk&8E~{{F3!>kMJdNX|uzE z9uFo?FX-RTxc*w2jN$z2Mjwkx-Y(q6In(EgUJKtM1NQU31)is_7tE9345}rr5hW>!C8<`)MX8A;sSHL2hUU5k#<~WEA%^Bw24+@9=Gq2^ lRt5$K4(<0q(U6;;l9^VCTf@fr>|a31$kWx&Wt~$(699AK?2Z5c literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_side.png b/mods/ITEMS/mcl_cauldrons/textures/mcl_cauldrons_cauldron_side.png new file mode 100644 index 0000000000000000000000000000000000000000..d9c62141e2663990353d0c6f8b7ed70dff6828d6 GIT binary patch literal 989 zcmV<310wv1P)kdg00004XF*Lt006O% z3;baP0000WV@Og>004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00002 zVoOIv0RM-N%)bBt00(qQO+^Rc0|5~R8!rpk9{>OXL9&uLiq2 zB9H}d!CUbD`@97L#LextT?32y(?mjq>P^e8;nbO&ew~}khOTOEC@yR!D5j)?OP6E= z4NvuS+MOtx-82-N)4)^=J*HDlTqZFiug4Y1t}C(@)7R-kkrh=BOajwgR@psci>|md zyAc;?vKjE#sZ3cmR17t1E;n6~0%lT>wYV)wGTjWx^}=@;GSg4qkWIs(7zVD_7RfX* zT^`7WCcC+*Q}Q0COoy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