SpecFix 1.0

Makes spectator actually work right.

  1. not_avixk
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    • 1.17
    Source Code:
    https://github.com/avixk/SpecFix
    1.17 Update: Seems like it's still broken. This plugin still fixes it on 1.17.

    Features:
    • Fixes chunks not loading while spectating someone.
    • Teleports you when the player you're spectating teleports.
    • When the player you're spectating respawns, you will be teleported to them and forced to spectate them again.
    NoSpectTab is recommended if you don't want spectator status to appear in tab.

    This is a quick and dirty fix, if (when) you find bugs, let me know and I'll fix them.
    I have only tested it on 1.16 and 1.17, but there's no NMS or anything so it should work for many versions.

    Default config:
    Code (YAML):

    # When enabled, the spectator will be teleported to their target every 2 seconds to fix broken chunk loading for spectators.
    teleport_spectator_to_target_constantly
    : true

    # When enabled, the spectator will be removed from their target, teleported, then added back to their target every time the target teleports.
    teleport_spectator_to_target_on_teleports
    : true

    # When enabled, the spectator will be teleported to their target on respawn.
    teleport_spectator_to_target_on_respawn
    : true