mirror of
https://github.com/minetest/minetest_game.git
synced 2025-07-02 23:00:21 +02:00
TNT: Gunpowder (and tnt.burn) will trigger the on_ignite of nodes
The previous behaviour is kept as fallback for compatibility, for when the on_ignite is not defined in the node.
This commit is contained in:
committed by
paramat
parent
011ad78b42
commit
be9121214c
@ -312,8 +312,10 @@ TNT API
|
||||
|
||||
`tnt.burn(position, [nodename])`
|
||||
|
||||
^ Ignite TNT at position, nodename isn't required unless already known.
|
||||
|
||||
^ Ignite node at position, triggering its `on_ignite` callback (see fire mod).
|
||||
If no such callback exists, fallback to turn tnt group nodes to their
|
||||
"_burning" variant.
|
||||
nodename isn't required unless already known.
|
||||
|
||||
To make dropping items from node inventories easier, you can use the
|
||||
following helper function from 'default':
|
||||
|
Reference in New Issue
Block a user