From 862fd2bb1c11eb56271a3b162569e80d373dabeb Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 10 Aug 2023 18:56:27 +0100 Subject: [PATCH] using mulch on dry_dirt makes it dry_dirt_with_dry_grass --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.lua b/init.lua index 0cb3457..c5a1810 100644 --- a/init.lua +++ b/init.lua @@ -88,6 +88,7 @@ minetest.after(0.1, function() if def.groups and def.groups.flower and not node:find("waterlily") + and not node:find("seaweed") and not node:find("xdecor:potted_") and not node:find("df_farming:") then flowers[#flowers + 1] = node @@ -519,6 +520,14 @@ function bonemeal:on_use(pos, strength, node) particle_effect(pos) + return true + + elseif node.name == "default:dry_dirt" and strength == 1 then + + minetest.set_node(pos, {name = "default:dry_dirt_with_dry_grass"}) + + particle_effect(pos) + return true end