#enchanted books cant be used why?

1 messages · Page 1 of 1 (latest)

lofty loom
#

basically i did a shop gui that when u press the item it give u enchanted book but when u try to use it in a anvil it doesnt work

#

if player's balance is greater than or equal to 60:
give 1 enchanted book of protection 3 to player
remove 60 from player's balance
close player's inventory

agile tendon
#

try using stored enchantments

lofty loom
#

sorry for ping

#

u mean like set {a} to enchanted book?

agile tendon
#

search for that on the docs

lofty loom
#

kk

#

set {_a::*} to stored enchants of player's tool
set stored enchants of player's tool to sharpness 3 and unbreaking 2
add sharpness 1 to stored enchants of player's tool
delete stored enchants of player's tool
remove sharpness from stored enchants of player's tool

#

i dont understand how this can help me

#

i want only the book

agile tendon
#

uhuh

#

so modify the enchantments in it

lofty loom
#

but this is skbee sir

#

skbee dont have support for 1.21

somber kettle
#

ye they do

high crystal
lofty loom
#

Oh im zory?