mojira.dev
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.

Attachments

Comments 6

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

We have removed it and added the latest released version

Please edit the Affects Version/s field and select the specific Released Version you were using when you encountered the reported issue.

If you can't find it in the list, please make sure that:

  • You are in the correct project on the bug tracker.

  • You were playing the latest release version or the latest development version of the game.

This issue has been temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

Can confirm in 20w49a. The command does allow you to input decimal values however, when the data is read, the decimal values do not display.

Can confirm in 21w03a.

This is a issue with minecraft using BlockPositions (which are just pointing at a block, not a location) for the setBeamTarget method despite the fact that the EnderDragonRenderer class has a method for the same thing, which supports floats for coordinates, that points the closest end crystal to the closest ender dragon.

 

This bug limits end crystal usage by a lot, as only allowing whole numbered coordinates makes any sort of custom movement look very choppy.

Can confirm for 1.17.1 pre-release 1

Can confirm in 1.17.1.

DephoeX

(Unassigned)

Community Consensus

Entities

command, end_crystal, nbt-tags

1.15.2, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, ..., 21w03a, 21w11a, 1.17.1 Pre-release 1, 1.17.1, 1.20.4

Retrieved