Fire / tnt: Make flint-and-steel use node on_ignite functions

Add on_ignite functions to tnt, gunpowder, coalblock.
This commit is contained in:
Fernando Carmona Varo 2016-10-24 22:24:49 +02:00 committed by paramat
parent c7e2d59461
commit c824d69182
3 changed files with 36 additions and 35 deletions

View file

@ -227,6 +227,14 @@ New node def property:
* Called when fire attempts to remove a burning node.
* `pos` Position of the burning node.
`on_ignite(pos, igniter)`
* Called when Flint and steel (or a mod defined ignitor) is used on a node.
Defining it may prevent the default action (spawning flames) from triggering.
* `pos` Position of the ignited node.
* `igniter` Player that used the tool, when available.
Give Initial Stuff API
----------------------