add functions api + documentation (#23)

This commit is contained in:
wsor4035
2024-05-26 12:31:52 -04:00
committed by GitHub
parent 5b4b19a184
commit 788217bb8e
5 changed files with 36 additions and 1 deletions

13
doc/functions.md Normal file
View 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