Is it possible to make an advancement for dying in a specific way? (Forge 1.20.1 2023.3)

Started by HeroWither on

Topic category: Help with modding (Java Edition)

Last seen on 20:14, 28. Apr 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to make an advancement for dying in a specific way? (Forge 1.20.1 2023.3)

My mod adds a few new foods. One of the ingredients is edible, but doesn't fill hunger or saturation, it just does half a heart of damage. I added a custom death message, but I also want to do a challenge advancement for it. Is that possible? And if so, how?

Yes. You can trigger…
Tue, 12/26/2023 - 17:54

Yes. You can trigger advancement using procedures. Procedures allow you to detect arbitrarily specific way of death