#help!

1 messages · Page 1 of 1 (latest)

alpine trellis
#

check cursor slot in an on inventory click event

#

im assuming you are trying to drag and drop an enchant book onto a tool right

#

so check if the item in the clicked slot is what you want

#

check the cursor slot

#

if cursor slot is certain item

#

then apply what you want to inventory slot

#

wait whats the problem?

#

u want the sword to have enchant?

#

like sharpness 5?

#

well u need to specify what type of enchantment book

#

i know for enchanted items

#

diamond sword of sharpness 5

#

but for enchant books might be a bit different

#

just create a command to broadcast player's held item

#

and hold an enchantment book

alpine trellis
#

what event is that placed under?

#

i just have stuff like

#

player's gamemode != creative