Go to file
tenplus1 30c24dedd2 update mod.conf 2022-02-08 08:42:33 +00:00
README.md falling nodes work with different drawtypes and light_source glow (thanks Wuzzy) 2020-01-05 10:26:43 +00:00
depends.txt Initial upload 2018-07-22 10:43:33 +01:00
init.lua revert change 2021-06-26 21:28:19 +01:00
mod.conf update mod.conf 2022-02-08 08:42:33 +00:00

README.md

falling.lua replacement

edited by TenPlus1

Features:

  • Added new group {falling_node_hurt} to hurt player or mobs below falling items

  • Falling nodes will only replace airlike, buildable to, water and attached nodes

  • Any attached nodes will drop as item when replaced

  • Added horizontal slowing for when TNT blasts a falling node

  • Falling nodes removed when outside map only

  • 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

Additional:

  • Falling nodes with a light source fall with glow active
  • Torchlike or signlike nodes fall with different drawtypes
  • Thanks to Wuzzy for both of the above features :)

License: MIT

falling_step() example

minetest.override_item("default:gravel", { falling_step = function(self, pos, dtime) print (self.node.name .. " falling!", dtime) end })