set_price
Used for trader loot, sets the price
NBT of the item stack to determine an item's price.
Format
set_price
└─ price_range
- Number provider
Context
By default the NBT tag given to items is only usable by trader npcs and their shops.
Example
{
"functions": [
{
"function": "mineminenomi:set_price",
"price_range": {
"min": 10.0,
"max": 50.0,
"type": "minecraft:uniform"
}
}
]
}