#Force Drop Items keep durability and enchants
1 messages · Page 1 of 1 (latest)
Are you asking how to track that data within the script, or that you don't know how to spawn an item with the applied data?
both please
:^
Why dosen't this script works ?
import { ItemStack, world } from "@minecraft/server";
world.afterEvents.itemUse.subscribe(e => {
const Sword = e ;
const player = e.source
const item = new ItemStack('minecraft:diamond_hoe' , 1).getComponent('minecraft:enchantable').addEnchantment({type : "mending", level : 1 })
player.getComponent('minecraft:inventory').container.addItem(item);
})
@plain orchid
.__.
I don't know