Random rounded out numbers to add to items
When making an item in the config file, when adding an Attribute that has a random value and rounded out, it always gives a +1. Even if the values of the math placeholders are between 2 and 4.
- Make an item in the ExampleItems.yml
- Give it an attribute that applies correctly
- Give it an amount that's random and rounded out like:
Amount: "<rand[2,4]{round=0}>"
or evenArmor: <random.2to4> ADD
- Test this in game and it will always give a +1.
Always gives a +1 value to the give item.
Minecraft version: 1.21 Mythic Mobs version: 5.8.2 Crucible: 2.2.0 SNAPSHOT