#add a enchanted item
1 messages · Page 1 of 1 (latest)
hi this is a post
let enchantments;
const item = new ItemStack(MinecraftItemTypes.items, 1, 0)
enchantments = item.getComponent('enchantments').enchantments;
enchantments.addEnchantment(new Enchantment(MinecraftEnchantmentTypes.binding, 1));
item.getComponent('enchantments').enchantments = enchantments;
inv.addItem(item);
try this
no
in the new update there's no item data