From 3195ba738e61e4171272b714e12325734ed3b56e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 02:04:01 +0100 Subject: [PATCH] Add basic chorus flower node --- mods/mcl_end/init.lua | 45 ++++++++++++++++++ .../textures/mcl_end_chorus_flower.png | Bin 0 -> 2673 bytes .../textures/mcl_end_chorus_flower_dead.png | Bin 0 -> 2416 bytes 3 files changed, 45 insertions(+) create mode 100644 mods/mcl_end/textures/mcl_end_chorus_flower.png create mode 100644 mods/mcl_end/textures/mcl_end_chorus_flower_dead.png diff --git a/mods/mcl_end/init.lua b/mods/mcl_end/init.lua index cba9b5fda4..f57adedd7f 100644 --- a/mods/mcl_end/init.lua +++ b/mods/mcl_end/init.lua @@ -107,6 +107,51 @@ minetest.register_node("mcl_end:dragon_egg", { -- TODO: Make dragon egg teleport on punching }) +local chorus_flower_box = { + type = "fixed", + fixed = { + {-0.5, -0.375, -0.375, 0.5, 0.375, 0.375}, + {-0.375, -0.375, 0.375, 0.375, 0.375, 0.5}, + {-0.375, -0.375, -0.5, 0.375, 0.375, -0.375}, + {-0.375, 0.375, -0.375, 0.375, 0.5, 0.375}, + {-0.375, -0.5, -0.375, 0.375, -0.375, 0.375}, + } +} + +minetest.register_node("mcl_end:chorus_flower", { + description = "Chorus Flower", + tiles = { + "mcl_end_chorus_flower.png", + "mcl_end_chorus_flower.png", + "mcl_end_chorus_flower.png", + "mcl_end_chorus_flower.png", + "mcl_end_chorus_flower.png", + "mcl_end_chorus_flower.png", + }, + drawtype = "nodebox", + paramtype = "light", + node_box = chorus_flower_box, + sounds = mcl_core.node_sound_wood_defaults(), + groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1 }, +}) + +minetest.register_node("mcl_end:chorus_flower_dead", { + description = "Dead Chorus Flower", + tiles = { + "mcl_end_chorus_flower_dead.png", + "mcl_end_chorus_flower_dead.png", + "mcl_end_chorus_flower_dead.png", + "mcl_end_chorus_flower_dead.png", + "mcl_end_chorus_flower_dead.png", + "mcl_end_chorus_flower_dead.png", + }, + drawtype = "nodebox", + paramtype = "light", + node_box = chorus_flower_box, + sounds = mcl_core.node_sound_wood_defaults(), + groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1}, +}) + -- Craftitems minetest.register_craftitem("mcl_end:chorus_fruit", { description = "Chorus Fruit", diff --git a/mods/mcl_end/textures/mcl_end_chorus_flower.png b/mods/mcl_end/textures/mcl_end_chorus_flower.png new file mode 100644 index 0000000000000000000000000000000000000000..6dba3994efbef2c193d8ede6cb667736d08789d2 GIT binary patch literal 2673 zcmV-%3Xb)OP)Uy%R+3F=8iK~zXfEmmo4ljj}x+cKq*CGEtImUQkPb$_F)|w^b6lswcn;yswyf~f@$g$iLPo)U>9zwdr-=0ui{$N%eh{2y}p!sTkI8u3T6*=(^~tkr4?xq^~VGMTJitFu*> zt8)}Z@jUP7a458jYNaX=2r}6WEv7SxjF1=B`8r!;jdr8aY_!^}bwOP$5r;w{gca}t z^3KtBR4Z27Yc>RL=t6{D`nJPC>8LG`pC(i zlTxKrp;j2048AA6Xf#So>HdNKxyN%xqjA^Ju0$d+GBy$pgw=ZWjq5j>98F4{vbnkW z!FLb#kL)Kx5)DNWcVS_nm@ih?3hD!XI;{>I(Q371V#fp}ryL#!u&rb&A|h&QZ;Qv` z5AHnx2K_tw4~-wvnRKOciAgZYaFQu9<|ebJ%QJI##-KOg3|nDivDhace}bT(BIbdq z0z#wS*qGJikx38$bZqNxn|nCd+|qpb$l;}5mN25d2lsyU@2}py^e$L|KunCGRMg7i z%IdS#@!yYUQkki%Qz*GyDj)dGfsa1;2wceL^5|P66iFxvsD-b{#j_XvPyKba&P%}O zy1``FIlNO$iJv?49A-^eg7#H<6$VYIDUn1J55<4F_tW^f@y|Z^Y-xTexE_?ylD4+C z&FE&iTt-ktN8#w8wY|03-AvvbebeT$&HXS3Zn@oVp5lSzf#U}-kZ->Drn9eeaAZ)e zQ|rz8m4y|s8~7t)gK5?JhkyNW&x?EHN;xXkXf$D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