这是 MagicalBanana 对 qouteall 的 Gravity Changer 进行的移植版本的更新,旨在使其更适配服务器环境。该移植版的大部分代码源自 NightEpiphany0401 的上传版本。
功能特性
- 水桶放置现在支持双向操作(此前存在错误)
- 新增命令
/gravity set_server_direction 以在服务器中实现持久化。
- 旋转动画现已忠实还原原版 1.20.4 版本的效果(此前可能因编译错误导致不一致)
- 修复了移动相关的故障(在 1.21.1 移植版中,当玩家撞到墙壁或方块时会出现回弹或无法跳跃的问题)
- 兼容 Immersive Portal。

命令
命令基本保持不变,但新增了一个用于服务器持久化的新命令。
/gravity set_server_direction <direction> 将所有现有及新加入服务器的玩家的方向设置为指定方向。此设置会在重启后保存,因此无需再安装数据包或模组来强制生效。
其他所有命令均保持不变:
/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 显示当前维度的维度重力强度。
配置
新增了一个配置项,用于存储通过 /gravity set_server_direction <direction> 设置的服务器方向。
已知问题
- 船只方向重置为“向下”。——鉴于默认情况下船只就具有这些属性,最好别去动它。
- 船只放置位置仍然不正确。
- 并非所有来自原版 1.20.4 qouteall fork 的物品都已移植过来。
This is an updated version of MagicalBanana's's port of qouteall's Gravity Changer to be more server friendly. Majority of the port comes from NightEpiphany0401's upload.
Features
- Water bucket placement now works bi-directionally (previously it was incorrect)
- New command
/gravity set_server_direction for persistence in servers.
- Rotation animations are now faithful to the original 1.20.4 version (possibly compile error)
- Fixed movement glitches (in the 1.21.1 port, when you ran into a wall or a block, it would rubberband you or make you unable to jump)
- Immersive Portal compatibility.

Commands
The commands remain the same however there is a new command for persistence on servers.
/gravity set_server_direction <direction> sets the direction of every existing and new player that joins the server to be in a certain direction. This saves after restart, so no need to install a datapack or mod to force this anymore.
All the other commands remain the same:
/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.
Config
There is a new config entry, which stores the direction the server is set (from /gravity set_server_direction <direction>)
Known Issues
- Boat reverting to "down" direction. - It is best I don't touch this since by default a boat has these values.
- Boat placement is still wrong.
- Not all the items from the original 1.20.4 qouteall fork has been ported over.
评论 0
登录后参与评分
还没有评论,来抢沙发吧