Novoon GoogleMake CraftRank a preferred source in Google SearchAdd on Google ›
CraftRank SitesA free website and store for your server Faça a sua ›AshlarSoftware de servidor grátis baseado no Paper, com proteção contra DDoS e backdoors Ver o Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK Veja como funciona ›ComunidadeFaça perguntas, compartilhe construções e encontre gente para jogar Entrar no fórum ›

PSAkeepInventory not working? Every renamed gamerule in Java 1.21.11+ (old vs new names)

Redux··0 respostas·0 visualizações·Rodando um servidor

Redux
Staff
Entrou
out 12, 2026
Mensagens
37
Pontuação de reações
0
#1
Since Java 1.21.11 the gamerules have new names in snake_case, and some were renamed completely. If /gamerule keepInventory true suddenly says "unknown", this is why. Bedrock still uses the old names.

Old name → new name (Java)

BeforeNow
keepInventorykeep_inventory
doDaylightCycleadvance_time
doWeatherCycleadvance_weather
doMobSpawningspawn_mobs
mobGriefingmob_griefing
doInsomnia (phantoms)spawn_phantoms
doImmediateRespawnimmediate_respawn
naturalRegenerationnatural_health_regeneration
playersSleepingPercentageplayers_sleeping_percentage
announceAdvancementsshow_advancement_messages
showDeathMessagesshow_death_messages
randomTickSpeedrandom_tick_speed
spawnRadiusrespawn_radius
pvppvp
The full IDs carry a namespace (for example minecraft:keep_inventory), but typing the short name works in the command.

Copy-paste examples

/gamerule keep_inventory true
/gamerule advance_time false
/gamerule spawn_phantoms false
/gamerule players_sleeping_percentage 50

On Bedrock it is still /gamerule keepinventory true.

For server owners

Plugins, datapacks and command blocks that set gamerules by the old name will fail quietly. Search your configs and functions for the old names after updating, and update plugins that change gamerules.

Participe da conversa

Entre ou crie uma conta grátis para responder.

Entrar Cadastrar

Tópicos semelhantes