Jump to content

[1.17.1] Register Advancements


steakmans

Recommended Posts

  • 2 weeks later...
On 8/26/2021 at 11:21 PM, steakmans said:

Hello,

I was searching of how to add achievements to my mod and almost found anything. So if someone can tell me what do I need to do to add advancement that would be very helpful.

The best tutorial is the vanilla source code! Advancements are data-driven, so you can add them via json files. To avoid having to manually create these json files, I would recommend using data generators! You can check out the AdvancementProvider class and for example the TheEndAdvancements class to see how to generate advancements json files.

If you just want to know more about the advancement json format the Minecraft wiki has a good article on 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.

Announcements



×
×
  • Create New...

Important Information

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