Item format/Compasses

BlockSprite rose.png: Sprite image for rose in Minecraft
This page describes content that has been removed and was only present in earlier versions of Java Edition.
 
In Java Edition 1.20.5, this format has been replaced with the data component format.
    • [Byte] LodestoneTracked: Optional. 1 or 0 (true/false) - true if the compass is connected to a lodestone. When false, LodestoneDimension and LodestonePos is not automatically removed when the lodestone is destroyed, but the compass still points to that location.
    • [String] LodestoneDimension: Optional. The dimension of the lodestone to which the compass is pointing.
    • [NBT Compound / JSON Object] LodestonePos: Optional. The coordinates of the lodestone to which the compass is pointing.
      • [Int] X: x coordinate
      • [Int] Y: y coordinate
      • [Int] Z: z coordinate