Open up your world file, and navigate to level. dat > Data > Gamerules. Within those gamerules you should see the one you created. Select it, and press delete.
Why don t commands work on Minecraft?
If the commands aren’t working and you are sure that it is correct (The one on your question is correct), then either you have cheats disabled, you aren’t op (only if you’re on servers), or using an old version. The “@e” target selector was added in Minecraft 1.8.
How do I enable cheats in Minecraft?
To turn on cheats in Minecraft Java Edition (PC/Mac), you need to create a new world and select More World Options… from the menu. This will take you to another window where you select Allow Cheats: ON in the menu. Then continue to create your world as you normally would.
What do you do with the gamerule command in Minecraft?
You can use the gamerule command to set KeepInventory to true to retain your inventory after dying. Congratulations, you have learned how to use the /gamerule command in Minecraft. Other Game Commands
What to do if your gamerule doesn’t work?
If all else fails, you might have to re-install Minecraft. If that doesn’t work, I have no idea what will. Happy Crafting! For some reason, if you do /gamerule set (example gamerule) then it will of claimed to of done the gamerule when it has actually not, but if you just put /gamerule (example gamerule) then it will work fine.
How to make gamerule keepinventory true in Minecraft?
Type /give @p minecraft:command_block. Go onto Creative by typing /gamemode 1 in chat and then right click on the ground to place the command block. Open it up, and type gamerule keepInventory true make sure the capitals are exactly the same (e.g. not keepinventory or KeepInventory) and press Done. Power it via a means of redstone.
What are the effects of gamerules in Minecraft?
Invalid or misuse of gamerules can cause unpredictable or damaging behavior. For more information about gamerules, and the effects they can have on gameplay, be sure to reference the Minecraft wiki here: Minecraft Wiki.