command /warpayarla [<text>]:
permission: admin
trigger:
set {warp.%arg 1%} to location of player
add argument 1 to {warp.liste::*}
spawn villager at {warp.%arg 1%}
apply slowness 999 to spawned villager for 999 days
set display name of spawned villager to "&e&l%arg 1%"
send "&6Basariyla &c%arg 1% &6adli warpi Olusturdunuz" to player
command /warp [<text = "liste">]:
trigger:
if argument 1 is "liste":
loop {warp.liste::*}:
add 1 to {_sayi}
wait 1 ticks
set {warp.%{_sayi}%.isim} to loop-value
wait 1 ticks
wait 1 ticks
open chest with 1 rows named "Warplar" to player
wait 2 ticks
if {warp.1.isim} is set:
format slot 0 of player with player head named "&e&l%{warp.1.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
if {warp.2.isim} is set:
format slot 1 of player with player head named "&e&l%{warp.2.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
if {warp.3.isim} is set:
format slot 2 of player with player head named "&e&l%{warp.3.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
if {warp.4.isim} is set:
format slot 3 of player with player head named "&e&l%{warp.4.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
if {warp.5.isim} is set:
format slot 4 of player with player head named "&e&l%{warp.5.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
if {warp.6.isim} is set:
format slot 5 of player with player head named "&e&l%{warp.6.isim}%" with lore "&7Işınlanmak için tıkla!" to close then run ""
else:
if {warp.%arg 1%} is set:
teleport player to {warp.%arg 1%}
send "&c%arg 1% &6adli warpa isinlanıldi" to player
else:
send "&cBoyle Bir warp yok! " to player
command /warpsil [<text>]:
permission: admin
trigger:
if {warp.%arg 1%} is set:
delete {warp.%arg 1%}
send "&c%arg 1% &6adli warp silindi" to player
remove argument 1 from {warp.liste::*}
loop villagers:
if name of loop-entity is "&e&l%arg 1%":
delete loop-entity
else:
send "&cBoyle Bir Warp Yok" to player