#Is there an event for equipping something in your offhand?

1 messages · Page 1 of 1 (latest)

somber citrus
#

something like "On off hand change:", I've looked in skript hub and nothing shows up but "On hand item swap:" but ive tried that and it doesn't work.

sour plank
#

You're saying any time an item is placed in the offhand; even if it wasn't by the player pressing F in game...?

#

could definitely use on inventory slot change and just check the event slot for the offhand

#
on inventory slot change:
  if event-slot is event-player's offhand:
    #
scarlet igloo
sour plank
scarlet igloo
#

how does it not work

#

it literally works

sour plank
#

Idk, broski just said it doesn't work

scarlet igloo
#

i just tested it rn, seems to work fine

sour plank
#

are you physically changing the item or just pressing f to swap item to offhand

scarlet igloo
#

pressing f

sour plank
#

I think that event only triggers on that action

scarlet igloo
#

i assume thats what they want

sour plank
#

Idk, he's pretty inspecific with the title

#

figured he might mean any time the item in their offhand changes

scarlet igloo
#

¯_(ツ)_/¯

somber citrus
#

ik

#

ive added it

#

im gonna test it and see how it goes

#

didnt work

#

so i modified it a little bit

#
  if event-slot is 45:```
#

nvm offhand is 40

#

45 didnt work