Closed flying8lack closed 1 month ago
ItemStack
is no longer an attachment holder since the introduction of data components in vanilla in 1.20.5. The data attachment docs also mention this.
If there is indeed still a place on the docs that mentions ItemStack
as an attachment holder, then that needs to be corrected. Can you link where you found this?
Minecraft Version : 1.21.1
Neoforge version: 21.1.69
Github link to mod: https://github.com/flying8lack/HuntedByBounty/tree/main
As written in the title, It is impossible to get DataAttachment from
ItemStack
.player
already haveIAttachmentHolder
, which I was able use as shown below:The documentation has suggested that
ItemStack
should have anIAttachmentHolder
implementation, which seems to be wrong. Is there something I am missing or is this a bug? thank you for the help.