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
  • #1043

Closed
Open
Created Feb 14, 2023 by MooshroomStatus@MooshroomStatus

Condition "TO" Comparator Not Working With Negative Second Integer

Summary

Using any conditions while comparing using the "TO" method (#TO#) don't seem to work when the second integer is a negative value.

Steps to reproduce

Use a condition with the second integer in a TO operation being a negative value.

Current behavior

Using any conditions while comparing using the "TO" method (#TO#) don't seem to work when the second integer is a negative value.

Intended correct behavior

Using a condition with the "TO" method should work when the second integer is a negative value.

Server log file

N/A. No errors reported.

Debug log snippet

N/A. No errors reported.

Proposed fixes

Possible syntax/coding issue? I'm not honestly sure.

Example Skills

Skills That Work:

  • sound{s=block.note_block.guitar;pitch=1} @Self ~onUse ?pitch{p=-10to10}
  • sound{s=block.note_block.guitar;pitch=0.5} @Self ~onUse ?pitch{p=11to90}

Skills That Do Not Work:

  • sound{s=block.note_block.guitar;pitch=1.5} @Self ~onUse ?pitch{p=-11to-30}
  • sound{s=block.note_block.guitar;pitch=2} @Self ~onUse ?pitch{p=-31to-90}
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking