Skip to content
Snippets Groups Projects
Commit 25cf3757 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

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

parent 72ef6f63
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment