Guest User

Untitled

a guest
Nov 4th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. on stepping on a pressure plate:
  2. if event-block is an iron pressure plate:
  3. if block below event-location is an iron block:
  4. set {_faction} to faction of player
  5.  
  6. if {_faction} is not set:
  7. send "У вас нет фракции, вы не можете захватывать плиты." to player
  8. else:
  9. if {_faction.zaxvat_cooldown} is not set:
  10. set {_faction.zaxvat_cooldown} to now
  11. wait 15 seconds
  12. loop all players in radius 30 around event-location:
  13. if faction of loop-player is {_faction}:
  14. execute console command "lp user %loop-player% permission settemp portals.zaxvat true 1h"
  15. send "Игрок %loop-player% вашей фракции получил право на захват!" to player
  16. execute console command "/setblock 160 71 -287 air"
  17.  
  18. wait 1 minutes
  19.  
  20. execute console command "/setblock 160 71 -287 minecraft:heavy_weighted_pressure_plate"
  21. broadcast "Плита была возвращена на место после захвата!"
  22. else:
  23. send "Фракция уже захватила плиту. Подождите до следующего захвата." to player
  24.  
Advertisement
Add Comment
Please, Sign In to add comment