Minecraft Data Packs / Quality of Life

Survival Friendly Spectator (Multiplayer/Singleplayer)

  • check_circle Functions
  • check_circle Loot Tables
  • 30,731 views, 22 today
  • 5,968 downloads, 5 today
  • 81
  • 82
  • 65
sandwichentity's Avatar sandwichentity
Level 38 : Artisan Miner
10
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)
CreditSpecial thanks to everyone in the comments who has given suggestions!
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

9 Update Logs

Update #9 : by sandwichentity 01/10/2024 3:37:10 pmJan 10th

Update Notes:

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

Create an account or sign in to comment.

2
01/06/2024 1:04 pm
Level 1 : New Miner
LinkHarper4213
LinkHarper4213's Avatar
keeps saying i am inside a block
1
01/10/2024 3:34 pm
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
Just uploaded new version, hopefully that's fixed it but let me know if it's still happening
2
01/15/2024 2:31 pm
Level 1 : New Miner
LinkHarper4213
LinkHarper4213's Avatar
It works! Does it work through dimensions?
1
01/17/2024 7:39 am
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
Great. Yes it should work fine, with the player returning to their previous dimension
2
01/05/2024 7:55 am
Level 1 : New Miner
Cryolenced
Cryolenced's Avatar
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.
1
01/10/2024 3:34 pm
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
Just uploaded new version, hopefully that's fixed it but let me know if it's still happening
1
11/05/2023 9:43 pm
Level 19 : Journeyman Sus
scratchcrafter1
scratchcrafter1's Avatar
what do you have against dark mode users
1
11/06/2023 8:26 amhistory
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
What do you mean?
2
11/08/2023 2:26 pm
Level 19 : Journeyman Sus
scratchcrafter1
scratchcrafter1's Avatar
If you use dark mode the description text is almost invisible.
2
11/09/2023 1:16 pmhistory
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
I just tried changing the text colour to 'no colour', that should of fixed it. I didn't even know this website had a darkmode but I've got it enabled now so thank you
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome