mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-10-24 13:25:24 +02:00
remove explode_center
This commit is contained in:
15
game_api.txt
15
game_api.txt
@@ -167,11 +167,11 @@ Doors API
|
||||
|
||||
The doors mod allows modders to register custom doors and trapdoors.
|
||||
|
||||
`doors.registered_doors[name] = Door definition`
|
||||
* Table of registered doors, indexed by door name
|
||||
`doors.registered_doors[name] = Door definition`
|
||||
* Table of registered doors, indexed by door name
|
||||
|
||||
`doors.registered_trapdoors[name] = Trapdoor definition`
|
||||
* Table of registered trap doors, indexed by trap door name
|
||||
`doors.registered_trapdoors[name] = Trapdoor definition`
|
||||
* Table of registered trap doors, indexed by trap door name
|
||||
|
||||
`doors.register_door(name, def)`
|
||||
|
||||
@@ -214,7 +214,7 @@ The doors mod allows modders to register custom doors and trapdoors.
|
||||
* `pos` Position of the door
|
||||
* `node` Node definition
|
||||
* `clicker` Player definition for the player that clicked on the door
|
||||
|
||||
|
||||
### Door definition
|
||||
|
||||
description = "Door description",
|
||||
@@ -257,7 +257,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),
|
||||
-- function containing the on_rightclick callback
|
||||
use_texture_alpha = "clip",
|
||||
|
||||
@@ -543,8 +543,7 @@ TNT API
|
||||
^ Create an explosion.
|
||||
|
||||
* `position` The center of explosion.
|
||||
* `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.
|
||||
* `definition` The TNT definion as passed to `tnt.register`.
|
||||
|
||||
`tnt.burn(position, [nodename])`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user