From b2a1d23dd36ad53424257ad78ffd437ed666619e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Mar 2017 19:26:48 +0100 Subject: [PATCH] Add large fern and double tallgrass --- mods/ITEMS/mcl_flowers/init.lua | 33 +++++++++++------- .../mcl_flowers_double_plant_fern_bottom.png | Bin 0 -> 930 bytes .../mcl_flowers_double_plant_fern_top.png | Bin 0 -> 795 bytes .../mcl_flowers_double_plant_grass_bottom.png | Bin 0 -> 870 bytes .../mcl_flowers_double_plant_grass_top.png | Bin 0 -> 711 bytes 5 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_bottom.png create mode 100644 mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_top.png create mode 100644 mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_bottom.png create mode 100644 mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_top.png diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 14b08ffe14..8adc3915e5 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -41,6 +41,17 @@ add_simple_flower("allium", "Allium", "mcl_flowers_allium", { -0.2, -0.5, -0.2, add_simple_flower("azure_bluet", "Azure Bluet", "mcl_flowers_azure_bluet", { -3/16, -0.5, -3/16, 3/16, 2/16, 3/16 }) add_simple_flower("blue_orchid", "Blue Orchid", "mcl_flowers_blue_orchid", { -5/16, -0.5, -5/16, 5/16, 6/16, 5/16 }) + +local wheat_seed_drop = { + max_items = 1, + items = { + { + items = {'mcl_farming:wheat_seeds'}, + rarity = 8, + }, + } +}, + --- Fern --- minetest.register_node("mcl_flowers:fern", { description = "Fern", @@ -56,22 +67,14 @@ minetest.register_node("mcl_flowers:fern", { groups = {dig_immediate=3,flammable=2,attached_node=1,dig_by_water=1,deco_block=1}, buildable_to = true, sounds = mcl_sounds.node_sound_leaves_defaults(), + drop = wheat_seed_drop, selection_box = { type = "fixed", fixed = { -4/16, -0.5, -4/16, 4/16, 7/16, 4/16 }, }, - drop = { - max_items = 1, - items = { - { - items = {'mcl_farming:wheat_seeds'}, - rarity = 8, - }, - } - }, }) -local function add_large_flower(name, desc, longdesc, bottom_img, top_img, inv_img) +local function add_large_plant(name, desc, longdesc, bottom_img, top_img, inv_img, drop) if not inv_img then inv_img = top_img end @@ -85,6 +88,7 @@ local function add_large_flower(name, desc, longdesc, bottom_img, top_img, inv_i sunlight_propagates = true, paramtype = "light", walkable = false, + drop = drop, node_placement_prediction = "", on_place = function(itemstack, placer, pointed_thing) -- We can only place on nodes @@ -149,9 +153,12 @@ local function add_large_flower(name, desc, longdesc, bottom_img, top_img, inv_i }) end -add_large_flower("peony", "Peony", nil, "mcl_flowers_double_plant_paeonia_bottom.png", "mcl_flowers_double_plant_paeonia_top.png") -add_large_flower("rose_bush", "Rose Bush", nil, "mcl_flowers_double_plant_rose_bottom.png", "mcl_flowers_double_plant_rose_top.png") -add_large_flower("lilac", "Lilac", nil, "mcl_flowers_double_plant_syringa_bottom.png", "mcl_flowers_double_plant_syringa_top.png") +add_large_plant("peony", "Peony", nil, "mcl_flowers_double_plant_paeonia_bottom.png", "mcl_flowers_double_plant_paeonia_top.png") +add_large_plant("rose_bush", "Rose Bush", nil, "mcl_flowers_double_plant_rose_bottom.png", "mcl_flowers_double_plant_rose_top.png") +add_large_plant("lilac", "Lilac", nil, "mcl_flowers_double_plant_syringa_bottom.png", "mcl_flowers_double_plant_syringa_top.png") + +add_large_plant("double_grass", "Double Tallgrass", nil, "mcl_flowers_double_plant_grass_bottom.png", "mcl_flowers_double_plant_grass_top.png", nil, wheat_seed_drop) +add_large_plant("double_fern", "Large Fern", nil, "mcl_flowers_double_plant_fern_bottom.png", "mcl_flowers_double_plant_fern_top.png", nil, wheat_seed_drop) -- Lily Pad minetest.register_node("mcl_flowers:waterlily", { diff --git a/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_bottom.png b/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..60b3bd31cc36e1d0ac7cf7070bde3657a40de3a7 GIT binary patch literal 930 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10qA|cH#1%-p)$2NxXt|VY zCrog2s?ah|RyK-JaBt9at=5k0bd2h9GD}qUX*Tq1*7s^Qbgk93$yIkO)^xAa32nEv z&Qi0TI2Yc>A=|9_dM&u*Y27)yfuf*Bm1-ADs*lDyqrw1W3tnFr*smw5WRvOi?z z6BgF^(>Ys}fq_ZT)5S5w;&khzi&eK3cv=stX>HqRz`=3IFY~VH+k5|6kKa=BE!$Y6 z`S-r#a}Otun_u_7;{ULqRpQvmGZ|AOmy~pi%kxi2+0Y_UyU0-Ch@Fh0^5OLO2&VW$ zv&_%(WW9Q;*^uM9C7z)<&ST=XCyy3$NjRRh41e{4Ti|p|PnFlQOOHZtyb-vTnzmk6 zu5Y@g#f#^$%R>7npY?Kz(+y9|`FClBrgnV%42RZ^g&vo3ofhlYi`=d;IQ^z_&NnHa z9zoYT_Pb|hwSPyvi(?&Awkx?a}0?jLe=}CLVV<==^-a@rs`hD%n4L4ZX_C zacqMoFP~q4o*~CW6QjwG68+bxNk4FjVL2!|VM>>AVsnST)|}M1gB%4ZcUwPf`R=lC z=bYmL+a6Ek;Pl<)6;RuJPCHm*)yo|g&%4*pTVH$eS+6c<@3r2CF%#14N@D-9RoHS( zci1a#+ot?<3!~Ecm%DTq>Ip5n$ zUbB5pD|iP-%x1Pq+4HjdQ10UmYagy>+W%wAquBV2@4x@{%CWcR-er5+xoJ1^5rK`e zuM@eml3uRrKl9zeCF1+B7Q-2$>`5K3We=1ZNCxd*u`=}z&%vCBeut)p{ zbbT#5V{)bc%9>DNJ$codH+c=gyB;L(5X*1=_0Mna(f{!m>>1quGZ%RM7x~Aa#i(i6 zV8R&#OfRY>t`Q|Ei6yC4$wjF^iowXh&|KHRSl7@b#L&_Th)fK$4GgUe48BYgdx@eU cH$NpatrE9}*3;`kff^V*UHx3vIVCg!00H!A;Q#;t literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_top.png b/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_fern_top.png new file mode 100644 index 0000000000000000000000000000000000000000..1339872c7d61d5e864784a01ba1a3ae206a77c9d GIT binary patch literal 795 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10q9VX2#1%-pH|UusE4$a} zSf#1B)$4jS8@kr&CQNV(ZMU^dS9L1UvM@@p}%NKr9QQgJTRGLBZX&(koAQ*y1;_GvbBDc6qdbo6gEjp}kTic;`x zG5Y`izs6hXexTiqB|(0{3=Yq3q=7g|-tI2yy8J7YfgJV{PhVH|hs=D!A{-sdbhUue zlRaG=Lo80;o%C?mYz3aSje;I4IHj(L*@oRNeg03su*~{y=1tk2_?A63@t;(W{qbLJ zbs#$;`n#BPzewMG#T#rB;~6J)tgCg~XuYURWjzab@~>aY_k!PCZpc?UWNZ0-N2yHU z8;R;F{mZ3-vnLy-Gb)_hm*cGd^$Ne*6Uzk$HlEqe)5*AeSCIac&AOi^t>R};Yc2D7 zaix_hp;xL&Ym-Jm`Ha{|N2AECohAhi6O46OFTC~PnHKM(+b#a; z=C$0Ff&V9*)Vim*{Pd1`{k6B^*IkIsH{m}eSNCtSnWqVVL;25+*PXmi_NNs!-1j~D zB&~Y!tVG7MZ#CkT7_{T$w5uYg=N|mcdCg3x+WPwQTWa4rSKkJsWt`Q|Ei6yC4$wjF^iowXh&|KHRSl7@b#L&{p$iT|L oLfgR5%D_PFi1dCG4Y~O#nQ4`{HH6Px3`+D2p00i_>zopr03m@PjsO4v literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_bottom.png b/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..21f69a0258ce4510d924e9f522141369d8265d8e GIT binary patch literal 870 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10VoQKeh%1l|=rHxD)c0vJ z@~k%SYcck3H}PpQb}i9$F4FOBF?K1|4eT`at~c~+GjS`^b1T*JX*6=L(DSY{4DK}x zXgBq!)(`47b;#3-nq_U3q~?^bZJVay+idJqpzTqm?^>qon6K?qZxqsJ=2c_hU2Evq zV&YX}=+j^nHp#*|S>3rnCt`}FYpJe#g}!H%fq$E6Xun0|bgQ5)vxupdp%cs<^jw zggH#jcG>{t85eoFIEGl94h`-OJ7mCfHYVt_L_gCZ0an+7MNInwKK{2qv&HxJTI=ZB zPo5P{=3y{u;NGC^zJ21ZD+%*Aa99<6*wj?AJ%xeIf&Ynzgzg(de>sYSZ&=x#^*i=q_6G@C~4`tTcN7v_Izox!@b`1R5ymA;8QUMtSI%-=}mNsGofJw9Z)MrTV_O67H*i(01QZ{k|A z>*S*ZSsHi~udzK@9WEsnU z3vkU{R+Y-=%op;(<&f1Dt=TVcB$}W96MaMETdvTx%kO4iK3UmtN;$x?vq65<8=qv; zRX0M4dF!{jz0p_VUTnFz)h%2rrckBRRrFalLeTq8h@qvGfrXW+v9^Jsm4Si!j2$8<8glbfGSez?YY02aumY%o N!PC{xWt~$(69Au(I$;0+ literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_top.png b/mods/ITEMS/mcl_flowers/textures/mcl_flowers_double_plant_grass_top.png new file mode 100644 index 0000000000000000000000000000000000000000..a7fe751e3e686cb3798013c9f16c480073794f97 GIT binary patch literal 711 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10qAS2B#1%+~O|o#W(DQFM z@oO>mX)^L{F%IlB^{O%OYcuhzHVEl6b1l*JsM7aqH3{lAbuHBm>N4}F){mHK=~kxa zU2o`Iq~lp-;9jBcQ*Y$cXyja=6WnX&(_rLUrt4g&6F$izbb@)*Ol$u(pqYj)#X4@K zdLEVf4!K$pQ!E2IOr7$z9dfk(|Nno}%?NMQuIvw)`Gh$c`NV!s0!r(8x;TbdoZdU>ZPXzHp4P=;$95e^NnX&Qq@-~8_kO$C zOXOcZ`~2hlKhIrzZGDTlKIFfC=l>|~DZiZ*uTPNFK7Zp@rKOwWT}rbLY8x0@85oGGo=Hd1kei>9nO2EgLs~`2ZJ-7QPgg&ebxsLQ E0L7634*&oF literal 0 HcmV?d00001