options: message: Wiadomosc! command /potka: permission: potka.admin trigger: add 1 of potion:8193 named "&c&lMala mikstura HP" to player's inventory on drink: if player's tool is potion:8193 named "&c&lMala miksuta HP": cancel event if {potka::%player%} is not set: set {potka::%player%} to 0 if {potka::%player%} is 0: spawn 20 of particle heart:1 offset by 0.5, 0.5, 0.5 at player apply regeneration 10 to player for 1 seconds set {potka::%player%} to 10 else: send "{@message}" every 1 second: loop {potka::*}: if loop-value is more than 0: remove 1 from {potka::%loop-index%}