Help with a multiple items condition for advancements

Started by CT Himself on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with a multiple items condition for advancements

I have a mod I'm making where you collect structure themed badges by crafting them with items from said structure (eg the nether fortress badge is created using nether wart, nether bricks, and a blaze rod). There's an achievement I am having trouble with though, and that's for collecting every badge. I have no clue how to create achievements that require you to have multiple different items to unlock

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could set up a logic…
Wed, 10/02/2024 - 22:35

You could set up a logic advancement for each badge the player gets. 

Logic advancements are super useful for a lot of reasons and are pretty easy to set up; just disable "Show toast when completed" and "Announce to chat when completed" and enable "Hide advancement display". This way, the advancement is invisible to the player and isn't even notified when the get it, but the game detects that the person has it.

Then set up a procedure with the "Player completes advancement" that checks if the player has all of the logic advancements for each badge via If-Then and AND blocks, and if the player does indeed have them all, then the real advancement is granted.

Hope that all makes sense. It should work, I had a really similar thing with my mod.