Skip to content

Commit

Permalink
Made 'ensure spectator location' bounds more precise to prevent playe…
Browse files Browse the repository at this point in the history
…rs from exiting the lobby area (0.12.22)
  • Loading branch information
Bavadin authored Sep 23, 2024
1 parent 84e0b7a commit b8c8204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ execute if score $dungeon do2.run.active matches 2.. run return 0
scoreboard objectives add do2.tests.playerInLocation dummy
scoreboard players set @s do2.tests.playerInLocation 0

execute if entity @s[x=-545,dx=54,y=112,dy=10,z=1974,dz=11] run scoreboard players set @s do2.tests.playerInLocation 1
execute if entity @s[x=-565,dx=23,y=111,dy=7,z=1974,dz=11] run scoreboard players set @s do2.tests.playerInLocation 1
execute if entity @s[x=-490,dx=5,y=113,dy=5,z=1974,dz=11] run scoreboard players set @s do2.tests.playerInLocation 1

execute if entity @s[x=-539.7,dx=47.4,y=113.25,dy=6.05,z=1975.3,dz=9.4] run scoreboard players set @s do2.tests.playerInLocation 1
execute if entity @s[x=-561.7,dx=20.4,y=113.25,dy=1.05,z=1975.3,dz=8.4] run scoreboard players set @s do2.tests.playerInLocation 1
execute if entity @s[x=-490.7,dx=3.4,y=113.25,dy=2.05,z=1975.3,dz=9.4] run scoreboard players set @s do2.tests.playerInLocation 1

execute if score @s do2.tests.playerInLocation matches 0 run tp @s -524 114 1980
execute if score @s do2.tests.playerInLocation matches 0 run tellraw @s "Unable to leave lobby as a spectator."
4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# DATAPACK VERSION NUMBER: 0.12.21
# DATAPACK VERSION NUMBER: 0.12.22

tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.21§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.22§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]

0 comments on commit b8c8204

Please sign in to comment.