mojira.dev
MC-303846

/gamerule does not accept full resource locations of game rules

In 25w44a, game rules were changed to be part of a registry and to be referred to by resource locations. However, the /gamerule command was not updated to accept resource locations of game rules, and instead still accepts one literal argument for every vanilla game rule.

How to reproduce:

  1. Execute the following command:

    /gamerule advance_time

    → ✔ The command succeeds.

  2. Execute the following command:

    /gamerule minecraft:advance_time

    → ❌ The command is unparseable.

Expected result:

The /gamerule command would accept resource locations of game rules.

Observed result:

The /gamerule command does not accept resource locations of game rules.

Comments 1

Can confirm, it’s wierd and it doesn’t make a lot of sense, however, Slicedlime said that they don’t need the resource location1, but this could cause problems with mods that add gamerules.

1https://youtu.be/YNvWGMO2LKs?si=6hTE_tfLkuhMjp9s&t=28

[Mod] ManosSef

slicedlime

Confirmed

Platform

Normal

Commands

25w44a

1.21.11 Pre-Release 1

Retrieved