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 rubenwardy
parent bcf98df5fa
commit fe67ffda7c
2 changed files with 12 additions and 4 deletions

View file

@ -363,7 +363,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])`