Here, take this! It’s a great place to start from. It doesn’t have anything in it yet, but it has a good folder structure to start with for following along with this documentation, as well as a starter pack.mcmeta so you don’t forget that.
cobblemon-spawn-notification-starter-pack.zip
If you’re the sort that learns better by seeing examples, check out the code on GitHub, or check out my reviews on the existing data pieces here.
Also, here’s a list of the different types of things, where relevant
In order to add a new situation that will fire off a list of associated broadcasts, create a new JSON file in the /data/your_addon_name/notification/situation directory of your addon.
{
"triggers": [
"spawn_notification:captured"
],
"conditions": [
{
"type": "spawn_notification:matcher",
"matcher": [
"labels=legendary"
]
}
],
"otherSituations": [
"spawn_notification:special/captured"
]
}
triggersA list of triggers that are part of this situation. If the trigger for the current event context is included in this list, this situation will check its conditions, and if they match as well, it and its otherSituations will be added to the list of situations that have gone off in the current event context.
conditions