Player Interface
The player interface allows a player's inventory to be manipulated.
It requires a Permissions Card to take actions on an inventory. The card fits into the internal inventory.
Functions
Function | Returns | Description |
---|---|---|
getPlayerInv(string player_name) | table player_inventory_object | Returns an object representing a players inventory |
setOutputSide(string direction) | string side that was set or nil | Tries to set the output inventory side |
setInputSide(string direction) | string side that was set or nil | Tries to set the input inventory side |
getInputSide() | string side or nil | Gets the input side |
getOutputSide() | string side or nil | Gets the output side |
Player Inventory
An object that allows for manipulation of a player's inventory
Functions
Function | Returns | Description |
---|---|---|
getStackInSlot(number slot) | boolean success | Tries to get an entire stack from a slot |
retrieveFromSlot(number slot, number amount) | boolean success | Tries to get an item from the players inventory and puts it in the turtles current slot |
pushToSlot(number push_slot, number pull_slot, number amount) | boolean success | Tries to push an item from the input side to the players inventory with the specified slot |
push(number index, number amount) | boolean success | Tries to push an item from the inventory on the input side |
getSize() | number size | Get the size of an inventory |