Gravity API
Gravity API is a specialized API for Quilt that allows changing the gravity direction for players in Minecraft.
Main Features
The mod adds six unique items, each changing gravity in one of the six coordinate axis directions. Currently, these items cannot be crafted - they can only be found in the "Tools" tab of creative mode.
Technical Features
In addition to gameplay items, Gravity API provides a full programming interface that other mods can use to manage player gravity.
Dependencies
Required dependencies:
- QSL (Quilt Standard Libraries)
Optional dependencies:
- Mod Menu (for convenient in-game configuration)
Configuration
The mod's configuration file is located at .minecraft/config/gravitychanger.json. Settings are divided into two categories:
- Client settings - affect only the client side and must be set on the client
- Server settings - apply only to the server and are configured in the server config
In singleplayer, the server uses the same config as the client, so settings can be changed via Mod Menu. On multiplayer servers, changes to the client config do not affect server settings.
Commands
/gravity get <player>- shows current gravity of entity (returns direction index 0-5)/gravity add <direction> <entities> <priority> <duration>- adds a new gravity source to the queue with specified priority and duration/gravity setdefault <direction> <entities>- sets default gravity for selected entities/gravity rotate <direction> <entities>- rotates gravity relative to player's look direction/gravity randomise <entities>- randomly changes gravity for selected players
Development History
Original version created by Gaider10, ported to version 1.18.2 by Qouteall, rewritten and maintained by Fusion Flux.