Data Packs Quality of Life

Survival Friendly Spectator (Multiplayer/Singleplayer)

  • 38.9k views 2 today
  • save_alt 7.3k downloads
Compatibility
Minecraft 1.19
to version
Minecraft 1.20
Changes include
  • Functions
  • Loot Tables
Added CreditSpecial thanks to everyone in the comments wh… info
  • 83
  • 87
  • 59
sandwichentity
Lvl 42Master Miner
11
This data pack enables all players, regardless of their operator role on a server, to enter spectator mode. Once a player finishes using spectator mode, they are automatically returned to their previous game mode, location, and dimension.

Spectator mode cannot be entered whilst a player is burning, suffocating, drowning, falling/flying, starving, poisoned, withering away or near hostile mobs and some angered neutral mobs, so it cannot be used to cheat death. These restrictions don't apply for any players in creative mode. See the preview video for examples.

Ideal for small survival servers, it accommodates up to ten players using spectator mode simultaneously. Each player is individually teleported back to their respective previous locations upon exiting spectator mode. While in spectator mode, all normal features, such as teleporting to other players via the hot bar, remain available.

By default, players receive night vision while in spectator mode, but this can be toggled on/off for each player. Additionally, a title and server-wide announcement are displayed when a player enters or exits spectator mode; operators can toggle this feature on/off.


Please leave a comment for older game version downloads, current download is for 1.20.4.

Commands:
/trigger spectator  (Toggles between spectator/survival mode)

/trigger spnightvis  (Toggles night vision in spectator mode on/off per player)



/execute as username run trigger spectator  (Toggles a specified player in/out of spectator mode)

/data modify storage spectator:stoptext 0 set value true  (Disables titles and serverwide announcements globally)

/data remove storage spectator:stoptext 0  (Enables titles and serverwide announcements globally)


/function spectator:reset  (Runs reset function)

9 Update Logs

Update #9 : by sandwichentity 01/10/2024 3:37:10 pmJanuary 10, 2024 @ 8:37 pm UTC

Update Notes:

- Fixed bug caused by grass being renamed to short_grass.
- Removed some redundant blocks from #intangibles.
LOAD MORE LOGS

More like this

  Have something to say?

01/06/2024 1:04 pm
This reply was removed by the poster or a moderator.
01/10/2024 3:34 pm
This reply was removed by the poster or a moderator.
Cryolenced
01/05/2024 7:55 am
Level 1 : New Miner
idk if its just mine but 1.20.4 has a bug where it reads the player inside a block even if the player is freely open.
2
sandwichentity
01/10/2024 3:34 pm
Level 42 : Master Miner
Just uploaded new version, hopefully that's fixed it but let me know if it's still happening
1
Beastcookie_69
05/10/2024 6:05 am
Level 1 : New Miner
Using it on my 1.20.1 server still getting the same error :(
2
sandwichentity
05/29/2024 3:29 pm
Level 42 : Master Miner
Ah probably getting the error as the current download is for 1.20.4. They renamed grass to short_grass, which makes the datapack think you are inside a block when standing inside grass.

If you edit the "intangibles" file in Notepad and change short_grass to grass that should fix it for 1.20.1 again.

Let me know if this works, if not I'll have a look myself and send an updated version to you, as I may be misremembering.
1
11/05/2023 9:43 pm
This reply was removed by the poster or a moderator.
11/06/2023 8:26 am
This reply was removed by the poster or a moderator.

Welcome