Star Hype News.

Premium celebrity moments with standout appeal.

general

Is there a command to show all active game rules?

By Sophia Hammond

A command that would show all the active and inactive gamerules;; Ie:: keepInventory, mobGreifing, doFireTick, doMobSpawning, doTileDrops, ect.

That way I can tell which are on and off//true or false.

I was looking through the MC wiki to find one such command and didn't see one. I'm not sure if I missed it or not, and I don't really wanna read through the page a third time. XD

If there isn't, there totally should be.

SIDE QUESTION:?:When any such game rule is turned on via redstone÷lever when the signal is sent it's activated, but will flicking the lever off deactivate the command? And the same with buttons, but is it deactivated after pressing it a second time?

1 Answer

There is no command to list all active and inactive gamerules, but you can do /gamerule (gamerule) to determine if the gamerule is true or false. Sorry.

Agreed, there totally should be a command for this.

Side Question Answer: The gamerule will be set to whatever boolean you supply in /gamerule (gamerule) (boolean) no matter how many times you flick the lever or press the button. You can do something like this to produce the desired effect though:

S-R-C-T-C

(S = source, R = repeater, C = command block, T = torch (positioned on the 1st command block)

Command block 1 would have /gamerule (gamerule) true, and #2 would have /gamerule (gamerule) false. When the source is powered, gamerule would be true -- when it's not, gamerule would be false.

4