Add nodedef.on_blast() to lua_api.txt in order to support chained explosions of any explosives

stable-0.4
Perttu Ahola 2012-09-09 21:54:11 +03:00
parent 72ef6f637e
commit 25cf3757b2
1 changed files with 5 additions and 0 deletions

View File

@ -1421,6 +1421,11 @@ Node definition (register_node)
on_metadata_inventory_take = func(pos, listname, index, stack, player), on_metadata_inventory_take = func(pos, listname, index, stack, player),
^ Called after the actual action has happened, according to what was allowed. ^ Called after the actual action has happened, according to what was allowed.
^ No return value ^ No return value
on_blast = func(pos, intensity),
^ intensity: 1.0 = mid range of regular TNT
^ If defined, called when an explosion touches the node, instead of
removing the node
} }
Recipe for register_craft: (shaped) Recipe for register_craft: (shaped)