Minecraft Data Packs / Other

Compass Shows Y Level Datapack

  • check_circle Functions
  • 6,856 views, 2 today
  • 365 downloads, 0 today
  • 3
  • 3
  • 8
Firebug's Avatar Firebug
Level 67 : High Grandmaster Vampire
88
Notice the graphic near the hotbar in each picture.

Be able to tell what y level you are at in almost real time with the compass! There are 3 options for what visual you want or if you want it to only work while holding the compass in your hand. Choosing which option is described in the included instructions file. This is multiplayer compatible. I'm open to suggestions for improvements.
CreditRegularPapa on the mcforums for posting a similar topic which was helpful for /title syntax, and u/Crafty-Adventurer on Reddit for the idea
CompatibilityMinecraft 1.14
Tags

1 Update Logs

Version 1.0.1 : by Firebug 04/25/2019 6:43:21 pmApr 25th, 2019

  • Optimized altitude checking

Create an account or sign in to comment.

1
05/01/2019 1:52 am
Level 32 : Artisan Engineer
Krazyman999
Krazyman999's Avatar
Feature requests...
1. Y level only displays when compass in hotbar
2. Y level only displays when compass in hand

Read me update... its missing which file to alter, to change the functions... I worked it out eventually, its the LOOP file.


Sorry if the features are already in, I don't think they are. But I am not a programmer. :)
1
05/01/2019 2:39 am
Level 67 : High Grandmaster Vampire
Firebug
Firebug's Avatar
The "item" option actually only works when the compass is in your hand, which is the main difference between "item" and "title." I should make this more apparent, sorry.
And you're right. I changed some files around and it is now "loop" that needs to be changed, but I never changed the instructions file.
1
05/01/2019 3:52 am
Level 32 : Artisan Engineer
Krazyman999
Krazyman999's Avatar
The compass is in my inventory, not my hotbar or hand, and is working. That is on the default settings.
1
05/01/2019 6:54 pm
Level 67 : High Grandmaster Vampire
Firebug
Firebug's Avatar
Yeah I haven't made it for the "coords" (default) option. Might implement it in the future if enough people want it!
1
05/11/2019 7:16 pm
Level 1 : New Miner
Black-Baron
Black-Baron's Avatar
A version of the coords that acts like item would be great, I'm sifting through the code in the meantime to see if I can reverse engineer it unless you can release a version with that option officially. Would be much appreciated even though your mod currently is as is!

Edit: Figured it out myself but I'm sure others would appreciate an official release even if they aren't voicing it!
1
05/13/2019 11:35 pm
Level 67 : High Grandmaster Vampire
Firebug
Firebug's Avatar
Glad you figured it out! I've looked into it a bit and it looks like the easiest way is to edit the first line in loop.mcfunction to say:
execute if entity @a[nbt={SelectedItem:{id:"minecraft:compass",Count:1b}}] run function depthometer:coords
I'll add this officially when I next have time
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome