? 生物群系专属重力
BioGrav 是一个轻量级数据包,添加了多个由生物群系标签控制的类别,用于改变实体(包括玩家)的重力及相关属性。玩家的体验是平滑的:随着玩家靠近特定生物群系,其重力会根据距离该群系的远近逐渐变化。仅站在生物群系边界上不会获得完整的重力效果;要体验到完整的效果,玩家需要在所有方向上至少被该生物群系包围 4 个方块的距离。
出于性能考虑,除玩家外的其他实体不会拥有平滑过渡,而是根据是否处于该生物群系内直接应用全部重力效果或无重力效果。这些更新每秒对所有实体执行一次,或者对靠近玩家的实体更快但不一致地执行。可以通过将实体添加到 #biograv:smooth_transition 实体类型标签中来更改此行为,但这可能会导致严重的 TPS 延迟。
? 自定义
在基础数据包中,所有生物群系标签均为空,因此没有任何生物群系会改变实体的重力。这可以通过应用版本页面中包含的 BioGrav Defaults 数据包来实现,或者通过将生物群系添加到以下生物群系标签中:
生物群系标签
#biograv:kind_of_low_grav
重力:-60%
步高:+100% (1 个方块)
安全坠落距离:+200% (9 个方块)
坠落伤害乘数:-50%
#biograv:low_grav
重力:-83.3% (大致与月球重力相同)
步高:+150% (1.25 个方块)
安全坠落距离:+500% (18 个方块)
坠落伤害乘数:-70%
#biograv:ultra_low_grav
重力:-90%
步高:+200% (1.5 个方块)
安全坠落距离:+900% (30 个方块)
坠落伤害乘数:-80%
#biograv:high_grav
重力:+50%
跳跃强度:+17.5% (跳跃高度大致保持不变)
安全坠落距离:-16.7% (2.5 个方块)
坠落伤害乘数:+100%
移动速度:-10%
移动效率:+0.025 (以减少在灵魂沙上行走时的不便)
#biograv:ultra_high_grav
重力:+100%
跳跃强度:+40% (跳跃高度大致保持不变)
安全坠落距离:-33.3% (2.5 个方块)
坠落伤害乘数:+200%
移动速度:-25%
移动效率:+0.1 (以减少在灵魂沙上行走时的不便)
❗ 虽然可以将单个生物群系添加到多个生物群系标签中,但此举未经测试且不受支持,可能会导致不可预测的结果。(祝玩得开心!)
✨ 效果
数据包或管理员可以使用命令来指定当玩家进入或离开低重力或高重力生物群系时显示的粒子效果和声音。这些效果可以通过运行函数进行设置:
配置函数
/function biograv:_config/effects/low_grav/enter/particle {id: "", pos: "", delta: "", speed: 1.0, count: 1, viewers: ""}
id: 粒子类型(例如 "minecraft:happy_villager")
pos: 粒子位置,支持相对坐标或局部坐标(例如 "~ ~0.05 ~"、"^ ^ ^1")
-- 相对坐标以玩家的脚部为基准,局部坐标以玩家的眼睛为基准
delta: 粒子生成的坐标范围
speed: 粒子速度
count: 粒子数量
viewers: 目标选择器,用于指定谁能看到这些粒子(例如 "@s" 表示仅进入/离开该生物群系的玩家可见)
/function biograv:_config/effects/low_grav/enter/sound {id: "", pitch: 1.0, volume: 1.0}
id: 要播放的声音事件(例如 "minecraft:block.stone.place")
pitch: 声音音调
-- 音调会根据重力变化程度(kind_of、ultra)而变高或变低
volume: 声音音量
/function biograv:_config/effects/low_grav/enter {particle: {粒子配置}, sound: {声音配置}}
等同于使用各自的配置运行 .../particle 和 .../sound 函数。
/function biograv:_config/effects/low_grav/exit {particle: {粒子配置}, sound: {声音配置}}
同上,但适用于退出 low_grav 生物群系而非进入的情况。
/function biograv:_config/effects/low_grav {enter: {进入配置}, exit: {退出配置}}
等同于使用各自的配置运行 .../enter 和 .../exit 函数。
/function biograv:_config/effects/high_grav {enter/exit config}
同上,但适用于 high_grav 而非 low_grav 生物群系。
/function biograv:_config/effects {low_grav: {低重力配置}, high_grav: {高重力配置}}
等同于使用各自的配置运行 .../low_grav 和 .../high_grav 函数。
❗ 每个函数的所有字段都是必填项(即你不能省略粒子的 count 或声音的 volume,必须为它们设置值,函数才能正常运行)。这意味着更高层级的函数,尤其是 biograv:_config/effects,通常太长而无法在聊天窗口中完整显示。如果你是手动修改效果,请使用参数较少的较低层级函数,如 biograv:_config/effects/high_grav/exit/particle。
❗ 效果仅在进入/退出
#biograv:effects 生物群系标签中的生物群系时才会显示,该标签默认为空。
?? BioGrav 默认配置
BioGrav Defaults 是一个示例数据包,作为单独下载项包含在版本页面中。它不一定旨在用于生存玩法,仅为希望将 BioGrav 集成到自己项目中的数据包创作者提供参考。但这并不意味着它 不能 用于生存模式。
? 下界
如果你认为下界已经险象环生,那么准备好迎接全新的挑战吧:站稳脚跟。所有下界生物群系的重力都显著增加,这会让习惯了主世界体感的玩家本能失调,使得判断能否完成跳跃变得完全不一样。
有趣的是,灵魂沙峡谷似乎比其他下界区域拥有更高的重力。原因何在,无人知晓,尽管这可能与该生物群系痛苦的历史有关……
? 末地
当你进入末地时,你会立刻察觉到不同之处:你感觉身体变轻了。在末地,你可以跳得更高,并且可以像爬楼梯一样轻松走上方块。与末影龙的战斗变得更加令人兴奋了!
主岛的重力保持一致,但外岛的情况则不然。广袤的末地虚空充满了不可预测的重力异常。靠近由小型末地岛屿组成的群岛可以让你轻松地在它们之间跳跃,但要小心环绕它们的末地荒原的空旷深渊——那里不太低的gravity可能会让你欢乐的时光戛然而止。
? Biome-specific gravity
BioGrav is a lightweight data pack that adds several categories controlled by biome tags which change mobs' gravity (and related attributes). Players experience these attribute changes smoothly: as a player gets closer to the biome, their gravity will change based on their proximity to the biome. Standing just on the border of a biome will not grant the player the full gravity change; to experience the full effect, a player must be surrounded by the biome by at least 4 blocks on all sides.
For performance reasons, mobs other than the player do not have smooth transitions and instead receive attribute updates which apply either the full gravity effect or no gravity effect depending on whether or not they are in the biome. These updates are applied to all mobs once per second, or to mobs closer to a player more quickly but inconsistently. This can be changed by adding mobs to the #biograv:smooth_transition entity type tag, although this may cause excessive TPS lag.
? Customization
In the base data pack, all biome tags are empty, so no biomes will change mobs' gravity. This can be changed by applying the BioGrav Defaults data pack included in the version page, or by adding biomes to the following biome tags:
Biome tags
#biograv:kind_of_low_grav
Gravity: -60%
Step Height: +100% (1 block)
Safe Fall Distance: +200% (9 blocks)
Fall Damage Multiplier: -50%
#biograv:low_grav
Gravity: -83.3% (roughly the same gravity as the moon)
Step Height: +150% (1.25 blocks)
Safe Fall Distance: +500% (18 blocks)
Fall Damage Multiplier: -70%
#biograv:ultra_low_grav
Gravity: -90%
Step Height: +200% (1.5 blocks)
Safe Fall Distance: +900% (30 blocks)
Fall Damage Multiplier: -80%
#biograv:high_grav
Gravity: +50%
Jump Strength: +17.5% (jump height remains about the same)
Safe Fall Distance: -16.7% (2.5 blocks)
Fall Damage Multiplier: +100%
Movement Speed: -10%
Movement Efficiency: +0.025 (to make walking in soul sand less annoying)
#biograv:ultra_high_grav
Gravity: +100%
Jump Strength: +40% (jump height remains about the same)
Safe Fall Distance: -33.3% (2.5 blocks)
Fall Damage Multiplier: +200%
Movement Speed: -25%
Movement Efficiency: +0.1 (to make walking in soul sand less annoying)
❗ While it is possible, adding a single biome to more than one biome tag is untested and unsupported, and may yield unpredictable results. (Have fun!)
✨ Effects
Data packs or operators can use commands to specify particles and sounds for when players enter or exit a low- or high-gravity biome. These effects can be set by running functions:
Config functions
/function biograv:_config/effects/low_grav/enter/particle {id: "", pos: "", delta: "", speed: 1.0, count: 1, viewers: ""}
id: Type of particle (e.g. "minecraft:happy_villager")
pos: Position of particle, supports relative or local coordinates (e.g. "~ ~0.05 ~", "^ ^ ^1")
-- Relative coordinates are from the player's feet, local coordinates are from their eyes
delta: Coordinate range particles spawn in
speed: Speed of particles
count: Number of partices
viewers: Target selector for who can see the particles (e.g. "@s" for only the player entering/exiting the biome)
/function biograv:_config/effects/low_grav/enter/sound {id: "", pitch: 1.0, volume: 1.0}
id: Sound event to play (e.g. "minecraft:block.stone.place")
pitch: Pitch of sound
-- Pitch is higher or lower depending on the gravity change (kind_of, ultra)
volume: Volume of sound
/function biograv:_config/effects/low_grav/enter {particle: {particle config}, sound: {sound config}}
Equivalent to running .../particle and .../sound functions with their respective config.
/function biograv:_config/effects/low_grav/exit {particle: {particle config}, sound: {sound config}}
Ditto, for exiting a low_grav biome instead of entering one.
/function biograv:_config/effects/low_grav {enter: {enter config}, exit: {exit config}}
Equivalent to running .../enter and .../exit functions with their respective config.
/function biograv:_config/effects/high_grav {enter/exit config}
Ditto, for high_grav instead of low_grav biomes.
/function biograv:_config/effects {low_grav: {low_grav config}, high_grav: {high_grav config}}
Equivalent to running .../low_grav and .../high_grav functions with their respective config.
❗ All fields for every function are required (i.e. you can't omit the count of a particle or the volume of a sound, you have to set them to something for the function to run properly). That means higher-level functions, especially biograv:_config/effects, are often too long to fit in the chat. If you're modifying the effects manually, use lower-level functions like biograv:_config/effects/high_grav/exit/particle with fewer arguments.
❗ Effects are only shown when entering/exiting biomes in the
#biograv:effects biome tag, which is empty by default.
?? BioGrav Defaults
BioGrav Defaults is a sample data pack included in the version page as a separate download. It is not necessarily intended for use in survival gameplay and merely serves as a reference for any data pack creators looking to implement BioGrav into their own projects. That doesn't mean it can't be used for survival, though.
? The Nether
If you thought the Nether was a treacherous place already, get ready for a whole new challenge: finding your footing. Gravity in all Nether biomes is severely increased, throwing off the instincts of those used to the feel of the Overworld and making it an entirely different story to judge whether or not you can make that jump.
Curiously enough, the Soul Sand Valley seems to have even higher gravity than the rest of the Nether. Why that is, no one really knows, although maybe it has something to do with the biome's tortured past...
? The End
When you enter the End, you'll immediately notice something different: you feel lighter. In the End, you can jump much higher, and step up blocks as if they were stairs. The dragon fight just got a lot more exciting!
The main island has the same gravity throughout, but the same can't be said for the outer islands. The voidscape of the greater End is filled with unpredictable gravitational anomalies. Approaching an archipelago of Small End Islands will allow you to bound between them with ease, but watch out for the empty gulfs of End Barrens surrounding them -- the not-so-low gravity there might put an abrupt end to your frolicking.
评论 0
登录后参与评分
还没有评论,来抢沙发吧