variables: {amulet.%player%} = false command /amulet: trigger: give 1 of ghast tear of unbreaking 10 named "&f&lAmulet Niewidzialności" to player send "&2Odebrałeś amulet" on rightclick holding a ghast tear of unbreaking 10: if {amulet.%player%} is false: apply invisibility 1 to player for 10000 seconds set {amulet.%player%} to true send "&2Aktywowałeś amulet" else: send "&cAmulet już działa." on damage: if {amulet.%victim%} is true: set {amulet.%victim%} to false remove invisibility from victim send "&cO nie! Znalezli cie, straciłeś moc!" to victim send "&5Patrz! Maga znalazłeś XD" to attacker