From 2083b6a76b0e22aab049691ddd0bac3ddcdbf1e4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 10 Jan 2017 03:54:15 +0100 Subject: [PATCH] Add mycelium --- mods/default/nodes.lua | 12 ++++++++++++ mods/default/textures/default_mycelium_side.png | Bin 0 -> 1488 bytes mods/default/textures/default_mycelium_top.png | Bin 0 -> 1127 bytes mods/farming/hoes.lua | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 mods/default/textures/default_mycelium_side.png create mode 100644 mods/default/textures/default_mycelium_top.png diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index b1858765e..e59f04cd7 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -264,6 +264,18 @@ minetest.register_node("default:dirt_with_grass", { }), }) +minetest.register_node("default:mycelium", { + description = "Mycelium", + tiles = {"default_mycelium_top.png", "default_dirt.png", "default_mycelium_side.png"}, + is_ground_content = true, + stack_max = 64, + groups = {crumbly=3, soil=1}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_grass_footstep", gain=0.4}, + }), +}) + minetest.register_node("default:dirt_with_snow", { description = "Dirt with Snow", tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"}, diff --git a/mods/default/textures/default_mycelium_side.png b/mods/default/textures/default_mycelium_side.png new file mode 100644 index 0000000000000000000000000000000000000000..c9e49be318c852d2bed2eccffc66f947a68c5650 GIT binary patch literal 1488 zcmV;>1uy!EP)fXw#-mfj|O;`&Cc~ggZ2jxH%A)*kFVmgE8ismZDOTs;W|{QXi_SFHxnw z^+!(U+pva#BoE8yoISJmTKh8NAAq2nEfpW?g0D+5sRy>#o1!+G{^? z366;P7&(pvgq(l`(H@}62xPAcfPu!l*TTFV(xK)r-P68$H`7&jS%IUyH}8?BmzIMF z$Pt2oxIHR4PY7ZG5CQD*Tx7@F+{RRg%Z#?zcOr5HJt>q72msj^nLw`L#7FJ;_W6nl zfE==s)_a!qaP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)~76cM<+y8n-S z|IJ<%0XaetkhjN>GeYp1fSeZ!#cl|YT%(^BeET7{MKK_Tu9+^yF)D4AHB+X0I^Zv8DgGua%I5~E8_WL+7*yVe{Y`h2kwGllO^wuM=)=N$&|$k z-}SR~{JxlP1M_z$^{();LIC7dfY5j(<>;B7BVyBCy-1#c0Kj_41*F(g48O5kuVNET zf)FwgX0+rcECx9}jC#)VWY}+=%ee&P-Khl#$RSol4spIEA!l0{qXrC60OX(_$g&8Z zP4ME&`f*Gq7Q3e)#LVXPn0a3)0P&3d>@pC!lOm8gj6fA&mYWCe5n@a#-<$FIwnGfh z+gyin*5pFd-lmXp%J`Sf_{SSd-~T&xrvwIGXF(FcyO;N+6cVnk%}&#Q|7wydtTMH}Z? zsIvDF0VeU`HF75^qV0Yp|1;PC`6|yM6u@)7@{1o3K;Op##!5bBek;P#JnNo3WJHL@ z?UtA$@k0^_xF?D&bF|IVrz0jg1{9!jMM!?UcNoOjF#@i&IaN&Vxb3)#`@*DL5iLj% z+w}miTAm>%sSpC%(~z+mF0|EnquR(s1Qd`<@@jgq6GF%kLIVrA%>~~OVN0HC#%ls{ zClvy6@1E5gLP*VIo)H82a_n+mD$ia4zb0G=Y0O_J)rkFJ0V6`Tc{A= z)vL#5yzg_3U^H^MYnGh#rTsT-cswTV6$|-e3OKHaQ9wO0qmWiaz5z{a9Vq^7eo2J) tfQFfC_lp1x<#X>{BC$y>PZq$1_78rW>F6(%O^N^j002ovPDHLkV1j_43lsnV literal 0 HcmV?d00001 diff --git a/mods/farming/hoes.lua b/mods/farming/hoes.lua index f448e2974..d14e29d11 100644 --- a/mods/farming/hoes.lua +++ b/mods/farming/hoes.lua @@ -5,7 +5,7 @@ local function create_soil(pos, inv) local node = minetest.get_node(pos) local name = node.name local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}) - if name == "default:dirt" or name == "default:dirt_with_grass" then + if name == "default:dirt" or name == "default:dirt_with_grass" or name == "default:mycelium" then if above.name == "air" then node.name = "farming:soil" minetest.set_node(pos, node)