Note: Deprecated content classes are not listed here, and their use is heavily discouraged. Transition to non-deprecated equivalents as quickly as possible.
View the list of all deprecated classes and methods in the Mindustry Javadoc.
All JSON examples are automatically taken from Exotic Mod by BlueWolf3682. These should only be used as a reference for fields - do not directly copy-paste them into your mod, they will not work!
A flag used by the game to change a few special-case things. It may be one of the following strings:
Groups for blocks to build on top of each other:
ItemStack can be a string or an object. It's used to describe the type and amount of items to a machine.
item: copper amount: 5
|item||string||The name of an Item.|
|amount||int||The amount of said item.|
LiquidStack can be a string or an object. It's used to describe the type and amount of liquid to a machine.
liquid: water amount: 0.5
|liquid||string||The name of a Liquid.|
|amount||float||The amount of said liquid.|
Categories for building menu:
productionBlocks that produce raw resources, such as drills;
distributionBlocks that move items around;
liquidBlocks that move liquids around;
powerBlocks that generate or transport power;
defenseWalls and other defensive structures;
craftingBlocks that craft things;
unitsBlocks that create units;
logicBlocks that are related to logic operations;
effectThings for storage or passive effects.
Color is a hexadecimal string,
<rr><gg><bb> for example:
Flags used by for cache render:
waterwater layer, adding tile water shaders, and giving wave reflections;
tartar layer, adding tar shaders, making it darker and giving it some bubble reflections;
A higher ordinal means a higher priority. Higher priority blocks will always get targeted over those of lower priority, regardless of distance.