Minecraft wiki entry for Development_versions, associated text: The scoreboard operator %= was changed from using Java's native % to using Math.floorMod. This causes the operator to use floored modulo instead of truncated modulo, so now -1 % 7 wraps to 6 instead of returning -1.[4]