Trying to add a tag to the Doggy Talents dog
Kaligraphy22 opened this issue ยท 3 comments
Hey there. So a mod called Farmer's Delight recently had a tag added called "dog_food_user" to their mod. It lets you give a tamed wolf some dog food so they can receive some temporary buffs. This works on a regular wolf, but not the Doggy Talents dog (ironically, the dog still tilts its head when you have the dog food in hand). I asked the mod author, how to go about this cause I thought it was config file kinda-thing. But they said tags are edited through datapacks so they pointed me to the wiki. I read that, some Youtube tutorials and got some help from the Minercaft Mod Development server. But see, I've never done anything like this. I've never touched JSON or any coding language so despite all the help, all I have are the folder paths, a pack.mcmeta file with the wiki's example in it. It's all very confusing.
A user from the discord server I went to told me to make a dog.json file and add "the entity types you want to add to the dog tag" but I'm honestly not sure what this is telling me to type or how to type it. I've looked at the Wiki again but since none of this is familiar. If you're willing, could you give me some help here? I don't absolutely need this datapack but I just thought it'd be nice to be able to use the food on the dog. I like to be able to use everything a mod has to offer so that's why I'm asking for help.
Hey, thanks for taking the time to create this issue and I'm sorry I didn't get round to resolving it. I've not worked on this project for a while and have decided to archive the git repository. Fear not, there is a fork https://github.com/DashieDev/DoggyTalentsNext which might be of interest. I don't expect to be back within the Minecraft community so farewell and happy mining!
I'm not too familiar but I think to add doggytalent's dog to the list of supported entities you would need create a datapack and add the JSON file data\farmersdelight\tags\entity_types\dog_food_users.json
...
{
"replace": false,
"values": [
"doggytalents:dog"
]
}
This will add the entity registered in the id doggytalents:dog
to the dog_food_users
tag. Though I assume this will mean that feeding the dog will directly heal it's health. Food only heals hunger points normally for dogs. But it's up to you, just not that farmers delight food and vanilla food will do different things
https://minecraft.fandom.com/wiki/Tag
data\farmersdelight\tags\entity_types\dog_food_users.json
It worked! I see the potion particle effects and everything! I don't have that one mod that gives you extra details on what potion effects a mob has (I use WAILA but I think I need the One Probe for that) but it's the same particle effects for a regular wolf so I'm calling this a win! Thank you so much! Like really, thank you! Hugs and everything! :)