PssbleTrngle / DataTrades

Allows easy customization of villager trades using datapacks
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Min/max randomized count #17

Closed ginsm closed 3 months ago

ginsm commented 3 months ago

Describe the feature you have in mind.

It'd be nice if you had the option to set a min/max for the TradeIngredient count and the code would pick a number within the given range.

Does this solve a particular problem?

It brings the mod's functionality closer to vanilla trades, as some trades do have quantity ranges.

PssbleTrngle commented 3 months ago

You should be able to do that using the minecraft:set_count function, you can find documentation about it on the wiki

ginsm commented 3 months ago

Awesome, thanks for the info. :)