Hey!
So I have this booster skript I just started and it has some issues, I'm a starter skripter so I don't know much about skript.
It has the error: Can't compare 'name of clicked item' with a text:
on right-click with orange dye:
HERE --> if name of clicked item is "&b2x &eBooster &f| &b5 minutes":
remove 1 orange dye named "&b2x &eBooster &f| &b5 minutes" from player
command /booster 2x:
trigger:
give player orange dye named "&b2x &eBooster &f| &b5 minutes"
on right-click with orange dye:
if name of clicked item is "&b2x &eBooster &f| &b5 minutes":
remove 1 orange dye named "&b2x &eBooster &f| &b5 minutes" from player
if {booster::timer} is not set:
set {booster::timer} to 5 minutes
set {booster::multiplier} to 2
send "&aYou activated the 2x booster! It will last for 5 minutes."
else:
send "&cA booster is already active!"
So I have this booster skript I just started and it has some issues, I'm a starter skripter so I don't know much about skript.
It has the error: Can't compare 'name of clicked item' with a text:
on right-click with orange dye:
HERE --> if name of clicked item is "&b2x &eBooster &f| &b5 minutes":
remove 1 orange dye named "&b2x &eBooster &f| &b5 minutes" from player
command /booster 2x:
trigger:
give player orange dye named "&b2x &eBooster &f| &b5 minutes"
on right-click with orange dye:
if name of clicked item is "&b2x &eBooster &f| &b5 minutes":
remove 1 orange dye named "&b2x &eBooster &f| &b5 minutes" from player
if {booster::timer} is not set:
set {booster::timer} to 5 minutes
set {booster::multiplier} to 2
send "&aYou activated the 2x booster! It will last for 5 minutes."
else:
send "&cA booster is already active!"