Skip to main content

Dispenser

Releases items from attached bins.

It is a craftable and spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (32) that have integer components: 1x32x1, 1x16x2, 1x8x4, 2x8x2, 2x4x4

At its default size (2x3x2) it has a durability of 4, at its maximum size it has a durability of 6.

By default, its colour is #5b5d69.

It requires 1 Chute and 1 Rubber to be crafted.

Methods


Dispense()

Dispenses a single item instantly.

Configurables


Filter

Which kinds of resources to drop, separated by commas. It is a string.

Events


Configured(configurerId)

Fires when the object is configured.

The configurerId parameter is the UserId of the player who configured the object. It is a number.


Loop(deltaTime)

Fires when the object is updated by the game loop.

The deltaTime parameter is the 'time' since the last tick, it does not represent the actual time since the last tick was occurred, rather just how often a game tick should be fired (it will always be precisely 1). It is a number.