Field Name |
Data Type |
Required |
Description |
Default Value |
itemKey |
String |
 |
Eg. minecraft:dirt
|
|
customName |
String |
 |
A custom name for the item (not recommended for requests) |
|
amount |
Whole Number |
 |
How many items are in this stack |
|
amountRange |
Whole Number |
 |
For any trade item object (offer, request etc.), this will set a maximum limit for the amount number and choose a random value when generated. For example, if amount=1 and amountRange=5 then the final amount will be between 1 (inclusive) and 5 (exclusive) |
|
priceModifier |
Whole Number |
 |
This should only be used inside a multiOffer object. It will change the amount of the request item (this can be negative) |
|
priceModifierAdditional |
Whole Number |
 |
This should only be used inside a multiOffer object. It will change the amount of the additionalRequest item (this can be negative) |
|
customColourR |
Whole Number |
 |
Used for potions and tipped arrows. The RGB red value (0-255) |
|
customColourG |
Whole Number |
 |
Used for potions and tipped arrows. The RGB green value (0-255) |
|
customColourB |
Whole Number |
 |
Used for potions and tipped arrows. The RGB blue value (0-255) |
|
enchantments |
Enchantment Object Array |
 |
These enchantments will be applied to the object (can apply enchantments to any item) |
|
semiRandomEnchantments |
Enchantment Object Array |
 |
One of these enchantments will be added to the item. More information on this is available on the enchantment page |
|
blacklistedEnchantments |
String Array |
 |
Enchantment keys, any defined here will stop the random enchantment feature from selecting that enchantment |
|
effects |
Effect Object Array |
 |
These effects will be applied to the object. Primarily used for potions and tipped arrows |
|
blacklistedEffects |
String Array |
 |
These effects will be avoided when applying random effects to the object. This should be a list of item keys |
|
nbtTags |
Basic NBT Object Array |
 |
You can define any NBTs you like, this is a very basic input and it is recommended you use the advanced method below |
|
advancedNBTData |
String |
 |
This can be used alongside nbtTags. This should be a stringified JSON if the nbt data you want to include. All quotes inside must be escaped (by putting a backslash before the quote \" ) |
|
mapStructure |
String |
 |
Currently broken, don't use |
|