更多更新版本可用:Gravity Changer Updated。
提供用于修改大多数实体重力的方向和强度的功能及 API。
此模组的最新版本还提供以下功能:
重力药水效果
手持时改变重力的物品
用于改变其他实体重力的单体和范围(AOE)物品
可生成自定义范围重力场地的重力板
然而,上述内容目前在生存模式中无法获取。
受影响的实体:
默认情况下,所有生物实体、投射物和矿车都可以改变重力。尽管这是可能的,但许多实体行为(如寻路)在实体旋转时会出错(但可以正常锁定旋转后的玩家),因此该模组对玩家的效果最佳。
对于其他类型的实体,位于标签 gravity_changer:allowed_special 中的实体类型可以改变重力。
命令:
本模组的命令与 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 显示当前维度的重力强度。
Fork 历史和致谢:
部分代码和资源来自 Amethyst Gravity。
这是 qouteall 的 GravityChanger 的一个分支。
后者是 Fabric 版 FusionFlux 的 Gravity API 的一个分支。
Gravity API 部分是 Gaider10 的 GravityChanger 的一个分支(部分代码最初也改编自早期的重力模组,如 Pehkui,以及原版特性如 Dinnerbone 代码,随后被重写)。
1.12+ 世代的重力模组似乎部分基于 Mysteryem 的 Up and Down and All Around 的代码。
据我所知,大多数 1.7.10 之后的重力模组都是试图重现我认为的最初的重力模组 StarMiner 中的重力效果。
不过,至少有一个名为 GravityCraft 的早期重力模组存在于 1.2.5 版本中,它可能启发了其他模组,因为某些功能看起来似曾相识。
如果有遗漏的重力模组,请告知我。
More updated version avaliable: Gravity Changer Updated.
Provides functionality and API for modifying the direction and strength of most entities' gravity.
The latest version of this mod also provides:
Gravity potion effects
Items that change gravity when held
Individual and AOE items for changing other entity's gravity
Gravity plates that generate gravity fields of customizable range
However, the above are not currently obtainable in survival.
Affected Entities:
By default all living entities, projectiles, and minecarts can change gravity. Although while possible, many entity behaviors such as pathfinding break when an entity is rotated (but can target rotated players fine), and as such the mod works best on the player.
For other entity types, the entity types that are in tag gravity_changer:allowed_special can change gravity.
Commands:
This mod's commands are different from Gravity API's and are subject to change as functions of the mod are altered. 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.
Fork history and Credits:
Some code and resources come from Amethyst Gravity.
This is a fork of qouteall's GravityChanger.
Which is a fork of FusionFlux's Gravity API for Fabric.
Gravity API was partially a fork of Gaider10's GravityChanger (Some code also was originally adapted from earlier gravity mods, mods like pehkui, and vanilla features like the Dinnerbone code and later rewritten).
The 1.12+ generation of gravity mods seem to be partially based on code from Mysteryem's Up and Down and All Around.
As far as I know, most gravity mods past 1.7.10 are attempts to recreate the gravity effect from what I consider the original gravity mod, StarMiner.
However, there was at least one earlier gravity mod for 1.2.5 called GravityCraft that may have inspired others as some features seem familiar.
If there are missing gravity mods, please let me know.
评论 0
登录后参与评分
还没有评论,来抢沙发吧