EnderElevator
Docs InstallationUsageRecipesConfigurationCompatibilityTroubleshootingDevelopmentChangelogRoadmapCredits

ECS architecture

ClassRoleResponsibility
ElevatorSystemOrchestratorDetects input, validates the current elevator block, searches vertically, checks destination safety, and queues travel/effects.
ElevatorComponentPer-player stateStores last successful use plus short failed-search timestamps per direction.
SmoothingComponentTravel stateStores start/end positions, elapsed time, duration, and captured rotation.
SmoothingSystemTravel runnerMoves players with TransformComponent#setPosition() and applies one final Teleport correction.
ElevatorConfigConfigurationDefines BuilderCodec-backed search distance, cooldown, sound, smooth movement, and duration keys.

Safety rules

  • Use CommandBuffer for ECS mutations during ticks.
  • Check world.getChunkIfLoaded() before world.getBlockType().
  • Resolve the teleport sound lazily only when sound is enabled and travel succeeds.
  • Do not smooth by adding Teleport every tick.

Open the source on GitHub.