Jump to content

[1.16.1] Using Advancements GUI


DavidQF555

Recommended Posts

I need to build a skill tree like gui, so I looked at the advancements, and realized that I might as well make it look the same because it has basically all the required functionality that I need. I want to use a different screen though because I feel no one really looks at the advancements screen and most the advancements are really useless. So I was just going to create advancements and add them to a custom AdvancementScreen. I'm pretty sure I just need to pass in a different ClientAdvancementManager with a different read() method into the Screen to make it work, but I'm confused how to specify which advancements to read. It seems that all the AdvancementManagers all just use the parameters in their read/apply methods, so where are these parameters passed in the first place? I just want to have a completely different AdvancementScreen with different tabs and also remove my custom Advancements from the vanilla one. I'm pretty sure the handling of completing advancements also requires the advancements to be registered/loaded, so I could not just not add my custom advancements' JSONs in the correct directory. I need to know where the read/apply methods get their parameters, which are just JSON elements, so that I could hopefully change them to only display the ones that I want. 

Link to comment
Share on other sites

2 hours ago, DavidQF555 said:

I need to build a skill tree like gui, so I looked at the advancements

I really wouldn't look at the advancements as a reference to a skill tree type thing. The system works completely different from that of skills.

2 hours ago, DavidQF555 said:

I'm pretty sure the handling of completing advancements also requires the advancements to be registered/loaded, so I could not just not add my custom advancements' JSONs in the correct directory.

Well yes, you can only have an advancement that's loaded into the game. But, you're also missing how advancements determine whether to unlock in this case. That's handled and stored somewhere completely different.

2 hours ago, DavidQF555 said:

I need to know where the read/apply methods get their parameters, which are just JSON elements, so that I could hopefully change them to only display the ones that I want. 

It grabs them from the files they are reading. Simple as that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Forge version: 49.0.3 Minecraft version: 1.20.4 Downloads: Downloads page Note that as this is the start of a new version, it is recommended that you check the downloads page and use the latest version to receive any bug fixes, as the first ever build of Forge for any MC version is usually buggy. Intro: The first build for Forge 1.20.4 has been released! It is based on 49.0.2 for 1.20.3, which reimplemented support for executable server jars and should improve compatibility with slow server hosts. The reason Forge uses the same major version as 1.20.3 is because the difference between 1.20.3 and 1.20.4 was a single line change by Mojang that fixed a data loss bug. All 1.20.3 mods should work in 1.20.4 and there is no reason to use 1.20.3 which came out a day or two earlier. If you find any issues, please let us know on the Discord. Sorry for the delay writing this post.
    • The command you need now in the run.bat is: java -jar -Djava.net.preferIPv6Addresses=system (forge jar filename).jar Yep, that's it. You don't need any of those super-long args anymore thanks to the simplified launch system in Forge 1.20.3+.
    • After more research I have found a program called jarfix. I used it and it fixed my issue. I'm not sure exactly what the issue was but this issue has been resolved.
    • Hello! I have recently purchased a new computer and cannot download Optifine or Forge. The issue I am having is that the Java program 'javaw.exe' does not seem to open .jar files for me. As far as I can tell, I cannot open .jar files at all. The trouble-shooting I have tried so far is that I have un-downloaded and re-downloaded Java and that has not fixed it. I have followed the pathway to 'open with->choose another app->choose an app on your pc->Program Files (x86)->Java->jre-1.8->bin. and from inside bin I have tried opening these programs with each and every java application in there assuming I may have been wrong about which one I need to use. Still no luck. From there I checked to make sure that Java was allowed through my firewall and have seen no instances of any application with Java in the name anywhere in the list of apps to let through fire wall. I'm unsure of what to try next, so I would absolutely love help figuring out why my computer is not letting me open .jar files. Specifically these ones that I know are meant to open as installers. Any ideas are appreciated. Thanks in advance!
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.