Data component format/lodestone tracker

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/lodestone tracker on the Minecraft Wiki. Mirrored from revision 3276926. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [NBT Compound / JSON Object] minecraft:lodestone_tracker: Stores information about the lodestone this compass should point toward. If present on a compass item, the base item name will be overridden as "Lodestone Compass". While tracked in a player's inventory, a compass with this component will do active polling to see if the position of its lodestone is loaded, and if it is and the lodestone has been destroyed then this component is removed.
      • [NBT Compound / JSON Object] target: Information about the lodestone. Optional. If not set, this compass spins randomly.
        • [Int Array] pos: The integer coordinates of the lodestone.
        • [String] dimension: The ID of the dimension of the lodestone.
      • [Boolean] tracked: If true, the component is removed when the lodestone is broken. If false, the component is kept. Defaults to true.

Sources