NoweCraftRank SitesDarmowa strona i sklepZrób swoją ›
AshlarDarmowe oprogramowanie serwera oparte na Paper, z ochroną przed DDoS i backdoorami Zobacz Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK Zobacz, jak to działa ›SpołecznośćZadawaj pytania, dziel się budowlami i znajdź ludzi do gry Dołącz do forum ›

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

Redux··0 odpowiedzi·0 wyświetleń·Prowadzenie serwera

Redux
Administracja
Dołączył
paź 12, 2026
Wiadomości
37
Wynik reakcji
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.

Dołącz do rozmowy

Zaloguj się lub załóż darmowe konto, aby odpowiedzieć.

Zaloguj się Zarejestruj się

Podobne wątki