#Adding custom waypoints to locator bar?

12 messages · Page 1 of 1 (latest)

wary flax
#

I'm trying to add waypoints to my client side mod and I thought it would be cool to take advanatge of the locator bar since I know theres built on logic for waypoints. I can't seem to find any documentation on how to go about that though. Is it possible?

obsidian zodiac
#

Yes, it's possible. There's no documentation - it's too new and niche for a volunteer to go through and document it all. You can look through the source though.

#

@wary flax

wary flax
#

like read the source code you mean? do you think theres fabric mappings to it and its not documented or id just have to figure it out with mixins?

obsidian zodiac
#

There's fabric mappings for it - it's very hard to find something unmapped unless it's a recent snapshot. It's not documented - most of mc isn't. Yes, you'd need mixins.

wary flax
obsidian zodiac
#

You'll need to be quite familiar with Java (or at least some object-oriented language) before you start modding. After that, you can start looking at the source for InGameHud and find what you need from there.

#

!!learnjava

proven lanternBOT
#

To start modding Minecraft using Fabric, it's strongly recommended to know Java.
Minecraft, in its codebase, and mods, using Fabric API, use more advanced Java concepts like lambdas, generics and polymorphism.
If you don't know all of these concepts, you may have some difficulties modding.

Here are some online resources that will help learning Java
JetBrains Academy (free online course): https://www.jetbrains.com/academy/
Codecademy (free online course): https://www.codecademy.com/learn/learn-java
University of Helsinki (free online course): https://java-programming.mooc.fi/
Basic Java Tutorials: https://docs.oracle.com/javase/tutorial/
Introduction to Programming using Java by David J. Eck (free online textbook): http://math.hws.edu/javanotes/

After Learning Java
For most mods you will want to make, you will have to use the Spongepowered Mixin Java library.
To learn more about Mixin, you can use the faq/mixin bot tag by typing !!faq/mixin in #bot-posting .

obsidian zodiac
#

!!tut reading_mc_code

proven lanternBOT
wary flax