PrimitiveShapeDataPayload
0NetworkIdvaruint64 · variable (up to 10 bytes)
1Shape Typeuint8 · 1 byte
2LocationVec3 · variable
3Scalefloat · 4 bytes
4RotationVec3 · variable
5Total Time Leftfloat · 4 bytes
6Maximum Render Distancefloat · 4 bytes
7ColorColor · variable
8Dimension IDDimensionType · variable
9Attached To Entity IDActorUniqueID · variable
10Extra Shape DataoneOf<null, ArrowDataPayload, TextDataPayload, BoxDataPayload, LineDataPayload, SphereDataPayload, CylinderDataPayload, PyramidDataPayload, EllipsoidDataPayload, ConeDataPayload> · variable
Fields
11 top-level fields- 0NetworkIduint64 network id used to identify the matching shape on the client as the serverCompression
varuint64 1Shape TypeoptionalByte representing the type of debug shape (Line, Box, Sphere, Circle, Text).Enum-as-ValueScriptModuleMinecraft::ScriptPrimitiveShapeTypeas
uint8- 0
Line - 1
Box - 2
Sphere - 3
Circle - 4
Text - 5
Arrow - 6
Cylinder - 7
Pyramid - 8
Ellipsoid - 9
Cone
- 0
8Dimension IDCurrently supported: (0 -> Overworld, 1 -> Nether, 2 -> The End, 3 -> Undefined)DimensionType
- 0valueCompression
varint32
9Attached To Entity IDoptionalRuntime ID of the entity this shape is attached to.ActorUniqueID
- 0Actor Unique IDCompression
varint64
10Extra Shape DataExtra payload (variant) holding data specific to the type of shape (such as text string for the text shape).
oneOf<null, ArrowDataPayload, TextDataPayload, BoxDataPayload, LineDataPayload, SphereDataPayload, CylinderDataPayload, PyramidDataPayload, EllipsoidDataPayload, ConeDataPayload>0Variant 0null1ArrowDataPayload
ArrowDataPayload2TextDataPayload
TextDataPayload- 0TextText (string) of the debug text shape.
string - 1UseRotationWhether to use specified rotation, otherwise faces camera.
boolean - 3LineGapHeightLine gap height for multiline text rendering.
float - 4DepthTestWhether other objects block seeing the text (false=like nametags,true=like signs).
boolean - 5ShowBackfaceWhether the backface of the background should be rendered.
boolean - 6ShowTextBackfaceWhether the backface of the text should be rendered.
boolean
3BoxDataPayload
BoxDataPayload4LineDataPayload
LineDataPayload5SphereDataPayload
SphereDataPayload- 0Num SegmentsNumber of segments used for the debug circle or sphere.
uint8
6CylinderDataPayload
CylinderDataPayload7PyramidDataPayload
PyramidDataPayload8EllipsoidDataPayload
EllipsoidDataPayload- 1Segments Per AxisNumber of segments per axis used for the debug ellipsoid.
uint8
Packet references
1 reference- PrimitiveShapesPacketArray of primitive shapes (can be a mix of new, updated or removed) › PrimitiveShapeDataPayload
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this type.
All builds
Changes between consecutive stable releases and preview builds.
- Released
- Protocol
- 2207
- Previous build
- 1.26.51
Changed 1
Dimension IDis now optional.