Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276691

Inline json doesn't allow mixing types in array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w37a
    • None
    • Unconfirmed
    • (Unassigned)

      How to Reproduce

      1. Execute the following command
        /loot give @s loot {pools:[{rolls:1,entries:[{type:"item",name:"stone",functions:[{function:"set_name",entity:"this",name:["test",{selector:"@s"}]}]}]}]}
        

      Expected Behaviour

      Parse successfully since it's a valid json.

      Observed Behaviour

      Can't insert TAG_Compound into list of TAG_String

            Unassigned Unassigned
            ccJerrycc ccJerrycc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: