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 zcmeHLX;c$g7A{0t0?48wu7rRsE+I)Jfh3*Cnr6`e0;3?ugmO9 z>9C!3U3$~}#8&CO7cZ|)y=kY6-6m{3-kIt>`D7&dt**xEQeHw{d*aJm-py#*k$`a# zBnUqukCdMc>OG8Mt49WccC3|4oI=*PG_+@pG)+|{b!XR| z@lF%JUUY6Z)61n6S2T?9x%5pTY_YQRO1Rt04Z$>heWOp-vZZ78KDXSGrg*gJNoDth zX%01KDla54o46VLu!g7grQ;f>Rz-MJG1?Y*ra!pZ`MfOuY1x7Mh_ih)scgA-EpPiN z*N5OY;<#*VS#ev)sp~FjRzL5Htxbtr<-kh(_2IsVzlEy4UPYlUQ5QRXYqfT~_OokW z|gd}#mxBV#NQ>i7rLxy3b_SmvBvMKzw{i7bGB)p74d!Iu^IEu zU39fHkukmWw}!dgsS;Ay=bGDl$DN@#S+lRNwt1|I|Ll!VpnAPv3`rLiH-Kk+y(l%OX)~&&c=jNA8Bqh5P%hxUg zBf>Ykt(cK}X?6Ep?8=UbZok?2S&yH&d&8~(Xa99`n-Vi(#ARmde^`{yDcJh=grDwQ zk2zY%v&@$TvCyM=5jXLCh%ZZC?RWF@)}vjbXNzm@zd7EV^?KUbl@2+M+9_M&PKSuM z6&+c0B7c$k&W4a1f4?QYEvKKjw{g+JlGYuU58hwW(kWekZ)bZ-`Zlg0rs?XP@H;u& znST*UZY55IaI;H4k8-N1037no6$KkRo|z@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