跳到正文

Classic Gamerule

作者:fallen-breath

Bring back the classic camel-case gamerules to MC 1.21.11+

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

A simple mod that brings back the classic gamerule names to MC 1.21.11+

Minecraft renamed all gamerules from camelCase to namespaced:snake_case in 25w44a (1.21.11 snapshot),
and even reverted the values of some rules, which broke all existing usage of gamerules.
This is a poorly implemented incompatible change. Let’s “revert” it by restoring the old names in Minecraft.

For example, classic gamerules like doDaylightCycle were changed to advance_time (actually minecraft:advance_time), and doMobSpawning became spawn_mobs

What This Mod Does

Functionalities:

  1. Add all camelCase names as aliases for existing gamerules, e.g. /gamerule doMobSpawning false will work again now
  2. Correctly mapped rule values that were inverted, e.g., disableElytraMovementCheck has the opposite value of minecraft:elytra_movement_check

Limitation:

  1. This mod only restores the classic naming conventions and value mappings. It does not revert the newly added value constraints for certain gamerules (e.g. minecraft:max_entity_cramming)
  2. Classic rule doFireTick and allowFireTicksAwayFromPlayer are read-only now. Since their successor minecraft:fire_spread_radius_around_player cannot perfectly express the intention of these 2 old rules

Requirement

This mod is server-side only (including single-player worlds) and requires no additional dependencies.
It supports all Minecraft versions since 1.21.11

常见问题

Classic Gamerule 支持哪些 Minecraft 版本?

Classic Gamerule 支持 Minecraft Java 版 1.21.11–26.3,共 6 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Classic Gamerule 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

fallen-breath 的其他作品

查看全部 →