KronosArsilex
Sudan Çıkmış
- En iyi cevaplar
- 0
Kod:
command /buildbattle <text>: #Lobi
trigger:
wait 1 tick
if arg-1 is "lobiset":
if {buildbattle.lobi.location} is not set:
set {buildbattle.lobi.location} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Lobi Belirlendi."
stop trigger
if arg-1 is "lobiset":
if {buildbattle.lobi.location} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Lobi Zaten Var. Silmek Icin /buildbattle lobiremove"
wait 1 tick
if arg-1 is "lobiremove":
if {buildbattle.lobi.location} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Lobi Kaldirildi."
clear {buildbattle.lobi.location}
stop trigger
if {buildbattle.lobi.location} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Boyle Bir Lobi Yok."
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
on rightclick on entity:
if display name of targeted entity is "&5Build&dBattle":
execute console command "warp buildbattle %player%"
on rightclick on entity:
if display name of targeted entity is "&b&lServer&5(1)":
execute console command "chestcommands open buildbattle.yml %player%"
command /buildjoin1:
trigger:
if {owner1.%player%} is not set: #ZATEN OYUNDASIN
if {join1} is not set: #ODA DOLU
set {join1} to 1 #ODA DOLU ARTIK
set {owner1.%player%} to 1 #ARTIK OYUNDASIN
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNA AKTARILIYORSUN."
wait 3 second
teleport player to {buildbattle.arena.1}
add 1 to {vote}
exit
if {join1} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ODA DOLU."
exit
if {owner1.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ZATEN OYUNDASIN."
exit
command /buildjoin2:
trigger:
if {owner2.%player%} is not set:
if {join1} is 1:
if {join2} is not set:
set {join2} to 1
set {owner2.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNA AKTARILIYORSUN."
wait 3 second
teleport player to {buildbattle.arena.2}
add 1 to {vote}
exit
if {join2} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ODA DOLU."
exit
if {owner2.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ZATEN OYUNDASIN."
exit
command /buildjoin3:
trigger:
if {owner3.%player%} is not set:
if {join1} is 1:
if {join2} is 1:
if {join3} is not set:
set {join3} to 1
set {owner3.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNA AKTARILIYORSUN."
wait 3 second
teleport player to {buildbattle.arena.3}
add 1 to {vote}
exit
if {join3} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ODA DOLU."
exit
if {owner3.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ZATEN OYUNDASIN."
exit
command /buildjoin4:
trigger:
if {owner4.%player%} is not set:
if {join1} is 1:
if {join2} is 1:
if {join3} is 1:
if {join4} is not set:
set {join4} to 1
set {owner4.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNA AKTARILIYORSUN."
wait 3 second
teleport player to {buildbattle.arena.3}
add 1 to {vote}
wait 1 tick
if {vote} is 4:
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUN BASLIYOR."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &710."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &79."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &78."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &77."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &76."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &75."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &74."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &73."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &72."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &71."
wait 1 second
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &70."
wait 1 second
set {buildbattle.start} to 1
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUN BASLADI."
loop players in "buildbattle":
chance of 10%:
execute console command "tm msg %loop-player% &bKonu &f: &aKule"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aMasa"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aSpiderMan"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aIronMan"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aTelefon"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aLaptop"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aHelikopter"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aTren"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aAraba"
wait 1 tick
exit
chance of 10%:
execute console command "tm msg %loop-player% &aKonu &f: &aF-16"
wait 1 tick
exit
wait 1 minute
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNUN BITISINE SON 4 DAKIKA"
wait 1 minute
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNUN BITISINE SON 3 DAKIKA"
wait 1 minute
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNUN BITISINE SON 2 DAKIKA"
wait 1 minute
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNUN BITISINE SON 1 DAKIKA"
wait 1 minute
broadcast "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUN BITTI."
loop blocks within {arena1.loc3} to {arena1.loc4}:
set block at loop-block to air
loop blocks within {arena2.loc3} to {arena2.loc4}:
set block at loop-block to air
loop blocks within {arena3.loc3} to {arena3.loc4}:
set block at loop-block to air
loop blocks within {arena4.loc3} to {arena4.loc4}:
set block at loop-block to air
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to light gray stained clay
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to light gray stained clay
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to light gray stained clay
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to light gray stained clay
clear {buildbattle.start}
loop players in "buildbattle":
{owner1.%loop-player%} is 1:
clear inventory of loop-player
wait 1 tick
give 1 red stained clay named "&4&lBerbat" to loop-player
wait 1 tick
give 1 orange stained clay named "&6&lKotu" to loop-player
wait 1 tick
give 1 yellow stained clay named "&e&lNormal" to loop-player
wait 1 tick
give 1 green stained clay named "&2&lGuzel" to loop-player
wait 1 tick
execute console command "fly on %loop-player%"
set {anti.protect} to 1
execute console command "gamemode 0 %loop-player%"
teleport loop-player to {buildbattle.arena.1}
wait 10 second
teleport loop-player to {buildbattle.arena.2}
wait 10 second
teleport loop-player to {buildbattle.arena.3}
wait 10 second
teleport loop-player to {buildbattle.arena.4}
wait 10 second
teleport loop-player to {buildbattle.lobi.location}
clear {anti.protect}
execute console command "gamemode 0 %loop-player%"
execute console command "fly off %loop-player%"
clear {arena.vote.4}
clear {arena.vote.3}
clear {arena.vote.2}
clear {arena.vote.1}
clear {vote.4}
clear {vote.3}
clear {vote.2}
clear {vote.1}
clear {vote4.%loop-player%}
clear {vote3.%loop-player%}
clear {vote2.%loop-player%}
clear {vote1.%loop-player%}
clear {owner1.%loop-player%}
clear {join1}
exit
{owner2.%loop-player%} is 1:
clear inventory of loop-player
wait 1 tick
give 1 red stained clay named "&4&lBerbat" to loop-player
wait 1 tick
give 1 orange stained clay named "&6&lKotu" to loop-player
wait 1 tick
give 1 yellow stained clay named "&e&lNormal" to loop-player
wait 1 tick
give 1 green stained clay named "&2&lGuzel" to loop-player
wait 1 tick
execute console command "fly on %loop-player%"
set {anti.protect} to 1
execute console command "gamemode 0 %loop-player%"
teleport loop-player to {buildbattle.arena.1}
wait 10 second
teleport loop-player to {buildbattle.arena.2}
wait 10 second
teleport loop-player to {buildbattle.arena.3}
wait 10 second
teleport loop-player to {buildbattle.arena.4}
wait 10 second
teleport loop-player to {buildbattle.lobi.location}
clear {anti.protect}
execute console command "gamemode 0 %loop-player%"
execute console command "fly off %loop-player%"
clear {arena.vote.4}
clear {arena.vote.3}
clear {arena.vote.2}
clear {arena.vote.1}
clear {vote.4}
clear {vote.3}
clear {vote.2}
clear {vote.1}
clear {vote4.%loop-player%}
clear {vote3.%loop-player%}
clear {vote2.%loop-player%}
clear {vote1.%loop-player%}
clear {owner2.%loop-player%}
clear {join1}
exit
{owner3.%loop-player%} is 1:
clear inventory of loop-player
wait 1 tick
give 1 red stained clay named "&4&lBerbat" to loop-player
wait 1 tick
give 1 orange stained clay named "&6&lKotu" to loop-player
wait 1 tick
give 1 yellow stained clay named "&e&lNormal" to loop-player
wait 1 tick
give 1 green stained clay named "&2&lGuzel" to loop-player
wait 1 tick
execute console command "fly on %loop-player%"
set {anti.protect} to 1
execute console command "gamemode 0 %loop-player%"
teleport loop-player to {buildbattle.arena.1}
wait 10 second
teleport loop-player to {buildbattle.arena.2}
wait 10 second
teleport loop-player to {buildbattle.arena.3}
wait 10 second
teleport loop-player to {buildbattle.arena.4}
wait 10 second
teleport loop-player to {buildbattle.lobi.location}
clear {anti.protect}
execute console command "gamemode 0 %loop-player%"
execute console command "fly off %loop-player%"
clear {arena.vote.4}
clear {arena.vote.3}
clear {arena.vote.2}
clear {arena.vote.1}
clear {vote.4}
clear {vote.3}
clear {vote.2}
clear {vote.1}
clear {vote4.%loop-player%}
clear {vote3.%loop-player%}
clear {vote2.%loop-player%}
clear {vote1.%loop-player%}
clear {owner3.%loop-player%}
clear {join1}
exit
{owner4.%loop-player%} is 1:
clear inventory of loop-player
wait 1 tick
give 1 red stained clay named "&4&lBerbat" to loop-player
wait 1 tick
give 1 orange stained clay named "&6&lKotu" to loop-player
wait 1 tick
give 1 yellow stained clay named "&e&lNormal" to loop-player
wait 1 tick
give 1 green stained clay named "&2&lGuzel" to loop-player
wait 1 tick
execute console command "fly on %loop-player%"
set {anti.protect} to 1
execute console command "gamemode 0 %loop-player%"
teleport loop-player to {buildbattle.arena.1}
wait 10 second
teleport loop-player to {buildbattle.arena.2}
wait 10 second
teleport loop-player to {buildbattle.arena.3}
wait 10 second
teleport loop-player to {buildbattle.arena.4}
wait 10 second
teleport loop-player to {buildbattle.lobi.location}
clear {anti.protect}
execute console command "gamemode 0 %loop-player%"
execute console command "fly off %loop-player%"
clear {arena.vote.4}
clear {arena.vote.3}
clear {arena.vote.2}
clear {arena.vote.1}
clear {vote.4}
clear {vote.3}
clear {vote.2}
clear {vote.1}
clear {vote4.%loop-player%}
clear {vote3.%loop-player%}
clear {vote2.%loop-player%}
clear {vote1.%loop-player%}
clear {owner4.%loop-player%}
clear {join1}
exit
if {join4} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ODA DOLU."
exit
if {owner4.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ZATEN OYUNDASIN."
exit
command /build <text>:
trigger:
if arg-1 is "leave":
if "%region at player%" contains "arena1":
if {owner1.%player%} is 1:
clear {owner1.%player%}
clear {join1}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDAN AYRILDIN."
teleport player to {buildbattle.lobi.location}
exit
if {owner1.%player%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDA DEGILSIN."
exit
if "%region at player%" contains "arena2":
if {owner2.%player%} is 1:
clear {owner2.%player%}
clear {join2}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDAN AYRILDIN."
teleport player to {buildbattle.lobi.location}
exit
if {owner2.%player%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDA DEGILSIN."
exit
if "%region at player%" contains "arena3":
if {owner3.%player%} is 1:
clear {owner3.%player%}
clear {join3}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDAN AYRILDIN."
teleport player to {buildbattle.lobi.location}
exit
if {owner3.%player%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDA DEGILSIN."
exit
if "%region at player%" contains "arena4":
if {owner4.%player%} is 1:
clear {owner4.%player%}
clear {join4}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDAN AYRILDIN."
teleport player to {buildbattle.lobi.location}
exit
if {owner4.%player%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7OYUNDA DEGILSIN."
exit
command /buildreload:
trigger:
clear {join4}
clear {join3}
clear {join2}
clear {join1}
clear {vote}
loop players:
clear {owner4.%loop-player%}
clear {owner3.%loop-player%}
clear {owner2.%loop-player%}
clear {owner1.%loop-player%}
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
on place:
if "%region at target block%" contains "arena1":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena2":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena3":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena4":
cancel event
if {buildbattle.start} is 1:
uncancel event
on break:
if "%region at target block%" contains "arena1":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena2":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena3":
cancel event
if {buildbattle.start} is 1:
uncancel event
if "%region at target block%" contains "arena4":
cancel event
if {buildbattle.start} is 1:
uncancel event
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /buildcreate <text>: #ArenaOluştur
trigger:
if arg-1 is "1":
if {buildbattle.arena.%arg-1%} is not set:
set {buildbattle.arena.%arg-1%} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(1) &7Olusturuldu."
stop trigger
if {buildbattle.arena.%arg-1%} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(1) &7Zaten Var. Silmek Icin /buildremove 1"
stop trigger
if arg-1 is "2":
if {buildbattle.arena.%arg-1%} is not set:
set {buildbattle.arena.%arg-1%} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(2) &7Olusturuldu."
stop trigger
if {buildbattle.arena.%arg-1%} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(2) &7Zaten Var. Silmek Icin /buildremove 2"
stop trigger
if arg-1 is "3":
if {buildbattle.arena.%arg-1%} is not set:
set {buildbattle.arena.%arg-1%} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(3) &7Olusturuldu."
stop trigger
if {buildbattle.arena.%arg-1%} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(3) &7Zaten Var. Silmek Icin /buildremove 2"
stop trigger
if arg-1 is "4":
if {buildbattle.arena.%arg-1%} is not set:
set {buildbattle.arena.%arg-1%} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(4) &7Olusturuldu."
stop trigger
if {buildbattle.arena.%arg-1%} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena &5&l(4) &7Zaten Var. Silmek Icin /buildremove 2"
stop trigger
command /buildremove <text>: #Arena Sil
trigger:
if arg-1 is "1":
if {buildbattle.arena.%arg-1%} is set:
clear {buildbattle.arena.%arg-1%}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena 1 Silindi."
stop trigger
if {buildbattle.arena.%arg-1%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Boyle Bir Arena Yok."
stop trigger
if arg-1 is "2":
if {buildbattle.arena.%arg-1%} is set:
clear {buildbattle.arena.%arg-1%}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena 2 Silindi."
stop trigger
if {buildbattle.arena.%arg-1%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Boyle Bir Arena Yok."
stop trigger
if arg-1 is "3":
if {buildbattle.arena.%arg-1%} is set:
clear {buildbattle.arena.%arg-1%}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena 3 Silindi."
stop trigger
if {buildbattle.arena.%arg-1%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Boyle Bir Arena Yok."
stop trigger
if arg-1 is "4":
if {buildbattle.arena.%arg-1%} is set:
clear {buildbattle.arena.%arg-1%}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Arena 4 Silindi."
stop trigger
if {buildbattle.arena.%arg-1%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Boyle Bir Arena Yok."
stop trigger
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /buildlook <text>:
trigger:
if arg-1 is "1":
set block at {buildbattle.arena.1} to quartz block
wait 2 second
set block at {buildbattle.arena.1} to air
if arg-1 is "2":
set block at {buildbattle.arena.2} to quartz block
wait 2 second
set block at {buildbattle.arena.2} to air
if arg-1 is "3":
set block at {buildbattle.arena.3} to quartz block
wait 2 second
set block at {buildbattle.arena.3} to air
if arg-1 is "4":
set block at {buildbattle.arena.4} to quartz block
wait 2 second
set block at {buildbattle.arena.4} to air
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /buildfloor <text>:
trigger:
if "%region at player%" contains "BuildGlobal1":
if arg-1 is "grass":
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to grass
if arg-1 is "stone":
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to stone
if arg-1 is "obsidian":
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to obsidian
if arg-1 is "sand":
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to sand
if arg-1 is "reload":
loop blocks within {arena1.loc1} to {arena1.loc2}:
set block at loop-block to light gray stained clay
if "%region at player%" contains "BuildGlobal2":
if arg-1 is "grass":
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to grass
if arg-1 is "stone":
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to stone
if arg-1 is "obsidian":
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to obsidian
if arg-1 is "sand":
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to sand
if arg-1 is "reload":
loop blocks within {arena2.loc1} to {arena2.loc2}:
set block at loop-block to light gray stained clay
if "%region at player%" contains "BuildGlobal3":
if arg-1 is "grass":
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to grass
if arg-1 is "stone":
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to stone
if arg-1 is "obsidian":
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to obsidian
if arg-1 is "sand":
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to sand
if arg-1 is "reload":
loop blocks within {arena3.loc1} to {arena3.loc2}:
set block at loop-block to light gray stained clay
if "%region at player%" contains "BuildGlobal4":
if arg-1 is "grass":
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to grass
if arg-1 is "stone":
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to stone
if arg-1 is "obsidian":
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to obsidian
if arg-1 is "sand":
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to sand
if arg-1 is "reload":
loop blocks within {arena4.loc1} to {arena4.loc2}:
set block at loop-block to light gray stained clay
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /buildlocation <text> <text> <text>:
usage: /buildlocation create/remove arena1/2/3 loc1/2/3
trigger:
if arg-1 is "create":
if {arena%arg-2%.loc%arg-3%} is not set:
set {arena%arg-2%.loc%arg-3%} to location of player
send "&8&l[&5&lBuild&d&lBattle&8&l] &7LOKASYON BELIRLENDI."
exit
if {arena%arg-2%.loc%arg-3%} is set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7LOKASYON ZATEN VAR."
exit
if arg-1 is "remove" or "delete":
if {arena%arg-2%.loc%arg-3%} is set:
clear {arena%arg-2%.loc%arg-3%}
send "&8&l[&5&lBuild&d&lBattle&8&l] &7LOKASYON KALDIRILDI."
exit
if {arena%arg-2%.loc%arg-3%} is not set:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7ZATEN BOYLE BIR LOKASYON YOK."
exit
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /buildreloadarena:
trigger:
if "%region at player%" contains "BuildGlobal1":
send "&8&l[&5&lBuild&d&lBattle&8&l] &7SIFIRLANDI."
loop blocks within {arena1.loc3} to {arena1.loc4}:
set block at loop-block to air
if "%region at player%" contains "BuildGlobal2":
send "&8&l[&5&lBuild&d&lBattle&8&l] &7SIFIRLANDI."
loop blocks within {arena2.loc3} to {arena2.loc4}:
set block at loop-block to air
if "%region at player%" contains "BuildGlobal3":
send "&8&l[&5&lBuild&d&lBattle&8&l] &7SIFIRLANDI."
loop blocks within {arena3.loc3} to {arena3.loc4}:
set block at loop-block to air
if "%region at player%" contains "BuildGlobal4":
send "&8&l[&5&lBuild&d&lBattle&8&l] &7SIFIRLANDI."
loop blocks within {arena4.loc3} to {arena4.loc4}:
set block at loop-block to air
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
command /menu:
trigger:
if player's world is "BuildBattle":
execute console command "chestcommands open buildbattlemenu.yml %player%"
else:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7BUILDBATTLE'DE DEGILSIN."
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
on rightclick with red stained clay:
if tool of player is any red stained clay named "&4&lBerbat":
if "%region at player%" contains "BuildGlobal1":
if {vote.arena.1} is 1:
if {vote1.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.1} is 1:
add 1 to {vote.1}
set {vote.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Berbat Verdin."
exit #VOTE SYSTEM UNIYT ONE
if "%region at player%" contains "BuildGlobal2":
if {vote.arena.2} is 1:
if {vote2.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.2} is 1:
add 1 to {vote.2}
set {vote2.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Berbat Verdin."
exit #VOTE SYSTEM UNIYT TWO
if "%region at player%" contains "BuildGlobal3":
if {vote.arena.3} is 1:
if {vote3.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.3} is 1:
add 1 to {vote.3}
set {vote3.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Berbat Verdin."
exit #VOTE SYSTEM UNIYT THREE
if "%region at player%" contains "BuildGlobal4":
if {vote.arena.4} is 1:
if {vote4.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.4} is 1:
add 1 to {vote.4}
set {vote4.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Berbat Verdin."
exit #VOTE SYSTEM UNIYT FOUR
on rightclick with orange stained clay:
if tool of player is any red stained clay named "&6&lKotu":
if "%region at player%" contains "BuildGlobal1":
if {vote.arena.1} is 1:
if {vote1.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.1} is 1:
add 2 to {vote.1}
set {vote1.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Kotu Verdin."
exit #VOTE SYSTEM UNIYT ONE
if "%region at player%" contains "BuildGlobal2":
if {vote.arena.2} is 1:
if {vote2.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.2} is 1:
add 2 to {vote.2}
set {vote2.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Kotu Verdin."
exit #VOTE SYSTEM UNIYT TWO
if "%region at player%" contains "BuildGlobal3":
if {vote.arena.3} is 1:
if {vote3.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.3} is 1:
add 2 to {vote.3}
set {vote3.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Kotu Verdin."
exit #VOTE SYSTEM UNIYT THREE
if "%region at player%" contains "BuildGlobal4":
if {vote.arena.4} is 1:
if {vote4.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.4} is 1:
add 2 to {vote.4}
set {vote4.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Kotu Verdin."
exit #VOTE SYSTEM UNIYT FOUR
on rightclick with yellow stained clay:
if tool of player is any red stained clay named "&e&lNormal":
if "%region at player%" contains "BuildGlobal1":
if {vote.arena.1} is 1:
if {vote1.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.1} is 1:
add 3 to {vote.1}
set {vote1.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Normal Verdin."
exit #VOTE SYSTEM UNIYT ONE
if "%region at player%" contains "BuildGlobal2":
if {vote.arena.2} is 1:
if {vote2.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.2} is 1:
add 3 to {vote.2}
set {vote2.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Normal Verdin."
exit #VOTE SYSTEM UNIYT TWO
if "%region at player%" contains "BuildGlobal3":
if {vote.arena.3} is 1:
if {vote3.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.3} is 1:
add 3 to {vote.3}
set {vote3.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Normal Verdin."
exit #VOTE SYSTEM UNIYT THREE
if "%region at player%" contains "BuildGlobal4":
if {vote.arena.4} is 1:
if {vote4.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.4} is 1:
add 3 to {vote.4}
set {vote4.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Normal Verdin."
exit #VOTE SYSTEM UNIYT FOUR
on rightclick with green stained clay:
if tool of player is any red stained clay named "&2&lGuzel":
if "%region at player%" contains "BuildGlobal1":
if {vote.arena.1} is 1:
if {vote1.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.1} is 1:
add 4 to {vote.1}
set {vote1.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Guzel Verdin."
exit #VOTE SYSTEM UNIYT ONE
if "%region at player%" contains "BuildGlobal2":
if {vote.arena.2} is 1:
if {vote2.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.2} is 1:
add 4 to {vote.2}
set {vote2.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Guzel Verdin."
exit #VOTE SYSTEM UNIYT TWO
if "%region at player%" contains "BuildGlobal3":
if {vote.arena.3} is 1:
if {vote3.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.3} is 1:
add 4 to {vote.3}
set {vote3.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Guzel Verdin."
exit #VOTE SYSTEM UNIYT THREE
if "%region at player%" contains "BuildGlobal4":
if {vote.arena.4} is 1:
if {vote4.%player%} is 1:
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Zaten Oy Verdin."
exit
if {vote.arena.4} is 1:
add 4 to {vote.4}
set {vote4.%player%} to 1
send "&8&l[&5&lBuild&d&lBattle&8&l] &7Guzel Verdin."
exit #VOTE SYSTEM UNIYT FOUR
on command:
loop players in "buildbattle":
if {anti.protect} is 1:
cancel event
on break:
loop players in "buildbattle":
if {anti.protect} is 1:
cancel event
on place:
loop players in "buildbattle":
if {anti.protect} is 1:
cancel event
Son düzenleme: