NeuCraftRank SitesKostenlose Website mit ShopMach deine ›
AshlarKostenlose Serversoftware auf Paper-Basis mit DDoS- und Backdoor-Schutz Ashlar ansehen ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK So funktioniert es ›CommunityStell Fragen, teile Bauten und finde Leute zum Spielen Zum Forum ›

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

Redux··0 Antworten·0 Aufrufe·Server betreiben

Redux
Team
Beigetreten
Okt. 12, 2026
Nachrichten
37
Reaktionspunkte
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.

Mach mit

Melde dich an oder erstelle ein kostenloses Konto, um zu antworten.

Einloggen Registrieren

Ähnliche Themen