Is it possible to grant an advancement upon entering a custom structure?

Started by Trinity Slasher on Wed, 10/14/2020 - 15:18

Topic category: Help with modding (Java Edition)

Last seen on 08:15, 15. Oct 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to grant an advancement upon entering a custom structure?
Wed, 10/14/2020 - 15:18

I'm making a mod that has a custom structure within a custom biome. I already have the advancement for entering the biome, but I want to know if it is possible to grant an advancement upon entering a structure, because I can't find any procedure blocks for it or even just a default thing on the dropdown on the advancement page. I'm using version 2020.4 so if anyone knows a solution that would be great.

Last seen on 11:11, 30. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Lock code of your…
Tue, 10/27/2020 - 18:29

Lock code of your advancement and replace its trigger code with:

"trigger": "minecraft:location",
"conditions": {
  "feature": "your_mod_id:your_structure_registry_name"
}