#How do i make it so that i can make it so that it the hotbars dont swap when you click them

1 messages · Page 1 of 1 (latest)

coarse phoenix
#

Like i want offhand and the 9th slot to not be swappable

swift swan
#

cancel the event

coarse phoenix
#

ok

#

but

weary dock
#

theres an event for this, on hand item swap: iirc. You can check the docs to make sure im right and do your own research in the future

weary dock
#

check the item against slot 9

#

or rather the index of their current hotbar slot, i think the expression is

#

(this is 0-8 not 1-9)

coarse phoenix
# weary dock (this is 0-8 not 1-9)

ok but this is deleting the item i put at slot 8 whenever i put a item at slot 8 instead of sending it back

    if event-slot is 8:
        cancel event```
weary dock
#

if index of event-slot = 8:

coarse phoenix
weary dock
#

is this in creative or survival?