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

/particle color parser forces explicit floating points

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.5 Pre-Release 1, 1.20.5, 1.20.6 Release Candidate 1
    • None
    • Confirmed
    • Commands

      When attempting to write this command

      /particle entity_effect{color:[1,0,0.5,1]} 

      the game returns the following error:
      "Can't insert TAG_Int into list of TAG_Double"
      This is because the game expects you to write:

      /particle entity_effect{color:[1.,0.,0.5,1.]}  

      I think you should be able to place 0 or 1 into these brackets as it is fairly obvious the intent is to treat them as 1. and 0.
      This over restrictive parsing also makes using command macros with this custom color a bit more cumbersome

            Unassigned Unassigned
            pauloalbert paulo khayat
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: