Results
See also: Ingredients.
This page covers common result formats used primarily in recipes.
Item Stack
A fluid stack represents an item with a size and optional NBT, typically used in recipe outputs (as item ingredients are more flexible for inputs). Note that for most recipes, item output is preferred due to allowing tag outputs, but select recipes still make use of direct item stacks.
In the most basic form, an item output may be just a string field containing an item ID, representing the output item with a stack size of 1:
- The item in the stack.
Alternatively, an item stack may be expressed as a JSON object, allowing setting count and NBT:
minecraft:air
making the stack empty.
Item in the stack. If unset, defaults to - Stack size. If unset, defaults to 1. If empty is supported, may be 0 to indicate an empty stack.
- NBT for the item stack, represented as a JSON object. If unset, the stack has no NBT.
- NBT for the item stack, represented as a string. If unset, the stack has no NBT.
The item stack object.
Note that based on the usage, count may be fixed to 1, and NBT may be ignored. In addition, some contexts do not support empty item stacks, causing a parsing error.
Item Output
An item output is essentially an ingredient for recipe outputs. In the most basic form, an item output may be just a string field containing an item ID, representing the output item with a stack size of 1:
- The item to output.
In other cases, the item output will be a JSON object with format as follows:
minecraft:air
making the output empty. Cannot be set alongsidetag
.
Item to output. If unset, defaults to - tag preference system. The preferred entry from the tag will be used for the output. Cannot be set alongside
item
.
Tag to output using Mantle’s - Output stack size. If unset, defaults to 1. If empty is supported, may be 0 to indicate an empty output.
- NBT for the item stack, represented as a JSON object. If unset, the output has no NBT.
- NBT for the item stack, represented as a string. If unset, the output has no NBT.
The item output object.
In 1.19 and before, nbt
is only supported alongside item
. 1.20 allows using nbt
with tag
.
Fluid Stack
A fluid stack represents a fluid with a size, typically used in recipe outputs (as fluid ingredients are more flexible for inputs).
Fluid stacks have the following format in JSON:
minecraft:empty
making the stack empty.
Fluid in the stack. If unset, defaults to - Output stack size. May be 0 to indicate an empty stack.
- NBT for the item stack, represented as a JSON object. If unset, the output has no NBT.
- NBT for the item stack, represented as a string. If unset, the output has no NBT.
The item output object.
Note that some contexts using fluid stacks disallow empty fluid stacks, in which case an amount
of 0 or a fluid
of minecraft:empty
will cause a parsing error. In addition, some contexts will ignore the output NBT entirely, causing those fields to be ignored (most notably recipes in 1.18 and before).
Fluid Output
A fluid output is essentially an fluid ingredient for recipe outputs. Before 1.20, most outputs instead used fluid stacks.
A fluid output has the following format:
minecraft:empty
making the output empty. Cannot be set alongsidetag
.
Fluid to output. If unset, defaults to - tag preference system. The preferred entry from the tag will be used for the output. Cannot be set alongside
item
.
Tag to output using Mantle’s - Output stack size. If empty is supported, may be 0 to indicate an empty output.
- NBT for the item stack, represented as a JSON object. If unset, the output has no NBT.
- NBT for the item stack, represented as a string. If unset, the output has no NBT.
The item output object.