When I try and use my "on offhand [move|switch]" event from Skellet, it doesn't work sometimes. Like when you click the slot in your inventory, it doesn't count as switching and therefore, doesn't trigger the event. If anyone knows a solution to this, please tell me. I'm trying to work on talismans and I can't do all of them with attributes. Thank you.
Here's my code:
Edit: Another big bug is that when you move it into the slot, the event doesn't trigger. It's only when you move it outside of the slot.
[doublepost=1612732094,1612720639][/doublepost]bump
Here's my code:
Code:
on offhand move:
if player's offhand tool isn't a ghast tear named "&bJumping Talisman" with lore "&d&oGiven to those who strive to obtain the max jump":
stop
apply jump boost 3 to player for 9999 days
set {jumptalis::%player%} to true
on offhand move:
if player's offhand tool isn't a red tulip named "&dHealth Talisman" with lore "&d&oGiven to those who want the most health ever":
stop
apply regeneration 2 to player for 9999 days
set {healtalis::%player%} to true
on offhand move:
if {healtalis::%player%} is true:
if player's offhand tool isn't a red tulip named "&dHealth Talisman" with lore "&d&oGiven to those who want the most health ever":
remove regeneration from the player
if {jumptalis::%player%} is true:
if player's offhand tool isn't a ghast tear named "&bJumping Talisman" with lore "&d&oGiven to those who strive to obtain the max jump":
remove jump boost from the player
Edit: Another big bug is that when you move it into the slot, the event doesn't trigger. It's only when you move it outside of the slot.
[doublepost=1612732094,1612720639][/doublepost]bump