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.

  1. Make an item in the ExampleItems.yml
  2. Give it an attribute that applies correctly
  3. Give it an amount that's random and rounded out like: Amount: "<rand[2,4]{round=0}>" or even Armor: <random.2to4> ADD
  4. Test this in game and it will always give a +1.

Always gives a +1 value to the give item.

Server_Log_File.txt

Debug_Log_Snippet.txt

Minecraft version: 1.21 Mythic Mobs version: 5.8.2 Crucible: 2.2.0 SNAPSHOT

Edited Jun 12, 2025 by Brickgard
Assignee Loading
Time tracking Loading