mojira.dev
MC-121783

/gamerule doesn't work at all

The bug

It appears the /gamerule command is not modifying the gamerule values anymore, or rather the modified values don't take effect.

How to reproduce

  1. Give yourself some items

    /give @s stone
  2. Change the gamerule keepInventory

    /gamerule keepInventory true
  3. Verify the value was changed

    /gamerule keepInventory
  4. Use /kill

    /kill @s

    → The items were dropped

Linked issues

MC-121784 Gamerule Commands not working Resolved MC-121793 doDaylightCycle set to false doesn't work Resolved MC-121801 gamerule command not working Resolved MC-121817 /data get does nothing Resolved MC-121825 /gamerule doFireTick false doesn't prevent fire spread. Resolved

Attachments

Comments 12

Confirmed, here's the commands I tried:

/gamerule commandBlockOutput false
Execution of a command block still spams chat.

/gamerule gameLoopFunction path:myfunction
Doesn't loop the function.

can confirm commandblockoutput not working, gameLoopFunction could also be part of the issue that seems to be preventing functions from being found at all

Confirmed.

/gamerule doDaylightCycle false

doesnt working

Thanks for the three confirmations, but it's already marked as "confirmed", no need for more.

@unknown No, it's not related, you just had an error in your function. (commenting here so that future readers don't think it's related)

2 more comments

Normally we would ask you if you can reproduce it without that, but in this case I've observed it myself with a world that always had commands on.

Very strange, I loaded a few worlds, both with cheats on and off, not touched for a month or two.

No issues with the cheats always on, the worlds with cheats off don't autocomplete commands after opening to LAN with cheats on and the gamerules don't stick (gamemode works though)

Gamerule fails to work from multiplayer/in-game on my friend's snapshot server either, if that helps any.

it still doesnt work in 17w46a

Fix Version/s: Future Version - 1.13+

Fixed for the next snapshot.

Seth

Nathan Adams

Confirmed

/gamerule

Minecraft 17w45b, Minecraft 17w46a

Minecraft 17w47a

Retrieved