Skip to main content

World Switch

CategoryLogic
world-switch
Category
Logic
Planet
Serpulo
Footprint
1x1
Health
40

Overview

World Switch is a special world-level block used to toggle and evaluate boolean states within world logic. It serves as a binary state holder and a conditional trigger in map scripting and logic setups. World Switch cannot be destroyed, making it a permanent, reliable element of a world’s logic infrastructure.

World Switch is intended to be used in conjunction with the World Processor. Together they form the basis for world logic: World Switches provide simple on/off state flags that the World Processor can read, set, or test to control map events, gates, win/lose conditions, staged encounters, and other scripted behaviors. Because the block itself is indestructible, a World Switch is suitable for representing persistent flags that must not be removable by players or in-game events.

Practical notes and common usage patterns:

  • Use World Switches as boolean flags for branching logic. Each switch represents a binary condition (on/off) that the World Processor can query to decide which branch of logic to execute.
  • Combine multiple World Switches to encode multi-state or staged progression by treating each switch as a bit in a larger flag set; the World Processor can test combinations to implement complex conditional behavior.
  • Rely on World Switch permanence for critical game-flow controls. Since the block cannot be destroyed, it is safe to use for lasting flags like "boss spawned", "puzzle completed", or "gate unlocked" without risk of accidental removal.
  • Place World Switches where the World Processor or other world-level logic expects them; they are world entities and are intended for global scripting rather than player-facing tactical use.
  • Because World Switches are part of the world logic system, maintain clear naming and organization in your map design so that each switch’s purpose is easy to identify when reading or editing the World Processor logic.

World Switch is a fundamental tool for map creators and logic designers who need reliable binary state control tied into the World Processor’s scripting capabilities. Use them whenever you require an indestructible, simple on/off flag to coordinate events and conditions across a map.

No related recipes

Other entities of this type

Related pages

Last updated: