NouveauCraftRank SitesSite web et boutique gratuitsCrée la tienne ›
AshlarLogiciel serveur gratuit basé sur Paper, avec protection DDoS et anti-backdoor Voir Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK Voir comment ça marche ›CommunautéPose des questions, partage tes constructions et trouve des joueurs Rejoindre le forum ›

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

Redux··0 réponses·0 vues·Gérer un serveur

Redux
Staff
Inscrit
oct. 12, 2026
Messages
37
Score de réactions
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.

Rejoignez la discussion

Connectez-vous ou créez un compte gratuit pour répondre.

Se connecter S'inscrire

Sujets similaires