So what I am trying to do is basically change the player's speed with boots.
issue:
When I put it on it sets my speed to 2, but when I take it off, or change my armor it doesn't change it back.
I use the latest version of skript as of now.
Here is what I did (at least tried):
issue:
When I put it on it sets my speed to 2, but when I take it off, or change my armor it doesn't change it back.
I use the latest version of skript as of now.
Here is what I did (at least tried):
Code:
on load:
set {CustomItem::SpeedBoots} to netherite boots named "&3Speed Boots" with lore "&7SPEED!!!"
on armor change:
if event-itemtype is {CustomItem::SpeedBoots}:
set player's walk speed to 2
else:
set player's walk speed to 1