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.
In order to add a new food that will grant affection when fed to a Pokémon, create a new JSON file in the /data/friends_forever/feed_interaction directory of your addon.
{
"food": {
"item": "minecraft:bread"
},
"baseAffection": 10,
"flavors": [
{
"flavor": "DRY",
"strength": 1
}
]
}
Above is a demonstrative example, straight from the mod’s only current food (will be expanded in future versions, this was a midnight release lol).
foodAn entry made of a single ingredient or a list of acceptable ingredients. Can be one of an ID, a tag with #, or an array containing IDs.
baseAffectionThe base amount of affection this food grants when fed to a Pokémon.
This is used in combination with flavors as described in Pokémon gaining affection.
flavorsA list of flavors attributed to this food, each with a strength to go with them. The flavor must be one of the Pokémon flavors (SPICY, DRY, SWEET, BITTER, or SOUR). The strength is a proportion for that flavor’s effect on the food overall.
This is used in combination with baseAffection as described in Pokémon gaining affection.