Gravity Changer (qouteall fork)
This modification allows changing gravity in Minecraft and provides a corresponding API for developers.
Important note: this mod is a fork of Gravity API by Fusion Flux, but adapted for Fabric. The original Gravity API was created based on the Gravity Changer mod by Gaider10.
Main Features
In the latest version of the mod, the following are available:
- Effects and potions affecting gravity
- Gravity anchors
- Gravity plates that create a gravity field with customizable range
These elements are not available in normal survival mode and are intended for creative use.
Technical Features
Some code elements and resources are taken from the AmethystGravity mod. Version 0.9.0 is incompatible with Quilt.
Commands
The command system in this mod differs from Gravity API:
/gravity set_base_direction <direction> [entities] - sets the base gravity direction. The base direction can be overridden by effects, anchors, and plates. Without the [entities] argument, the command applies to the sender.
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. Strength effects will multiply the base strength rather than replace it.
/gravity view - shows the base gravity direction and strength for the command sender.
/gravity reset [entities] - resets the base gravity direction and strength.
/gravity randomize_base_direction [entities] - sets a random base direction.
/gravity set_relative_base_direction <relativeDirection> [entities] - sets the gravity direction relative to the entity's viewing direction. Available values: forward, backward, left, right, up, down.
/gravity set_dimension_gravity_strength <strength> - sets the gravity strength for the current dimension.
/gravity view_dimension_info - shows the gravity strength for the current dimension.