Lupicus / SaveYourPets

Save Your Pets for Minecraft
https://www.curseforge.com/minecraft/mc-mods/save-your-pets
MIT License
0 stars 2 forks source link

[Enhancement] Adding a configurable whitelist of pets that can be revived, for use with modded pets. #1

Open Corvus20 opened 3 years ago

Corvus20 commented 3 years ago

I mean, the title says it all. People want to be able to revive their dragons, foxhounds, etc., but no pet revive mods seem to do that as of the time of writing this. I think that if you were to implement this, it would definitely put you a notch above the other mods in this niche.

Mechalith commented 3 years ago

Would it be possible to have the mod check for the Owner NBT attribute and execute it's death prevention functions on anything where that tag !=null? That should (I would think) allow you to keep people's pets alive without needing to base the response on a particular critter, and allow mod support without manually coding for each new pet.

Edit: corrected myself, OwnerUUID has been changed to just Owner according to the 1.16 release notes. Same general idea applies regardless.

Corvus20 commented 3 years ago

I am not quite sure. I have literally zero modding knowledge lol. Some sort of "revival tag" item to put on any pet would probably be the best way to do it. The player just right clicks the pet with the item and then they are able to be revived when downed?

Corvus20 commented 3 years ago

This issue has been quiet but still open for a while. Is this added, not possible, wip, etc.?