Eranio
Color theme

Special systems

Eranio Published on: 14. October 2026

StreamBridge (Minecraft): Special systems

These systems sit behind the more complex actions and make sure nothing in the game gets permanently damaged.


Fake death (FakeDeath)

Creates the illusion of a death event without the player actually dying.

  • Creates a snapshot of the player: position, health, hunger, saturation, active effects, statistics
  • Prevents real item loss (setKeepInventory(true), drops are cleared)
  • On respawn, the player is placed back at the exact old position, all values (including potion effects and statistics) are restored
  • Edge case: if the player disconnects during a fake death, the snapshot stays saved until they return or the server restarts

Sky drop (SkyDrop)

Teleports a player to a great height and lets them fall safely.

  • Looks for a safe landing point, avoiding lava, magma, fire, cacti, powder snow and similar dangerous blocks
  • The player gets a grace period against fall damage during the drop
  • Edge case: if no safe point is found within 12 attempts, the player simply lands at the highest available height over the terrain

Timed effects (TimedEffects)

Manages all actions with a time limit (for example inverted controls, glass cage).

  • Visualized via a purple progress boss bar, showing the label and remaining seconds (e.g. "Label 10 s")
  • Runs automatic cleanup logic once the time expires

Effect bars (EffectBars)

Shows active potion effects as their own boss bar above the hotbar.

  • Color-coded: beneficial effects green, harmful effects red, others blue
  • Shows name, level (II, III, …) and remaining time (e.g. "1:30" or "45 s")

Restore system (RestoreStore)

A backup system for blocks and items changed by an action.

  • Stores affected blocks (world, coordinates, placed block, original state) as well as helmets (for example before the pumpkin effect), the latter as base64-encoded data
  • Prevents tracked blocks from being permanently destroyed by explosions
  • All still-open restores are executed immediately when the server shuts down
  • Edge case: if a saved block state is faulty, the block is set to air as a safety measure to prevent server crashes
  • Edge case: if a saved helmet no longer fits on restore (for example because the player already wears another helmet), it drops as an item on the ground instead of blocking the player

Viewer control (Walker, Miner, EnemyClearer)

These parts carry out the control actions from chat, without a mod or program on the streamer's side.

  • Walking: steer sets the movement in the wanted direction for 8 ticks. Every new command replaces the running one. If exactly one block is in front of the character and there is room above, it jumps up automatically
  • Protection: If lava, fire, soul fire, magma, a cactus, a campfire, powder snow, a berry bush or a wither rose is in front of the character, or the drop is deeper than 3 blocks, it stops. Steps down of up to 3 blocks are fine
  • Mining: The mining time comes from the game itself (tool, enchantments, effects, in water, in the air). While mining, every player sees the cracks in the block and the character swings its arm. If the character is pushed away (more than 6 blocks), dies or the block changes, mining stops
  • Removing hostile creatures: As long as the panel reports a radius for a player (viewer_control), every hostile creature in that radius is removed every second, before it gets close. Bosses, the Warden, the Elder Guardian and named creatures are left alone

Self test (SelfTest)

/streambridge selftest checks every control action on your own player right where you stand.

  • Preparation: The player stands on a free, flat spot outdoors. The test does not start if a block with contents (chest, furnace, sign or similar) is in the area (27 × 27 blocks, 8 down and 6 up), if another player is closer than 40 blocks, or too close to the top or bottom of the world
  • Run: The area is turned into a test floor, the inventory is replaced by tools and blocks, the player gets protection effects. Checked are walking in every direction, jumping, turning, looking around, hotbar, steps up and down, wall, stop at lava and drops, mining with tool choice and mining time, placing, death and revive, and removing hostile creatures (40 checks, about 80 seconds)
  • Afterwards: Every block in the area, inventory, position, game mode, health and effects are restored exactly as before. Nothing drops on the test death
  • Crash safety: The starting state is kept in plugins/StreamBridge/selftest-restore.yml during the test. If the server crashes, the plugin restores the area on the next start, and the player gets inventory, position and game mode back on the next login. On /streambridge reload, on shutdown or when the player leaves, the test is aborted and everything is restored at once

Display & tab placeholders (StreamDisplay, TabPlaceholders)

  • Processes the live status data from the panel and sends global chat announcements with clickable links when a stream starts
  • Detects a player's role (streamer, moderator, regular player)
  • With the TAB plugin installed, the placeholders from the overview guide are available

FAQ

Does a player really lose their items on fake death? No, the system turns on "keep inventory" and clears the drop list, nothing is lost.

What happens if an anvil or other object in the sky drop system would cause real damage? The system intercepts critical events and only keeps the visuals (particles, sound), without causing real damage.

Do blocks stay permanently changed after an action? No, the restore system remembers the original state and restores it once the action ends, even across a server restart.