Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on stepping on a pressure plate:
- if event-block is an iron pressure plate:
- if block below event-location is an iron block:
- set {_faction} to faction of player
- if {_faction} is not set:
- send "У вас нет фракции, вы не можете захватывать плиты." to player
- else:
- if {_faction.zaxvat_cooldown} is not set:
- set {_faction.zaxvat_cooldown} to now
- wait 15 seconds
- loop all players in radius 30 around event-location:
- if faction of loop-player is {_faction}:
- execute console command "lp user %loop-player% permission settemp portals.zaxvat true 1h"
- send "Игрок %loop-player% вашей фракции получил право на захват!" to player
- execute console command "/setblock 160 71 -287 air"
- wait 1 minutes
- execute console command "/setblock 160 71 -287 minecraft:heavy_weighted_pressure_plate"
- broadcast "Плита была возвращена на место после захвата!"
- else:
- send "Фракция уже захватила плиту. Подождите до следующего захвата." to player
Advertisement
Add Comment
Please, Sign In to add comment