Download GravityChanger (Banana Fork) — Minecraft Mods — MetaMods
GravityChanger (Banana Fork)

GravityChanger (Banana Fork)

Active

Downloads

0

Last update

2 months ago

Versions

1.20.6 — 1.21.1
Client and server
Fabric
Game mechanics
Libraries

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 [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 [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 [entities] sets the gravity direction as a direction relative to the entity's viewing direction. The can be forward, backward, left, right, up or down.

/gravity set_dimension_gravity_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.