Skip to content

Commit

Permalink
Smoother lobby protection
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Oct 10, 2023
1 parent 8452b99 commit a7a65d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ function scaffolding_rush:lobby/interaction/__main__

execute as @a[gamemode=survival] at @s if block ~ ~-0.01 ~ magma_block run kill @s

execute at @e[tag=LobbyProtection] run particle cloud ~ ~ ~ 0 0 0 0.1 3 force
execute as @e[tag=LobbyProtection] run kill @s

execute as @a[scores={trigger.tutorial=1}] run function scaffolding_rush:tutorial/join

tag @a[tag=!player.item.can_have_book] add player.item.can_have_book
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
tag @a[tag=lobby.just_exit_protected_area] remove lobby.just_exit_protected_area
execute as @a[tag=lobby.in_protected_area] positioned -6 24 -5 unless entity @s[dx=14,dy=14,dz=14] run tag @s add lobby.just_exit_protected_area
tag @a[tag=lobby.in_protected_area] remove lobby.in_protected_area
execute positioned -6 24 -5 as @a[dx=14,dy=14,dz=14] run function scaffolding_rush:lobby/protection/player_in_protected_area
execute positioned -6 24 -5 as @e[type=arrow,dx=14,dy=14,dz=14] at @s run tag @s add LobbyProtection
execute positioned -6 24 -5 as @e[tag=Fireball,dx=14,dy=14,dz=14] at @s run tag @s add LobbyProtection
tag @a add player.item.can_have_items

execute positioned -6 24 -5 as @a unless entity @s[dx=14,dy=14,dz=14] run tag @s add player.item.can_have_items
execute positioned -6 24 -5 as @a[dx=14,dy=14,dz=14] run function scaffolding_rush:lobby/protection/player_in_protected_area
execute positioned -6 24 -5 as @e[type=arrow,dx=14,dy=14,dz=14] at @s run function scaffolding_rush:lobby/protection/projectile_in_protected_area
execute positioned -6 24 -5 as @e[tag=Fireball,dx=14,dy=14,dz=14] at @s run function scaffolding_rush:lobby/protection/projectile_in_protected_area
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

playsound minecraft:block.anvil.land master @a[distance=..30] ~ ~ ~ 0.3 2 0
particle minecraft:explosion ~ ~ ~ 0 0 0 0 1 force
particle cloud ~ ~ ~ 0 0 0 0.1 5 force
kill @s
Binary file modified level.dat
Binary file not shown.

0 comments on commit a7a65d9

Please sign in to comment.