options:
crystal_duration: 600 # Kristalın ne kadar süreyle kalacağını belirleyin (saniye cinsinden)
crystal_radius: 5 # Kristalin ne kadar büyük olacağını belirleyin (blok cinsinden yarıçap)
on enable:
set {_crystal_duration} to the duration of option "crystal_duration" seconds
set {_crystal_radius} to option "crystal_radius"
on crystal spawn:
set {_location} to location of player
set {_crystal} to a diamond block named "Crystal" at {_location}
set the size of {_crystal} to {_crystal_radius} blocks
despawn {_crystal} after {_crystal_duration} seconds
on player right clicks diamond block:
if player has permission "crystal.damage":
remove 1 from the size of the clicked block
set {_damage} to 1
add {_damage} to the balance of player
send "Kristali vurdun ve %{_damage}% hasar verdin! Yeni bakiyen: %{balance of player}%" to player
command startevent:
trigger:
execute console command "/skript trigger crystal spawn"
send "Kristal etkinliği başlatıldı!" to all players
command stopevent:
trigger:
execute console command "/skript trigger crystal despawn"
send "Kristal etkinliği sona erdi!" to all players