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:
@ -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])`
|
||||
|
||||
|
Reference in New Issue
Block a user