options:
Prefix: &e&lSC&c&lTR &8»
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&lMetin"
drop 1 diamond helmet of protection 4, unbreaking 3 named "&bMETIN KAFALIK"
drop 1 diamond chestplate of protection 4, unbreaking 3 named "&bMETIN ZIRH"
drop 1 diamond leggings of protection 4, unbreaking 3 named "&bMETIN PANTOLON"
drop 1 diamond boots of protection 4, unbreaking 3 named "&bMETIN BOT"
drop 1 diamond sword of sharpness 5, unbreaking 5, smite 3 named "&aMETIN KILIÇ"
set {ozeltas::can} to 150
set event-block to air
broadcast "&e&lSC&c&lTR &8» &7Oyuncular Metin Taşını Parçaladı&4&l!" to players
wait 180 seconds
set event-block to obsidian
broadcast "&e&lSC&c&lTR &8» &7Metin Taşı Düşdü&4&l! &c/&eWarp MetinTaşı" 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&lSC&c&lTR &8» &7Metin tasina Kritik Vurus &7yaptin .. !!" to player
chance of 10%:
damage the player by 8 heart
message "&e&lSC&c&lTR &8» &7Metin tasina &cDelici Vurus &7yaptin .. !!" to player
chance of 10%:
spawn 4 zombie at player's location
chance of 10%:
spawn 5 zombie at player's location
chance of 10%:
spawn 4 zombie at player's location
spawn 4 skeleton at player's location
chance of 10%:
spawn 5 zombie at player's location
spawn 5 skeleton at player's location
spawn 2 creeper at player's location
cancel event
stop
set {ozeltas::can} to 150