Data Packs Game Mechanic

Lodestone Waypoint | Teleport v2.0

  • 27 views
  • save_alt 2 downloads
Compatibility
Minecraft 1.13
to version
Minecraft 26.3 snapshot
Changes include
  • Advancements
  • Functions
  • 2
  • 1
AhmedTurysta
Lvl 5 • Apprentice Miner
0
How it works
- Detect placement: An advancement fires whenever a player places a lodestone, then resets itself so it can fire again.- Find the block: A function steps forward from the player's eyes in small increments until it hits the lodestone.- Create the waypoint: It summons an invisible, invulnerable marker armor stand at the center of that lodestone. The stand has the `waypoint_transmit_range` attribute, so it appears on the locator bar.- Style it: The waypoint is colored cyan, and a chime plays.- Avoid duplicates: No new stand is created if one already exists at that spot.- Clean up: Every second, a loop checks each waypoint stand. If its lodestone is gone, the stand is removed.- Auto start: The `load` function creates the scoreboard and starts the cleanup loop when the datapack loads or reloads.

More like this

  Have something to say?

Welcome