1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-03 15:10:24 +02:00

TNT: Add explode_center flag

Add 'explode_centre' flag which when false explodes as normal and when true runs on_blast on centre node as well as dropping items.
This commit is contained in:
tenplus1
2017-08-26 22:14:44 +01:00
committed by sfan5
parent 6053456af1
commit fba6f6a4cf
2 changed files with 12 additions and 4 deletions

View File

@ -309,7 +309,8 @@ TNT API
^ Create an explosion.
* `position` The center of explosion.
* `definition` The TNT definion as passed to `tnt.register`
* `definition` The TNT definion as passed to `tnt.register` with the following addition:
* `explode_center` false by default which removes TNT node on blast, when true will explode center node.
`tnt.burn(position, [nodename])`