mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-04 21:10:04 -04:00
Added Fire API section for on_burn
See feature Fire on_burn pull-request: https://github.com/minetest/minetest_game/pull/766
This commit is contained in:
parent
76471dd137
commit
8d6eeed67d
1 changed files with 12 additions and 0 deletions
12
game_api.txt
12
game_api.txt
|
@ -145,6 +145,18 @@ farming.register_plant(name, Plant definition)
|
|||
maxlight = default.LIGHT_MAX -- Maximum light to grow
|
||||
}
|
||||
|
||||
Fire API
|
||||
--------
|
||||
The fire API supports nodes with groups.flammable set, with an optional callback function:
|
||||
|
||||
on_burn(position, igniter_node_name, action)
|
||||
^ Optionally return true to prevent node being removed
|
||||
-> position: "Burn position"
|
||||
-> igniter_node_name: "Igniting node's name"
|
||||
-> action: "Action in progress"
|
||||
^ Current <action> passed to, is "remove"
|
||||
|
||||
|
||||
Screwdriver API
|
||||
---------------
|
||||
The screwdriver API allows you to control a node's behaviour when a screwdriver is used on it.
|
||||
|
|
Loading…
Add table
Reference in a new issue