Essentially, I'd like to make a Skript where if you have a certain item with a certain name and you right click it, it will give you certain potion effects. I got this working but I wanted to add a lore to the items showing what effects you get, and it stopped the code working. Please help me fix this code.
My code:
My code:
code_language.skript:
on rightclick:
if player is holding slimeball named "&b&lJaw Breaker":
apply swiftness 3 to the player for 10 seconds
apply jump boost 4 to the player for 10 seconds
remove 1 slimeball named "&b&lJaw Breaker" from player's inventory
message "&a&l(*) &aYou consumed a Jaw Breaker!"