Mojira Archive
MC-186917

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

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.

Unresolved

DephoeX

2020-06-01, 06:51 PM

2023-12-14, 03:14 PM

8

6

Community Consensus

Entities

command, end_crystal, nbt-tags

1.15.2 - 1.20.41.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

-