Avaritia:Reforged

Avaritia:Reforged

45.5k Downloads

[Question / 询问] Nbt enchantments at crafting

ashi0-a opened this issue · 1 comments

commented

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Description / 描述

I'm trying to add an enchantment book to a crafting recipe, but I'm having trouble following the example from the sample. I filled in the nbt tag using the example from the second picture
image
image

commented

In the end, it worked:
Item.of('minecraft:enchanted_book').enchant('minecraft:silk_touch', 1).strongNBT()