Minecraft Data Packs / Game Mechanic

Compaxyz - XYZ Display for Your Compass

  • check_circle Functions
  • check_circle Predicates
  • 3,584 views, 11 today
  • 371 downloads, 2 today
  • 14
  • 9
  • 5
cooljpeg's Avatar cooljpeg
Level 14 : Journeyman Miner
2
hello! :+}

Compaxyz - XYZ Display for Your Compass Minecraft Data Pack

Compaxyz is a datapack i made to display XYZ coordinates whenever you hold a compass in either hand. this 1) makes it so you don't have to sift through the slog of the f3 menu just to see where you are, and 2) actually gives the compass a purpose.

here are the features:
  • displays your xyz coordinate when holding a compass in either hand (works in the Nether and the End too)
  • that's it
i have other features in mind for the future (maybe):
  • right-click to copy coords (don't even know if this is possible)
  • a way to change display color (maybe even right-clicking to change color? idk)
  • adding the feature to maps
i had some other ideas, but they seem a bit too bloated and gimmicky to lump into one lil' compass. i'm always open to suggestions and feedback though!

only works in 1.18.2 at the moment (but honestly, if you really want to use it on a previous version, just change the pack_format variable in "pack.mcmeta" to the one that pertains to your version).

and yes, it works in multiplayer too.

special thanks to the kind denizens of the Minecraft Commands discord server for helpin' me understand wtf i was doin'.

thanks for checkin' it out, and lemme know what'cha think! :+}
CompatibilityMinecraft 1.18
Tags

Create an account or sign in to comment.

jkf16m
06/23/2022 2:20 pm
Level 15 : Journeyman Miner
jkf16m's Avatar
really useful datapack, I'll download it.



I like using F3 for navigation but, it doesn't really help much when the screen is full of gibberish.



I think in bedrock edition, coords used to be while using the map, but It's okay if it's with the compass, for me it makes more sense.
1
Stantoncomet
05/20/2022 4:21 am
Level 44 : Master Engineer
Stantoncomet's Avatar
Really neat concept! I like the idea of being able to copy your coordinates, though I'm not sure either if that's possible. You could probably implement a feature to change the text color with another scoreboard and some execute if statements or something.
  To have the player right-click and have that happen wouldn't be possible without using something that has built-in right-click detection (like a carrot on a stick) and hooking it up to a scoreboard or plugins/mods. You could however have some sort of combination of things you need to do, but that wouldn't happen by accident like shift+right-click+offhand or something. Nice work!
2
cooljpeg
05/20/2022 12:55 pm
Level 14 : Journeyman Miner
cooljpeg's Avatar
Ahhh I never knew that about right-click detection, thank you! You gave me a neat idea at the end there; it'd be great to have a full swatch of colors to choose from, but honestly, for the somewhat frugal nature of this datapack, that seems about much (at least for right now).

The main issue the white text runs into is practically vanishing when in brighter areas (deserts, snowy mountains, etc). So maybe the solution could be to simply make the text white when holding it in your mainhand, and make the text black when it's in your offhand. I can see this being a little awkward and maybe annoying for those who want it always in their offhand, but I may play around with it and see what my personal server thinks. Thanks again for your sweet comment, it means a lot! :+}
2
Stantoncomet
05/26/2022 3:08 am
Level 44 : Master Engineer
Stantoncomet's Avatar
A thought just occurred that you could detect if the player is on sand or in a snow layer and change the color depending on that. It wouldn’t be a total fix (you could be standing on dirt in the desert or something and it wouldn’t change) but it might suit most cases. Hope this could help!
1
cooljpeg
05/28/2022 8:02 pm
Level 14 : Journeyman Miner
cooljpeg's Avatar
Woah, that's genius HAHA I wanna play around with that and just see where it goes, thanks so much!! :+D
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome