From: Perttu Ahola Date: Sun, 9 Sep 2012 18:54:11 +0000 (+0300) Subject: Add nodedef.on_blast() to lua_api.txt in order to support chained explosions of any... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=25cf3757b29a0397e201a4719788ead3dc76ec94;p=zefram%2Fminetest%2Fminetest_engine.git Add nodedef.on_blast() to lua_api.txt in order to support chained explosions of any explosives --- diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8c6fedc1..442937bd 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)