From 907c22a4016ddf50515e446b40a1f24eac500c98 Mon Sep 17 00:00:00 2001 From: Skip Date: Fri, 1 Jan 2016 16:03:49 +0000 Subject: [PATCH] Added Fire API section for on_burn --- game_api.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/game_api.txt b/game_api.txt index 8ab44309..0d3577a5 100644 --- a/game_api.txt +++ b/game_api.txt @@ -145,6 +145,17 @@ 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 passed to, is "remove" + Screwdriver API --------------- The screwdriver API allows you to control a node's behaviour when a screwdriver is used on it.