Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 154
    • Issues 154
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1937

Closed
Open
Created Jun 05, 2025 by tygo122001@tygo122001

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
Assign to
None
Milestone
None
Assign milestone
Time tracking