NBTEditor

NBTEditor

238k Downloads

Bug in setting lore

enterih opened this issue ยท 4 comments

commented

/nbtitem lore add
does only accept numbers on my side.

commented

You need to use /nbti **var** lore add Text

commented

I can confirm this bug still exists. Lore text changed in 1.14 to use json format.
/nbtitem var lore add Text Does nothing.
/nbtitem var lore add number Adds a line of lore that is set to whatever number you gave it
I also converted the following items (post command) to command block and pasted the nbt data below.

Examples:
/nbti var lore add 1
{display:{Lore:['{"text":"1"}']}}
This correctly shows a purple lore text of "1."

/nbti var lore add h
in command block: {display:{Lore:["h"]}}
This shows nothing.

commented

This will be fixed when #47 lands for 1.15. In the meantime, you can work around this by simply putting quotes around your lore text entries like:

/nbti var lore add "1"

Since a quoted string is valid JSON

commented

Yes, fixed on #47 and merged.

The latest builds on the new Jenkins server (https://jenkins.goncalomb.com/job/NBTEditor/) are compatible with 1.14 and 1.15, more features like missing variables will be added later.