I have a strange issue regarding scoreboards and stats
Only in gamemode 2 the value of stat.useItem.minecraft.spawn_egg
doesn't count up when using a spawn_egg.
In every version before it worked fine.
To reproduce the problem do the following:
Add a scoreboard:
/scoreboard objectives add egg stat.useItem.minecraft.spawn_egg
/scoreboard objectives setdisplay sidebar egg
After this you can change gamemodes and see that it only counts up when in gamemode 0 or 1.
Also tested if it has something to do with /gamerule doMobSpawning. Both (true/false) states doesn't change anything. I tested it only with a spawnegg (btw. it has metadata 0 but it doesnt affect anything when using another spawnegg).
Comments 7
yeah ... seems like it. Just tested it 😞
Thats sad. There are a lot of maps out there which used the spawn_egg:0 item to do actions when right clicking + gamemode 2. Now this is gone.
Before closing this i would like to ask if you could leave this open until a developer saw this and maybe rethink this or implementing some other kind of "cursor" for mapmakers
Even though this might be intentional, I'd love to see this undone. Please, for the sake of all the mapmakers out there 🙂
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.
/gamemode a
/scoreboard objectives add egged stat.useItem.minecraft.spawn_egg
/scoreboard objectives setdisplay sidebar egged
/give torabi spawn_egg 1 65 {CanPlaceOn:[grass]}
works fine for me. Using the egg increases the objective. The only caveat is that the spawn egg must have the CanPlaceOn tag to even be usable in Adventure Mode.
I think this is intentional, due to the fact that you can't use spawn eggs in adventure mode anyway.
EDIT: Wait a sec. Try spawning a spawn egg with the CanPlaceOn data tag and see if it increases the value.