options:
Prefix: &e| &7- &cMetinTASI &7- &e| &7
command /tasayarla:
trigger:
if player has permission "tas.admin":
if targeted block is obsidian:
if {ozeltas::%location of targeted block%} is not set:
set {_loc} to location of targeted block
set {ozeltas::%{_loc}%} to {_loc}
message "{@Prefix} &7Onunuzdeki obsidyeni metin tasina cevirdiniz normale cevirmek icin tekrar &c/tasayarla &7yaziniz..!"
stop
else if {ozeltas::%location of targeted block%} is set:
clear {ozeltas::%location of targeted block%}
message "{@Prefix} &7Metin tasini normal obsidyene cevirdiniz tekrar metin tasi yapmak icin &c/tasayarla &7yaziniz..!"
else:
message "{@Prefix} &7Bu komutu gerceklestirebilmek icin bir &cobsidyene &7dogru bakiyor olmaniz gerekmektedir..!"
else:
message "{@Prefix} &7Bunun icin gerekli yetkiye sahip degilsin.."
on break of obsidian:
if {ozeltas::can} is smaller than 0:
message "&f[&a%{ozeltas::can}% &7x &cMetin Tasini Kirdin !i&f]"
drop 30 Gray dye named "&c&lTas Parcasi"
drop 20 Rose red named "&c&lPet Parcasi"
drop 2 diamond helmet of protection 75, unbreaking 75 named "&c&lYildiz Kask"
drop 2 diamond chestplate of protection 75, unbreaking 75 named "&c&lYildiz Zirh"
drop 2 diamond leggings of protection 75, unbreaking 75 named "&c&lYildiz Pantolon"
drop 2 diamond boots of protection 75, unbreaking 75 named "&c&lYildiz Ayakkabi"
drop 2 diamond sword of sharpness 90, unbreaking 90, smite 90 named "&c&lYildiz Silah"
set {ozeltas::can} to 400
set event-block to air
message "&e| &7- &cMetinTASI &7- &e| &7Oyuncular &cmetin tasini &7parcaladi , &c3 dakika &7icinde tekrar cikacaktir..!" to players
wait 180 seconds
set event-block to obsidian
message "&e| &7- &cMetinTASI &7- &e| &cMetin tasi &7yeniden dustu , &c/warp metintasi &7giderek metin tasini kesebilirsiniz..!" to players
if {ozeltas::%location of event-block%} is set:
message "&f[ &cCAN &7x &a%{ozeltas::can}% &7x &f]"
remove 1 from {ozeltas::can}
chance of 20%:
damage the player by 3 heart
chance of 20%:
damage the player by 6 heart
message "&e| &7- &cMetinTASI &7- &e| &7Metin tasina &4Kritik Vurus &7yaptin .. !!" to player
chance of 5%:
damage the player by 8 heart
message "&e| &7- &cMetinTASI &7- &e| &7Metin tasina &cDelici Vurus &7yaptin .. !!" to player
chance of 70%:
spawn 50 zombie at player's location
chance of 50%:
spawn 80 zombie at player's location
chance of 30%:
spawn 90 zombie at player's location
spawn 12 skeleton at player's location
chance of 15%:
spawn 100 zombie at player's location
spawn 24 skeleton at player's location
spawn 12 creeper at player's location
cancel event
stop
set {ozeltas::can} to 400