Description
-
Added new node group {falling_node_hurt} to hurt players or mobs below falling items.
-
Falling nodes with a light source fall with glow active.
-
Huge areas of falling nodes are done in blocks to stop lag/crashes.
-
Added 'falling_step(self, pos, dtime)' custom on_step for falling items.
- 'self' contains falling object data.
- 'self.node' is the node currently falling.
- 'self.meta' is the metadata contained within the falling node.
- 'pos' holds position of falling item.
- 'dtime' used for timers.
return false to skip further checks by falling_item
Adds needed functionality
Certain falling nodes should cause damage to the player. This mod adds that important functionality. Though it only adds for certain nodes. I ask that it be allowed to be used for adding fall damage to any node other modders would like to add.
Edit: Based on TenPlus1's comment adding the following code to your mod will allow you to add fall damage to any node: local function add_fall_damage(node, damage)