Makes 1.16 spectator actually work right.
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.
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, 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