提供重力改变功能及 API。
注意:本模组基于但不同于 Fusion Flux 的 Gravity API。 这是 Fusion Flux 的 Gravity API(在 Fabric 上)的一个分支(Immersive Portals 模组依赖于重力改变模组,但 Fabric 模组不能依赖于 Quilt 模组)。Gravity API 模组最初基于 Gaider10 的 Gravity Changer 模组。
本模组的最新版本提供:
- 重力效果与药水
- 重力锚点
- 重力板,可生成重力场。其影响范围可自定义。
这些内容在普通生存模式下无法获取。
部分代码和资源来自 AmethystGravity 模组。
注意:0.9.0 版本与 Quilt 不兼容。
命令
本模组的命令与 Gravity API 的不同。以下是本模组最新版本中的命令:
/gravity set_base_direction <direction> [entities] 设置基础重力方向。(基础方向可以被包括效果、重力锚点和重力板在内的其他因素覆盖)。如果没有 [entities] 参数,则目标为命令发送者(所有命令均适用此规则)。示例:/gravity set_base_direction up /gravity set_base_direction up @e[type=!minecraft:player]
/gravity set_base_strength <strength> [entities] 设置基础重力强度。强度效果将叠加到基础强度上(而不是覆盖它)。示例:/gravity set_base_strength 0.5 /gravity set_base_strength 0.5 @e
/gravity view 显示命令发送者的基础重力方向和强度。
/gravity reset [entities] 重置基础重力方向和强度。
/gravity randomize_base_direction [entities] 将基础方向设置为随机方向。
/gravity set_relative_base_direction <relativeDirection> [entities] 将重力方向设置为相对于实体视角的方向。<relativeDirection> 可以是 forward、backward、left、right、up 或 down。
/gravity set_dimension_gravity_strength <strength> 设置当前维度的重力强度。
/gravity view_dimension_info 显示当前维度的重力强度信息。
Provides gravity changing functionality and API.
Note: this mod is based on but different to Gravity API by Fusion Flux. This is a fork of Gravity API from Fusion Flux that is on Fabric (Immersive Portals mod depends on gravity changing mod but a Fabric mod cannot depend on a Quilt mod). The Gravity API mod is originally based on the Gravity Changer mod by Gaider10.
The latest version of this mod provides:
- Gravity effects and potions
- Gravity anchor
- Gravity plate that generates gravity field. Its effect range can be customized.
These things are not obtainable on normal survival.
Some code and resources come from AmethystGravity mod.
Note: the version 0.9.0 is incompatible with Quilt.
Commands
This mod's commands are different to Gravity API's. These are the commands in the latest version of this mod:
/gravity set_base_direction <direction> [entities] sets the base gravity direction. (The base direction can be overridden by other things including effects, gravity anchor and gravity plating). Without [entities] argument it will target the command sender (the same applies to all commands). Examples: /gravity set_base_direction up /gravity set_base_direction up @e[type=!minecraft:player]
/gravity set_base_strength <strength> [entities] sets the base gravity strength. The strength effects will multiply on the base strength (instead of overriding it). Examples: /gravity set_base_strength 0.5 /gravity set_base_strength 0.5 @e
/gravity view shows the base gravity direction and strength of the command sender.
/gravity reset [entities] reset the base gravity direction and strength.
/gravity randomize_base_direction [entities] sets the base direction as a random direction.
/gravity set_relative_base_direction <relativeDirection> [entities] sets the gravity direction as a direction relative to the entity's viewing direction. The <relativeDirection> can be forward, backward, left, right, up or down.
/gravity set_dimension_gravity_strength <strength> sets the dimensional gravity strength for the current dimension.
/gravity view_dimension_info shows the dimensional gravity strength for the current dimension.
评论 0
登录后参与评分
还没有评论,来抢沙发吧