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

Closed
Open
Created Jul 25, 2023 by Gecy@DieG0Dig

globalscore condition doesn't work with Random Spawns

Summary

I was doing a random spawn, which works fine without adding the globalscore condition, when adding this condition and giving it a value manually with commands inside minecraft sometimes it works and other times it doesn't (most of the time it doesn't work)

Steps to reproduce

1.- Download the plugin and I did tests with the manual configuration.

2.- Edit the Random Spawner file adding the condition "- globalscore{o=test;value=>10} true"

3.- In minecraft perform the following commands:

/scoreboard objectives add test dummy

/scoreboard players set __GLOBAL__ test 10

4.- The random spawn of the mob is not activated.

I also tried changing the logical condition (>, <, >= ,<= ,=)

I carried out multiple tests and there were occasions where the spawner did work and others where it did not work with the condition. In the console I do not receive any error regarding this.

Also the wiki explanation appears as fake player "GLOBAL" instead of __GLOBAL__ https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/conditions/globalscore

Current behavior

N/A The server works perfectly as well as the mobs

Intended correct behavior

If the given scoreboard meets the value of the condition the mob should spawn.

Server log file

https://pastebin.com/RnqAkn1N

Debug log snippet

https://pastebin.com/RnqAkn1N

Proposed fixes

I think the problem is in how the globalscore function obtains the value of the minecraft scoreboard, I'm not sure but possibly it takes the value as a String instead of an Integer, since the operators (>, <, >= ,<=) didn't work in my tests, when I got it to work was when I placed the operator "="

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking