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

The NBT tag "BeamTarget" from End Crystals does not allow decimal values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 7, 1.16 Release Candidate 1, 1.16, 1.16.4, 20w46a, 20w49a, 21w03a, 21w11a, 1.17.1 Pre-release 1, 1.17.1
    • Fix Version/s: None
    • Confirmation Status:
      Community Consensus
    • Category:
      Entities

      Description

      The NBT tag "BeamTarget" from End Crystals does not allow decimal values. It allows you to "set" a decimal value, but it is not truly set (the decimal value is transformed into the whole number that goes below it, "floor" function). It can be seen in the images.

       

      TO REPLICATE:

      1. Summon an End Crystal - /summon minecraft:end_crystal      ~       
      2. Modify the NBT tag - /data modify entity @e[type=minecraft:end_crystal,limit=1,distance=..10] BeamTarget.X set value 1.5
      3. Read the changed data - /data get entity @e[type=minecraft:end_crystal,limit=1,distance=..10]
      4. Notice that in the coordinate X of the NBT tag "BeamTarget" (shown as BeamTarget: {X: ##, Y: ##, Z: ##}) has been eliminated the decimal part.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            DephoeX DephoeX
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: