Fabric API

Fabric API

106M Downloads

ComponentMap to string Usable in minecraft commands

JoeTheOrangeCat opened this issue ยท 1 comments

commented

I have a mod that lets me view NBT and reuse it, well now its broken because of the switch to Components, and I can find a good way to convert it to a string usable in the /give command. The default .toString give a weirdly formatted in an unhelpful way, I tried other things, but none of them worked well, any help?
image

My main problem comes from when it just gives Literal or Wonky NBT looking stuff.

commented

Does not appear to be a Fabric API issue. Anyway, the format used in commands is ComponentChanges.CODEC.