variables: {particle::serduszka::%player%} = false command /particle []: trigger: if player has permission "particle.*": open chest with 1 row named "&aWybierz swoje &7particle!" to player wait 2 tick set player's current inventory's slot 1 to 322 named "&4&lSERDUSZKA" with lore "||&7Kliknij, aby wybrac particle:||&4&lSERDUSZKA||" on inventory click: if inventory name of current inventory of player is "&aWybierz swoje &7particle!": if clicked slot is 1: if {particle::serduszka::%player%} is true: set {particle::serduszka::%player%} to false send player title "" with subtitle "&cWylaczyles &7particle &4&lSERDUSZKA" for 5 seconds send "&7>> &cPoprawnie wylaczyles particle &4&lSERDUSZKA" to the player stop if {particle::serduszka::%player%} is false: set {particle::serduszka::%player%} to true send player title "" with subtitle "&aWlaczyles &7particle &4&lSERDUSZKA" for 5 seconds send "&7>> &aPoprawnie wylaczyles particle &4&lSERDUSZKA" to the player stop every 0.5 second: loop all players: if {particle::serduszka::%loop-player%} is true: spawn 10 of particle heart offset by 0.5, 1, 0.5 at loop-player