SubathonLib (Old)
This project is no longer supported by the developers.
This library provides tools for executing various in-game actions that can be controlled by other mods, datapacks, or players themselves. It allows modifying game mechanics, applying random potion effects to characters, and much more. Essentially, it's a tool for controlled game process alteration.
Main Features
The modification includes several standard controllers, among which:
- entity_jump - controlling entity jumps
- potion_chaos - random application of potion effects
- inventory_shuffle - shuffling inventory contents
To work with controllers, use the /gamecontrol command with syntax: /gamecontrol <controller> (get|set|invoke)
There's also the ability to permanently display or hide information on the client screen through NBT tags {alwaysVisible: true/false} and {hideInfo: true/false}.
Advanced Settings
To set controller NBT data, use the command: /gamecontrol <controller> set data <NBT>
If exact correspondence to input data is required, use: /gamecontrol <controller> set dataRaw <NBT>
Attention! When using set dataRaw, NBT data is saved exactly as entered, which may lead to increased memory consumption with improper formatting.
All data is saved in the world folder: <game directory>/saves/<world>/data/cubecontroller.dat
Developers can easily add new controllers through the library's registration methods.