options:
p: &8[&aElement&8]
perm: &cYou don't have the permission!
ap: element.admin
author: optimist
version: 1.0
on first join:
send "{@p} &aElementini seç!"
wait 1 ticks
open chest with 1 rows named "&c&lElement sec!" to player
format slot 0 of player with red wool named "&a&lAtes" to close then run [make player execute command "element sec ates"]
format slot 2 of player with white wool named "&a&lHava" to close then run [make player execute command "element sec hava"]
format slot 4 of player with brown wool named "&a&lToprak" to close then run [make player execute command "element sec toprak"]
format slot 6 of player with blue wool named "&a&lSu" to close then run [make player execute command "element sec su"]
format slot 8 of player with feather named "&f&lCoded By &a&lMC-TR" to be unstealable
command /element [<text>] [<text>]:
trigger:
if arg 1 is "sec":
if arg 2 is "ates":
if {element::%player%} is not set:
set {element::%player%} to "ates"
send "{@p} &cBasariyla ates elementi secildi!"
else:
send "{@p} &cZaten element secmissin!"
if arg 1 is "sec":
if arg 2 is "hava":
if {element::%player%} is not set:
set {element::%player%} to "hava"
send "{@p} &cBasariyla hava elementi secildi!"
else:
send "{@p} &cZaten element secmissin!"
if arg 1 is "sec":
if arg 2 is "toprak":
if {element::%player%} is not set:
set {element::%player%} to "toprak"
send "{@p} &cBasariyla toprak elementi secildi!"
else:
send "{@p} &cZaten element secmissin!"
if arg 1 is "sec":
if arg 2 is "su":
if {element::%player%} is not set:
set {element::%player%} to "su"
send "{@p} &cBasariyla su elementi secildi!"
else:
send "{@p} &cZaten element secmissin!"
command /sifirla [<player>]:
permission: {@ap}
permission message: {@p} {@perm}
trigger:
if arg 1 is set:
if {element::%arg 1%} is set:
delete {element::%arg 1%}
send "{@p} &cSilindi!"
else:
send "{@p} &cZaten elementi yok!"
on damage:
victim is player
attacker is player
if {element::%victim%} is "su":
add 2 to victim's healt
if {element::%attacker%} is "hava":
apply slowness 2 to victim for 3 seconds
if {element::%attacker%} is "toprak":
apply poison 1 to victim for 5 seconds
if {element::%victim%} is "ates":
apply fire resistance 1 to victim for 5 seconds