From dec207368cbd86d52cce888af033935796007a3a Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 28 Oct 2022 21:02:45 +0200 Subject: [PATCH] Add wither rose --- mods/ITEMS/mcl_flowers/init.lua | 3 +++ mods/ITEMS/mcl_flowers/register.lua | 8 +++++++- .../textures/mcl_flowers_wither_rose.png | Bin 0 -> 6055 bytes 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_flowers/textures/mcl_flowers_wither_rose.png diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 33ea531c5..d7b046cf5 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -51,6 +51,9 @@ local on_place_flower = mcl_util.generate_on_place_plant_function(function(pos, if (light_night and light_night >= 8) or (light_day and light_day >= minetest.LIGHT_MAX) then light_ok = true end + if itemstack:get_name() == "mcl_flowers:wither_rose" and ( minetest.get_item_group(soil_node.name, "grass_block") > 0 or soil_node.name == "mcl_core:dirt" or soil_node.name == "mcl_core:coarse_dirt" or soil_node.name == "mcl_mud:mud" or soil_node.name == "mcl_moss:moss" or soil_node.name == "mcl_nether:netherrack" or minetest.get_item_group(soil_node.name, "soul_block") > 0 ) then + return true,colorize + end local is_flower = minetest.get_item_group(itemstack:get_name(), "flower") == 1 local ok = (soil_node.name == "mcl_core:dirt" or minetest.get_item_group(soil_node.name, "grass_block") == 1 or (not is_flower and (soil_node.name == "mcl_core:coarse_dirt" or soil_node.name == "mcl_core:podzol" or soil_node.name == "mcl_core:podzol_snow"))) and light_ok return ok, colorize diff --git a/mods/ITEMS/mcl_flowers/register.lua b/mods/ITEMS/mcl_flowers/register.lua index b45f3e1ee..c1bd37878 100644 --- a/mods/ITEMS/mcl_flowers/register.lua +++ b/mods/ITEMS/mcl_flowers/register.lua @@ -59,4 +59,10 @@ mcl_flowers.register_simple_flower("blue_orchid", { image = "mcl_flowers_blue_orchid.png", selection_box = { -5/16, -0.5, -5/16, 5/16, 7/16, 5/16 }, potted = true, -}) \ No newline at end of file +}) +mcl_flowers.register_simple_flower("wither_rose", { + desc = S("Wither Rose"), + image = "mcl_flowers_wither_rose.png", + selection_box = { -3/16, -0.5, -3/16, 3/16, 6/16, 3/16 }, + potted = true, +}) diff --git a/mods/ITEMS/mcl_flowers/textures/mcl_flowers_wither_rose.png b/mods/ITEMS/mcl_flowers/textures/mcl_flowers_wither_rose.png new file mode 100644 index 0000000000000000000000000000000000000000..539722a344bbb4ec5d38645de42795dbf09cbe96 GIT binary patch literal 6055 zcmeHKd0Z3M77idg$f6>ON(iX9gd~#$k~GL(77cq51PhbQ1OnMe0tq6Zh@zlH1*!t> zT2TRat1JTIUKNY_5FRRvh(!r1BBg9^5>T=A+2`-~`k#|umO1x3-#PcY=iHmw;Op(K zuQOc-g+l3jdbs){--e2}mIm@^-ZKKCQ0nLvfx!}gP>L3c1Z)l$MoSWeFdCL|*eH~& zv3O}r-V1B3q3-!?ZIwVF^~%-0TNBy+;(J!T9`zMT=D8&vdKb5-<#aWsjKudDEV{|O zt$AiUv+3ol>vL}#azl61yHEEgILta5Alo6W*S(Sxk<%OX>W)JPC-H>qG=CWYwaZRa zUho(`E)cAn=nfbX(pH#yrCYT0rcP8#;KgKKf0Lk_7|ODjGM_)c!jLpx*jVn6==LVM z>Hyx(qCpthqV9NQTLGk%R(8$T>eXgXjJ&zkF?H3-DTlhWa}y)mw?3;GG@EB!UtV)5 z2H!?bruwuzZ!VkGI=9x}rWV(;%r@!q?f$Ncyyq3g4`FkoIvKaK=|;|;bCyqlZEj&1 zf>lL5UgvIFB$FVT zQLDquh@-2%uU;4)9Q6m|?sAJYZC-bvRKoPb%~!evVdnb1i~M&*omvo7b=gu|g@w11 z-%+)=S4-C+R(13aPb=3k)g#_qr~i}}KIg5YJAV^>tLJG)LPQwsw9G(F%V?$MDhn00 zP%G`poB;N0=NbBgkSSnN`;GM;!*i;$6SruIHl_=T{PId?$Qb)0SFc|M`1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