added support for detached and player inventories to utility functions

This commit is contained in:
auouymous 2018-09-24 17:43:37 -06:00
parent 17260cbf1c
commit 57acde5c04

5
API
View File

@ -96,6 +96,11 @@ API has utility functions for transfer nodes to easily call every node function
-- the can_take_* functions should always be called before using the get_*_size, get_*_name, get_*_stack or take_* functions on an inventory node
API has utility functions for standard inventory nodes to easily implement the API
-- pos parameter can be:
-- {x=<X>, y=<Y>, z=<Z>}
-- {type="node", pos={x=<X>, y=<Y>, z=<Z>}}
-- {type="detached", name="<name>"}
-- {type="player", name="<name>"}
node_io.compare_itemstack(itemstack1, itemstack2) -> bool
-- returns true if both itemstacks are identical, excluding count