#lock item in slot

30 messages · Page 1 of 1 (latest)

fiery hearth
#

Can I somehow lock an item in a hotbar slot, so it cant be moved or anything? If possible it would be great if this could either depend on an item nbt or something I can configure in a server script

pallid cosmosBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

worn gyro
#

yeah, possible

#

PlayerEvents.inventoryChanged event and then check the nbt with event.item.nbt and cancel the event in that case

fiery hearth
#

Oh thanks a lot

mild stump
#

dont think that works

#

at least not when ive tried it in the past

mild stump
# fiery hearth Oh thanks a lot

if it does work then post the script here, pretty sure you cant cancel the inventory changed event but maybe i did it wrong

next estuary
#

kubejs wiki lists that event as unable to be canceled

fiery hearth
#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

The kubejs wiki says its not cancalable

#

Sorry, I am on my phone and the new update is doing some really weird stuff

mild stump