Chaos - SilentChaos512/SilentGems GitHub Wiki
Chaos can be thought of as a "pollution system" of sorts. The world always has some amount of chaos and it is harmless at low levels. There is a fluctuating equilibrium point that chaos levels will move towards over time, increasing or decreasing to get closer to equilibrium.
Both the world and all players have chaos. Players will slowly leak their chaos to the world. The world will slowly dissipate chaos if above the equilibrium point.
Absorbing Chaos
Chaos orbs can be used to safely absorb chaos. Chaos that would have been added to the player can be absorbed if the player is carrying an orb. Chaos that would go to the world can be absorbed if an orb is on a nearby pedestal. Chaos orbs will break after absorbing a set amount of chaos. They are also not 100% efficient, leaking a tiny bit of chaos they would have absorbed to the world.
Chaos Sources
This is a list of blocks and items that can produce chaos.
- Blocks
- Chaos ore (when "lit")
- Supercharger
- Teleporters
- Token enchanter
- Transmutation altar
- Items
- Chaos gems
- Return home charm
- Silent Gear tools with the Chaotic trait
Chaos Events
Chaos can cause certain events to occur. All chaos events have a minimum chaos level that must be reached before they can trigger. The chance an event will occur increases as chaos levels increase above the minimum. At minimum chaos, the probability is extremely low. On a positive note however, chaos events also dissipate a large amount of chaos when they occur.
The minimum chaos varies greatly by event. Some are low enough to occasionally trigger even if no players are generating chaos. All events also have a cooldown timer. Once an event triggers for a player, the cooldown must expire before it can trigger again.
Adding New Events
Chaos events can currently only be added by mods. Use ChaosEvents.addChaosEvent
to register a new event. Please use your mod ID for the namespace of the event ID. The action BiFunction
should return true if the event was successfully triggered.
Manually Triggering Events
If you want to test an event, you can use the /sg_chaos trigger_event
command to trigger an event. This ignores chaos levels and cooldown timers. The command will suggest a list of event ID's.
List of Chaos Events
- Chaos Sickness (
silentgems:chaos_sickness
) - Applies some potion effects to the player, including "chaos sickness". The effects applied depends on the chaos level and include (in order of lowest to highest chaos required) mining fatigue, hunger, and weakness. The chaos sickness effect itself does nothing, it's meant to clue the player into the existence of chaos. - Lightning (
silentgems:lightning
) - A single lightning strike occurs near the player, even in clear weather. The lightning bolt can ignite blocks like vanilla. - Chaos Lightning (
silentgems:chaos_lightning
) - Multiple lightning strikes occur near the player, but do not ignite fires. - Block Corruption (
silentgems:corrupt_blocks
) - Changes stone and dirt into "corrupted" versions. Corrupted blocks have a small chance of reverting each tick. - Spawn Corrupted Slimes (
silentgems:corrupted_slimes
) - Spawns corrupted slimes near the player - Spawn Wisps (
silentgems:spawn_wisps
) - Spawns of group of wisps (single random element) near the player - Thunderstorm (
silentgems:thunderstorm
) - Changes the weather to a thunderstorm.