From f4eb3c1e19677080ef14c60edb056b6df516894e Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 6 Jun 2022 20:59:44 +0200 Subject: [PATCH] falling nodes: add a new "stack_falling" group --- GROUPS.md | 1 + mods/ENTITIES/mcl_falling_nodes/init.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/GROUPS.md b/GROUPS.md index 3c954111f..dd8ea4eec 100644 --- a/GROUPS.md +++ b/GROUPS.md @@ -31,6 +31,7 @@ Please read to learn how digging times * `crush_after_fall=1`: For falling nodes. These will crush whatever they hit after falling, not dropping as an item * `falling_node_damage=1`: For falling nodes. Hurts any objects it hits while falling. Damage is based on anvils +* `stack_falling = 1` : Stack falling nodes on top of each other even if they are not walkable. * `dig_by_water=1`: Blocks with this group will drop when they are near flowing water * `destroy_by_lava_flow=1`: Blocks with this group will be destroyed by flowing lava * `dig_by_piston=1`: Blocks which will drop as an item when pushed by a piston. They also cannot be pulled by sticky pistons diff --git a/mods/ENTITIES/mcl_falling_nodes/init.lua b/mods/ENTITIES/mcl_falling_nodes/init.lua index d527603de..19bf1377f 100644 --- a/mods/ENTITIES/mcl_falling_nodes/init.lua +++ b/mods/ENTITIES/mcl_falling_nodes/init.lua @@ -159,7 +159,8 @@ minetest.register_entity(":__builtin:falling_node", { if bcn and (not bcd or bcd.walkable or (minetest.get_item_group(self.node.name, "float") ~= 0 and - bcd.liquidtype ~= "none")) then + bcd.liquidtype ~= "none") or + minetest.get_item_group(self.node.name, "stack_falling") > 0 ) then if bcd and bcd.leveled and bcn.name == self.node.name then local addlevel = self.node.level