1
0
mirror of https://github.com/luanti-org/minetest_game.git synced 2025-11-10 19:35:28 +01:00

re-add explode_center and set the minimum number of counted nodes to 1

This commit is contained in:
flux
2023-12-29 13:59:49 -08:00
parent 7e597c92c2
commit 943de3b227
2 changed files with 14 additions and 12 deletions

View File

@@ -232,7 +232,7 @@ The doors mod allows modders to register custom doors and trapdoors.
gain_open = 0.3, -- optional, defaults to 0.3
gain_close = 0.3, -- optional, defaults to 0.3
protected = false, -- If true, only placer can open the door (locked for others)
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing),
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing),
-- optional function containing the on_rightclick callback, defaults to a doors.door_toggle-wrapper
use_texture_alpha = "clip",
@@ -543,7 +543,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])`