-
-
Notifications
You must be signed in to change notification settings - Fork 542
Ingredient JSON Syntax
By default there are two types of Item Stack Ingredients in Mekanism:
The "basic" Ingredient type for Item Stack Ingredients is one of the most advanced and verbose ingredient types.
{
"ingredient": INGREDIENT,
"amount": int
}
amount
is an optional key for specifying the amount of the ingredient that is needed, defaults to one, must be at least one.
Valid values for INGREDIENT are the serialization of any Ingredient.
{
"item": REGISTRY_NAME
}
{
"type": "forge:nbt",
"item": REGISTRY_NAME,
"nbt": string
}
{
"tag": ITEM_TAG
}
[
INGREDIENT,
INGREDIENT
]
Multi item stack ingredients let you specify multiple possible simpler item stack ingredient types. While you can nest multi item stack ingredients inside of other item stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
[
ITEM_STACK_INGREDIENT,
ITEM_STACK_INGREDIENT
]
By default there are three types of Fluid Stack Ingredients in Mekanism:
{
"fluid": REGISTRY_NAME,
"amount": int,
"nbt": string
}
nbt
is an optional key for specifying any NBT the Fluid Stack Ingredient has.
{
"tag": FLUID_TAG,
"amount": int
}
Multi fluid stack ingredients let you specify multiple possible simpler fluid stack ingredient types. While you can nest multi fluid stack ingredients inside of other multi fluid stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
[
FLUID_STACK_INGREDIENT,
FLUID_STACK_INGREDIENT
]
By default there are three types of Gas Stack Ingredients in Mekanism:
{
"gas": REGISTRY_NAME,
"amount": long
}
{
"tag": GAS_TAG,
"amount": long
}
Multi gas stack ingredients let you specify multiple possible simpler gas stack ingredient types. While you can nest multi gas stack ingredients inside of other gas stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
[
GAS_STACK_INGREDIENT,
GAS_STACK_INGREDIENT
]
By default there are three types of Infusion Stack Ingredients in Mekanism:
{
"infuse_type": REGISTRY_NAME,
"amount": long
}
{
"tag": INFUSE_TYPE_TAG,
"amount": long
}
Multi infusion stack ingredients let you specify multiple possible simpler infusion stack ingredient types. While you can nest multi infusion stack ingredients inside of other infusion stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
[
INFUSION_STACK_INGREDIENT,
INFUSION_STACK_INGREDIENT
]
By default there are three types of Pigment Stack Ingredients in Mekanism:
{
"pigment": REGISTRY_NAME,
"amount": long
}
{
"tag": PIGMENT_TAG,
"amount": long
}
Multi pigment stack ingredients let you specify multiple possible simpler pigment stack ingredient types. While you can nest multi pigment stack ingredients inside of other pigment stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
By default there are three types of Slurry Stack Ingredients in Mekanism:
{
"slurry": REGISTRY_NAME,
"amount": long
}
{
"tag": SLURRY_TAG,
"amount": long
}
Multi slurry stack ingredients let you specify multiple possible simpler slurry stack ingredient types. While you can nest multi slurry stack ingredients inside of other slurry stack ingredients it is recommended not to. Note: While the below example only shows two sub ingredients you can continue adding more.
[
SLURRY_STACK_INGREDIENT,
SLURRY_STACK_INGREDIENT
]
[
PIGMENT_STACK_INGREDIENT,
PIGMENT_STACK_INGREDIENT
]
Floating Longs are numbers with up to four decimals between zero and 18,446,744,073,709,551,615.9999
(do not include the commas)