DevSink
A debug item meant for developers. It is a spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (1000000) that have integer components: 1x500x2000, 1x625x1600, 1x800x1250, 1x1000x1000, 2x250x2000, 2x400x1250, 2x500x1000, 2x625x800, 4x125x2000, 4x200x1250, 4x250x1000, 4x400x625, 4x500x500, 5x100x2000, 5x125x1600, 5x160x1250, 5x200x1000, 5x250x800, 5x320x625, 5x400x500, 8x100x1250, 8x125x1000, 8x200x625, 8x250x500, 10x50x2000, 10x80x1250, 10x100x1000, 10x125x800, 10x160x625, 10x200x500, 10x250x400, 16x50x1250, 16x100x625, 16x125x500, 16x250x250, 20x25x2000, 20x40x1250, 20x50x1000, 20x80x625, 20x100x500, 20x125x400, 20x200x250, 25x25x1600, 25x32x1250, 25x40x1000, 25x50x800, 25x64x625, 25x80x500, 25x100x400, 25x125x320, 25x160x250, 25x200x200, 32x50x625, 32x125x250, 40x40x625, 40x50x500, 40x100x250, 40x125x200, 50x50x400, 50x80x250, 50x100x200, 50x125x160, 64x125x125, 80x100x125, 100x100x100
At its default size (2x2x2) it has a durability of 100000000, at its maximum size it has a durability of 5000000000.
By default, its colour is #a3a3a3.
Methods
GetAmountConsumed(...) → ...
The variadic parameter is unknown. It can be anything.
The variadic return is unknown. It can be anything.
GetResource() → resource
Gets the name of the resource contained, will return the string "nil" if nothing is stored, rather than actually returning nil.
The resource return can be any of the following types:
-
string -
"nil"
GetResourceAmount() → amount
Gives you the total amount of objects in the container.
The amount return is the amount of objects in the container. It is a number.
GetAmount() → amount
This method is deprecated. Use :GetResourceAmount() instead.
Gives you the total amount of objects in the container.
The amount return is the amount of objects in the container. It is a number.
Configurables
Resource
The name of the object to produce a sink for. It is a ResourceString.
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.
ContainerChanged(resourceType, resourceAmount)
Fires when the amount of the resource in the container changes.
The parameters for ContainerChanged are as follows:
- The resourceType parameter is a string that can be
Power,Solid, orFluid - The resourceAmount parameter is a
number.
OnClick(clickerId)
Fires when the object is clicked.
The clickerId parameter is the UserId of the player who clicked the object. It is a number.