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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 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, 1.20.4
    • Community Consensus
    • Entities

      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.

            Unassigned Unassigned
            DephoeX DephoeX
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: