mojira.dev
MC-118965

when using an item id as data tag in larger commands, the : in the minecraft: prefix ISN'T ignored and errors the command

Problem does not seem to appear in 1.11 (Yes, i even tested it.. But Single player only)

A command which uses the tag item id (Atch:1)

/summon item ~ ~1 ~ {Item:{id:"minecraft:ender_pearl",Count:1b},Age:-32768,PickupDelay:32767}

Stacking it(Atch:2)

/give @p minecraft:written_book 1 0 {title:"book",author:"",generation:0,pages:["{text:\"eye\",color:black,clickEvent:{action:'run_command',value:\"/summon item ~ ~1 ~ {Item:{id:minecraft:ender_pearl,Count:1b},Age:-32768,PickupDelay:32767}\"}}"]}

error points out that >"data tag parsing" failed because : from minecraft: isn't ignored

Attachments

Comments 3

you must add quotes around any string that contains anything but "A-Za-z0-9+-_.".

@FVbico It works on different versions without quotes. :/

nbt phrasing changed in 1.12.

Hermann Stanew

(Unassigned)

Unconfirmed

Minecraft 1.12

Retrieved