Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- wielkosc.dzialki: 25 #kratek po przekatnej
- blok: diamond block #blok, ktory ustawia rogi dzialki
- tag: &0[&eDzialki&0]
- variables:
- {dzialka.%player%} = false
- command /zniszcz:
- trigger:
- if {blok1.%player%.dzialki} is set:
- if {blok2.%player%.dzialki} is set:
- set {dzialka.%player%} to false
- set {blok1.%player%.dzialki} to 0
- set {blok2.%player%.dzialki} to 0
- make console execute command "pex user %player% add worldedit.*"
- make player execute command "/region remove dzialka%player%"
- make console execute command "pex user %player% remove worldedit.*"
- send "{@tag}&cZniszczyles swoja dzialke."
- on place of {@blok}:
- if {dzialka.%player%} is false:
- if player can build at block {@wielkosc.dzialki} meters northwest:
- if player can build at block {@wielkosc.dzialki} meters north:
- if player can build at block {@wielkosc.dzialki} meters northeast:
- if player can build at block {@wielkosc.dzialki} meters west:
- if player can build at block {@wielkosc.dzialki} meters east:
- if player can build at block {@wielkosc.dzialki} meters south:
- if player can build at block {@wielkosc.dzialki} meters southeast:
- if player can build at block {@wielkosc.dzialki} meters southwest:
- if {blok1.%player%.dzialki} is 0:
- if {blok2.%player%.dzialki} is 0:
- make console execute command "pex user %player% add worldedit.*"
- set {_home} to location of player
- set {_blok} to location of event-block
- teleport player to {_blok}
- wait a tick
- make player execute command "//pos1"
- teleport player to {_home}
- set {blok1.%player%.dzialki} to location of {_blok}
- send "{@tag}&bUstawiles blok 1"
- make console execute command "pex user %player% remove worldedit.*"
- stop
- if {blok1.%player%.dzialki} is not 0:
- if {blok2.%player%.dzialki} is 0:
- set {_home} to location of player
- set {_blok} to location of event-block
- teleport player to {_blok}
- set {blok2.%player%.dzialki} to location of {_blok}
- make console execute command "pex user %player% add worldedit.*"
- make player execute command "//pos2"
- make player execute command "//expand vert"
- if distance between {blok1.%player%.dzialki} and {blok2.%player%.dzialki} is less than {@wielkosc.dzialki}:
- send "%{blok2.%player%.dzialki}%"
- send "{@tag}&aBlok 1 znaleziony!"
- make player execute command "/region define dzialka%player%"
- make player execute command "/region addmember dzialka%player% %player%"
- make player execute command "/rg flag dzialka%player% other-explosion deny"
- make player execute command "/rg flag dzialka%player% creeper-explosion deny"
- make console execute command "pex user %player% remove worldedit.*"
- send "{@tag}&aDzialka pomyslnie stworzona. Nie niszcz blokow, bo usuniesz dzialke. Creepery i tnt nie wybuchaja na twojej dzialce."
- set {dzialka.%player%} to true
- teleport player to {_home}
- stop trigger
- stop
- else:
- send "{@tag}&cBlok 2 jest za daleko, lub nie zostal postawiony!"
- make console execute command "pex user %player% remove worldedit.*"
- teleport player to {_home}
- stop trigger
- stop
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- end "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- else:
- send "{@tag}&cNie mozesz zbudowac tutaj dzialki, poniewaz inna dzialka jest zbyt blisko"
- on break of {@blok}:
- if {blok1.%player%.dzialki} is not 0:
- if {blok2.%player%.dzialki} is not 0:
- if location of event-block is location of {blok1.%player%.dzialki}:
- send "{@tag}&cNie niszcz tego bloku!"
- cancel event
- if location of event-block is location of {blok2.%player%.dzialki}:
- send "{@tag}&cNie niszcz tego bloku!"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment