Data Packs Other

Compass Shows Y Level Datapack

  • Functions
  • 7,181 views • 1 today
  • 370 downloads • 0 today
  • 3
  • 4
  • 8
Firebug
Level 67 : High Grandmaster Vampire
90
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 pmApril 25, 2019 @ 10:43 pm UTC

  • Optimized altitude checking

  Have something to say?

Krazyman999
05/01/2019 1:52 am
Level 34 : Artisan System
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
Firebug
05/01/2019 2:39 am
Level 67 : High Grandmaster Vampire
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
Krazyman999
05/01/2019 3:52 am
Level 34 : Artisan System
The compass is in my inventory, not my hotbar or hand, and is working. That is on the default settings.
1
Firebug
05/01/2019 6:54 pm
Level 67 : High Grandmaster Vampire
Yeah I haven't made it for the "coords" (default) option. Might implement it in the future if enough people want it!
1
Black-Baron
05/11/2019 7:16 pm
Level 1 : New Miner
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
Firebug
05/13/2019 11:35 pm
Level 67 : High Grandmaster Vampire
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
1

Welcome