HighFloaty
越高越轻盈。
一款适用于 NeoForge 1.21.1 的小型模组,可根据海拔高度平滑调整重力。在云层高度,跳跃距离更远,坠落冲击更轻,箭矢会在空中划出长长的弧线。在地面附近,一切保持原版体验。
功能说明
在可配置的 Y 轴高度以下(默认 y=200),重力完全遵循原版设定。从该高度向上至可配置的最高 Y 轴高度(默认 y=319),重力会逐渐减弱至可配置的最小倍数(默认 50%)。曲线形状可选:线性(平滑递减)或指数型(在大部分上升过程中重力接近原版,仅在顶部急剧下降)。
效果适用于:
- 玩家和生物
- 掉落物、下落方块、TNT
- 箭矢、投掷的投射物
- 船和矿车
摔落伤害随之自然变化,落地速度越低,受到的伤害越少。
Create Aeronautics 支持
如果你安装了 Create Aeronautics 和 Sable,HighFloaty 会自动激活兼容代码,使飞艇、飞机、热气球以及其他由 Sable 驱动的子层级(sub-levels)在高处也感觉更轻盈。此集成完全是可选的:如果没有安装 Sable,模组仅作为原版重力微调运行。
命令
一个小型文本 HUD 会显示你当前的 Y 轴高度、在该高度计算出的重力倍数以及当前配置(总开关、范围、最小倍数、曲线模式):
/hfhud — 切换 HUD 显示(客户端侧,无需权限)
为了实时调整,提供了一套仅限 OP 的命令树:
/highfloaty info 显示当前设置
/highfloaty toggle 切换总开关状态
/highfloaty start <y> 设置重力递减的起始 Y 值
/highfloaty end <y> 设置重力递减的结束 Y 值
/highfloaty min <0.0..1.0> 设置最小重力倍数
/highfloaty curve <linear|exponential> 切换衰减曲线形状
/highfloaty airships <on|off> 切换 Sable 飞艇集成开关
/highfloaty reset 清除运行时覆盖设置
Y 轴范围从 -2048 到 4096,因此支持扩展世界高度的模组。
命令仅修改内存中的覆盖设置。重启游戏以恢复配置文件中的值。这对于在不永久更改的情况下测试合适的曲线非常有用。
配置
编辑 config/highfloaty-common.toml 或使用游戏内配置界面(Mods → HighFloaty → Config):
| 设置项 |
默认值 |
描述 |
enabled |
true |
总开关 |
gravityStartY |
200 |
在此 Y 值及以下,重力完全为原版 |
gravityEndY |
319 |
在此 Y 值及以上,重力达到最小值 |
gravityMinMultiplier |
0.5 |
在结束 Y 值及以上的重力倍数。1.0 = 原版,0.0 = 零重力 |
curveMode |
LINEAR |
LINEAR(直线递减)或 EXPONENTIAL(顶部陡峭递减) |
airshipScaling |
true |
如果为 true 且安装了 Sable,则缩放飞艇/子层级的重力。如果出现异常,请设置为 false |
不影响的内容
- Vanilla Create 的旧式机械装置(如矿车、机械活塞、机械轴承、电梯滑轮)。 这些使用 Create 自身的移动代码,不经过标准的实体重力系统。
- 子层级内部的 Rapier 碰撞动力学。 在移动的飞艇甲板上滚动的物品仍然受引擎内部重力影响(在维度初始化时设定一次)。整体运动受海拔缩放;甲板上的物理效果不受影响。
- Iris Shaders 与 Sable 存在已知的视觉问题。这不是我们的问题,但如果你看到奇怪的渲染效果,值得注意。
兼容性
- Minecraft 1.21.1
- NeoForge 21.1.0 或更高版本
- Sable / Create Aeronautics — 可选。如果已安装,兼容功能将自动激活。
- 客户端和服务器均需安装。 重力是一种物理计算,需要在两端运行;安装不一致会导致不同步。
服务器使用
将 jar 文件放入服务器的 mods/ 文件夹中。所有连接的玩家也需要安装该模组。
要在实时服务器上调整曲线:使用 /highfloaty info 查看活动设置,通过命令集进行调整,找到喜欢的配置,然后将其写入 config/highfloaty-common.toml 以便在重启后持久保存。
已知限制
- Vanilla Create 的旧式机械装置类型(矿车、活塞、轴承)不受影响。由 Sable 驱动的 Aeronautics 机械装置受影响。
- Sable 正在积极开发中。如果未来的 Sable 版本重构了
ServerSubLevel.prePhysicsTick,飞艇集成可能需要更新——如果发生这种情况,请使用 /highfloaty airships off 禁用。
- 针对 Sable 1.1.3 进行了测试。
致谢
HighFloaty
The higher you go, the floatier you get.
A small NeoForge 1.21.1 mod that scales gravity smoothly with altitude. Up at cloud height, jumps carry further, falls land softer, and arrows drift through the sky on long arcs. Down at ground level, everything is vanilla.
What it does
Below a configurable Y level (default y=200), gravity is fully vanilla. From there up to a configurable end Y (default y=319), gravity ramps down to a configurable minimum multiplier (default 50%). The curve shape is selectable: linear (smooth ramp) or exponential (gravity stays near vanilla most of the way up, then drops sharply near the top).
The effect applies to:
- Players and mobs
- Dropped items, falling blocks, TNT
- Arrows, thrown projectiles
- Boats and minecarts
Fall damage scales naturally,so less velocity at impact means less damage.
Create Aeronautics support
If you have Create Aeronautics and Sable installed, HighFloaty automatically activates compatibility code so airships, planes, hot-air balloons, and other Sable-driven sub-levels also feel lighter at altitude. The integration is fully optional: without Sable, the mod runs as a vanilla gravity tweak.
Commands
A small text HUD shows your current Y, the computed gravity multiplier at that Y, and the active configuration (master enable, range, min multiplier, curve mode):
/hfhud — toggle the HUD (client-side, no permissions needed)
For tweaking on the fly, an OP-only command tree:
/highfloaty info show current settings
/highfloaty toggle flip master enable
/highfloaty start <y> set the start of the gravity ramp
/highfloaty end <y> set the end of the gravity ramp
/highfloaty min <0.0..1.0> set the minimum gravity multiplier
/highfloaty curve <linear|exponential> switch falloff shape
/highfloaty airships <on|off> toggle Sable airship integration
/highfloaty reset clear runtime overrides
Y bounds run from -2048 to 4096, so extended-world-height mods are supported.
Commands modify in-memory overrides only. Restart the game to revert to your config file values. Useful for finding the right curve without committing to it.
Configuration
Edit config/highfloaty-common.toml or use the in-game config screen (Mods → HighFloaty → Config):
| Setting |
Default |
Description |
enabled |
true |
Master toggle |
gravityStartY |
200 |
At and below this Y, gravity is fully vanilla |
gravityEndY |
319 |
At and above this Y, gravity reaches its minimum |
gravityMinMultiplier |
0.5 |
Multiplier at and above end Y. 1.0 = vanilla, 0.0 = zero gravity |
curveMode |
LINEAR |
LINEAR (straight ramp) or EXPONENTIAL (steep near the top) |
airshipScaling |
true |
If true and Sable is installed, scales airship/sub-level gravity. Set to false if it misbehaves |
What it does NOT affect
- Vanilla Create cart contraptions, mechanical pistons, mechanical bearings, elevator pulleys. These use Create's own movement code that doesn't go through standard entity gravity.
- Rapier internal collision dynamics inside a sub-level. Items rolling on a moving airship deck still feel the engine's internal gravity (set once at dimension init). The body's overall motion is altitude-scaled; on-deck physics is not.
- Iris Shaders has known visual issues with Sable. Not our problem, but worth knowing if you see weird rendering.
Compatibility
- Minecraft 1.21.1
- NeoForge 21.1.0 or higher
- Sable / Create Aeronautics — optional. Compat activates automatically if installed.
- Required on both client and server. Gravity is a physics calculation that runs on both sides; mismatched installs cause desync.
Server use
Drop the jar in the server's mods/ folder. All connecting players also need the mod installed.
For dialing in the curve on a live server: use /highfloaty info to see active settings, tweak with the command set, find what you like, then write the same values into config/highfloaty-common.toml so they persist across restarts.
Known limitations
- Vanilla Create's older contraption types (carts, pistons, bearings) aren't affected. Sable-driven Aeronautics contraptions are.
- Sable is in active development. If a future Sable version refactors
ServerSubLevel.prePhysicsTick, the airship integration may need an update — disable with /highfloaty airships off if that happens.
- Tested against Sable 1.1.3.
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧