on any move: if {zamrozony::%player%} = true: cancel event send "&aJesteś zamrożony!" to player on damage: if attacker's tool is named "&bMiecz zamrożenia": if attacker has attacker's tool on cooldown: send "&bTwój miecz ma cooldown" to attacker else: set item cooldown of attacker's tool for attacker to 60 seconds set {zamrozony::%victim%} to true wait 3 seconds delete {zamrozony::%victim%} command /zamrozonymiecz []: permission: zamrozonymiecz.perm trigger: give 1 diamond sword of unbreaking 10 named "&bMiecz zamrożenia" to arg