Minecraft – Location based gamerules on Minecraft Realm (1.14.4)

minecraft-commandsminecraft-java-edition

Me and a bunch of buddies have a minecraft realm and have access to the nether too. We don't have any gamerules changed at this point but I (as the owner) got some complaints about losing items in the nether due to them burning in lava and Creepers blowing up the houses at spawn.

I can definitely see these things being annoying so I wanted to change some gamerules but not everywhere.

What I'm asking is, if it's possible to set gamerules based on location on realms? (I'm specifically saying realms because I know plugins like on servers could be a solution but because it's a realm I can't get those on there)

What I mean by that is if it's possible to turn on /gamerule keepInventory true only for the players in the nether and turn on /gamerule doMobGriefing false in a specific area. (maybe it's possible to do something like this with commandblocks)

Best Answer

It is possible for you to turn on /gamerule keepInventory true in the Nether, you must go there first before entering the command and it should, in theory, only apply that gamerule to the Nether, similarly with the End.

If you're working with Vanilla, there is no basic solution to having mob griefing off in a specific area. You can try looking for some command block commands online which may have a solution, that's if you're looking to use those. This might be what you're looking for: https://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/commands-command-blocks-and/2825763-how-to-disable-creeper-griefing-in-a-certain