Files
miecz-pnaczy.sk
Code
1 25
miecz-pnaczy.sk
# Miecz Pnaczy - Sword that damages the player when held
# Place in plugins/Skript/scripts/ and run /sk reload miecz-pnaczy
on script load:
send "&a[Miecz Pnaczy] Script zaladowany!" to console
command /mieczpnaczy:
permission: admin.mieczpnaczy
description: Give yourself the cursed sword
trigger:
set {_item} to diamond sword named "&aMiecz Pnaczy"
set lore of {_item} to "&7Trzymaj mnie na wlasna odpowiedzialnosc!" and "&cPowoduje obrazenia!"
add sharpness 5 to {_item}
give {_item} to player
send "&6Otrzymales &aMiecz Pnaczy&r&6!" to player
every 20 ticks:
loop all players:
if name of tool of loop-player is "&aMiecz Pnaczy":
damage loop-player by 2
send "&cTrzymajac &4Miecz Pnaczy &cotrzymujesz obrazenia!" to loop-player
on death:
if name of tool of victim is "&aMiecz Pnaczy":
set death message to "&c%victim% zginal przez trzymanie &4Miecza Pnaczy&c!"