added support for detached and player inventories to utility functions
This commit is contained in:
parent
17260cbf1c
commit
57acde5c04
5
API
5
API
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user