mirror of
https://github.com/mt-mods/xcompat.git
synced 2025-06-28 06:30:30 +02:00
add functions api + documentation (#23)
This commit is contained in:
13
doc/functions.md
Normal file
13
doc/functions.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Functions API
|
||||
|
||||
## `can_interact_with_node(player, pos)`
|
||||
returns `bool`
|
||||
|
||||
checks for the ability to interact with a node via:
|
||||
* if a player
|
||||
* owner metadata key
|
||||
* protection_bypass
|
||||
|
||||
supports
|
||||
* minetest game default if present
|
||||
* else polyfill
|
Reference in New Issue
Block a user