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 132
    • Issues 132
    • 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
  • #1850

Closed
Open
Created Mar 01, 2025 by SkyKiller63@SkyKiller6363🤔Reporter

Tool Component - Rules not reading float properly?

Summary

When trying to load the TestTool item below, I get an "Error loading item 'TestTool'." I have debugging stack trace below as well.

Steps to reproduce

Install TestTool item on your server, do /mm reload and see the item fails to load. If you remove the "Rules" section of the config, the tool does load.

TestTool:
  Id: COD
  Display: '<purple>Obsidian Destroyer'
  Tool:
    DamagePerBlock: 1
    DefaultMiningSpeed: 5.0
    Rules:
      - materials: "OBSIDIAN,CRYING_OBSIDIAN"
        speed: 10000.0
        isCorrectForBlock: true 

Server log file

https://mclo.gs/nPLvLZa

Debug log snippet

Small Snippet: https://mclo.gs/NhH3Gri Whole snippet: https://mclo.gs/Ka43WrK

Proposed fixes

Take a look at the double/float parser and the rules section of the tool component.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking