Structures

Vending Machine

Updated 3/8/2026

Kit (Vending Machine)

Vending Machine

Deconstruction Steps

StepToolRecovered Item
1Hand DrillKit (Vending Machine)

TOC

Description

The Vending Machine is a machine used to dispense items to players. The machine can hold up to 100 individual stacks of items. The machine's easy to use interface lets the user choose an item (displayed in the picture window) and dispense it with the press of a button.

Can be also used to get the items purchased or sold to Traders.

Usage notes

While the Vending Machine can be used to store and dispense items to players it does NOT stack them, it will store items as they come in in their own slots. That means that one stack of 50 Coal Ore takes up one slot, while 50 stacks of 1 Coal Ore each takes up 50 slots. Thus it is recommended that you take this into account when designing a system using the Vending Machine.

Data Network

Parameter NameData TypeDescription
ActivateBooleanNot functional on this device
LockBooleanLocks the device for player interaction when set to 1. Unlocks it, when set to 0.
OnBooleanTurns the device on, when set >= 1. Turns it off, when set to <1.
RequestHashIntegerWrite ItemHash to device to immediate output
Output NameData TypeDescription
PowerBooleanReturns whether the device is turned on and receives power. (0 for no, 1 for yes).
ErrorBooleanReturns whether the device is flashing an error. (0 for no, 1 for yes).
ActivateBooleanNot functional on this device.
LockBooleanReads if the device is locked.
ImportCountIntegerIncremented each time an item stack enter by the Import slot
ExportCountIntegerIncremented each time an item stack exit by the Export Slot
RatioIntegerStorage space used in percentage.
QuantityIntegerStorage space used in whole numbers.
PrefabHashIntegerReturns ItemHash of device
OnBooleanReturns whether the device is turned on. (0 for no, 1 for yes)
RequiredPowerIntegerReturns the current amount of power, required by the device, in watts.
RequestHashInteger0 unless actively written to

Data Slots

These are all parameters, that can be read with a Slots Reader. The outputs are listed in the order a Slots Reader's "VAR" setting cycles through them. | Number || Name | Description | |---|---| | 0 | Import | | 1 | Export | | 2-101 | Storage |

NameData TypeDescription
OccupiedBooleanReturns whether the slot occupied. (0 for no, 1 for yes).
OccupantHashIntegerReturns ItemHash of item in slot.
QuantityIntegerSize of stack.
DamageIntegerItem durability in percent.
ClassIntegerItem class ID.