familychicken

Untitled

Feb 26th, 2024
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. every tick:
  2. loop all players within 128 meters of location(-16.5, 43.5, 360.5): #server view distance
  3. if {route1.%loop-player's uuid%} is not set: #event to unlock
  4. set {_i} to -19.5
  5. loop 7 times:
  6. make loop-player see block at location({_i}, 43.5, 360.5) as stone
  7. add 1 to {_i}
  8.  
  9.  
  10. on right click:
  11. if event-block is air:
  12. set {route1.%player's uuid%} to true #condition fullfilled
  13. play sound "entity.zombie.break_wooden_door" with volume 2 at event-block for player
  14.  
  15. on quit:
  16. if {route1.%player's uuid%}: #to retest
  17. delete {route1.%player's uuid%}
Advertisement
Add Comment
Please, Sign In to add comment