diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-09-09 21:54:11 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-09-09 23:24:48 +0300 |
commit | 25cf3757b29a0397e201a4719788ead3dc76ec94 (patch) | |
tree | 6305e77011a9a335551984702591aa6cabf5034f /doc | |
parent | 72ef6f637e7850a7714b08a9414fad3a64880b4c (diff) | |
download | minetest-25cf3757b29a0397e201a4719788ead3dc76ec94.tar.gz minetest-25cf3757b29a0397e201a4719788ead3dc76ec94.tar.bz2 minetest-25cf3757b29a0397e201a4719788ead3dc76ec94.zip |
Add nodedef.on_blast() to lua_api.txt in order to support chained explosions of any explosives
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8c6fedc1e..442937bd1 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1421,6 +1421,11 @@ Node definition (register_node) on_metadata_inventory_take = func(pos, listname, index, stack, player), ^ Called after the actual action has happened, according to what was allowed. ^ 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) |