#1vs1 mini savaş oyunu.
#zAxelaTR
options:
kazanan-ödülü: diamond
variables:
{1vs1.arena1} = 0
on load:
set {1vs1.arena1} to 0
delete {1vs1.arena1.kişi-1}
delete {1vs1.arena1.kişi-2}
command /1v1 [<text>]:
aliases: /1vs1, /1
trigger:
if arg 1 is not set:
open chest with 1 rows named "&81vs1 Arenalari" to player
wait 3 tick
format slot 0 of player with 1 of light green dye named "&aArena 1" with lore "&7Durum: &2KATIL||&70/2" to run "s %player% 1v1 arena1"
if {1vs1.arena1} is 1:
format slot 0 of player with 1 of light green dye named "&aArena 1" with lore "&7Durum: &2BEKLIYOR..||&71/2" to run "s %player% 1v1 arena1"
if {1vs1.arena1} is 2:
format slot 0 of player with 1 of light green dye named "&aArena 1" with lore "&7Durum: &2BEKLIYOR..||&72/2" to run "s %player% 1v1 arena1"
if {1vs1.arena1} is 3:
format slot 0 of player with 1 of gray dye named "&aArena 1" with lore "&7Durum: &4&mDOLU" to run "s %player% 1v1 arena1"
if arg 1 is "arena1":
if {1vs1.arena1} is 0:
set {1vs1.arena1.kişi-1} to "%player%"
set {1vs1.arena1} to 1
close the player's inventory
message "&7Arena 1 katildiniz &a1/2"
execute player command "/1v1"
stop
if {1vs1.arena1.kişi-1} is player:
message "&7Şuanda beklemedesin lütfen biri bekle !"
close the player's inventory
stop trigger
stop
if {1vs1.arena1.kişi-2} is player:
message "&7Şuanda beklemedesin lütfen biri bekle !"
close the player's inventory
stop trigger
stop
if {1vs1.arena1} is 1:
set {1vs1.arena1.kişi-2} to "%player%"
set {1vs1.arena1} to 2
wait 1 second
message "&7Arena 1 katildiniz &a2/2 &7oyun başliyor..."
close the player's inventory
set {1vs1.arena1} to 3
if {1vs1.arena1} is 3:
message "&7Arena 1 isimli oyun başladı son kişi kalana dek devam edecek !" to all players
loop all players:
if loop-player is {1vs1.arena1.kişi-1}:
teleport loop-player to {1vs1.arena1.spawn-1}
equip loop-player with all diamond armour
give 1 stone sword to the loop-player
loop all players:
if loop-player is {1vs1.arena1.kişi-2}:
teleport loop-player to {1vs1.arena1.spawn-2}
equip loop-player with all diamond armour
give 1 stone sword to the loop-player
on death of player:
if attacker is player:
if victim is {1vs1.arena1.kişi-1}:
message "&7Arena 1 isimli oyunu &a%{1vs1.arena1.kişi-2}% &7isimli kişi kazandi !" to all players
give {@kazanan-ödülü} to the attacker
set {1vs1.arena1} to 0
delete {1vs1.arena1.kişi-1}
stop
if victim is {1vs1.arena1.kişi-2}:
message "&7Arena 1 isimli oyunu &a%{1vs1.arena1.kişi-1}% &7isimli kişi kazandi !" to all players
give {@kazanan-ödülü} to the attacker
set {1vs1.arena1} to 0
delete {1vs1.arena1.kişi-1}
stop
command /ayarla [<text>]:
trigger:
if arg 1 is "1":
set {1vs1.arena1.spawn-1} to location of player
message "&7oldu"
stop
if arg 1 is "2":
set {1vs1.arena1.spawn-2} to location of player
message "&7oldu"
stop
command /s <player> <text>:
executable by: console
trigger:
execute arg 1 command "%arg 2%"