CERBON-MODS / CERBONs-Better-Totem-of-Undying

Improves Minecraft Totem of Undying by adding new features to it. Compatible with Curios/Trinkets API.
https://www.curseforge.com/minecraft/mc-mods/better-totem-of-undying
GNU General Public License v3.0
0 stars 0 forks source link

Blacklist death types #1

Closed Aceplante2 closed 1 year ago

Aceplante2 commented 1 year ago

I want the totem to only trigger from dying to damage, not starving. So a blacklist of deathtypes would be appreciated

CerbonXD commented 1 year ago

Do you mean using only specific damage types to trigger the totem? Or using specific damage types to not trigger the totem?

Aceplante2 commented 1 year ago

Either one. Having only specific types trigger it would be a whitelist, and having specific types not trigger it would be a blacklist. Perhaps have the option of both as many other mods have?

CerbonXD commented 1 year ago

Well, blacklisting is already possible. You just need to add the damage types you want to the bypasses_invulnerability tag using a datapack. It's located at minecraft\tags\damage_type\bypasses_invulnerability.json.

Would it work for you? Or whitelisting would be a better solution for what you need?

Aceplante2 commented 1 year ago

Can you provide an example of one that blacklists starving? I cant seem to find much

CerbonXD commented 1 year ago

You can use minecraft:starve.

This is how your Json file should look like:

{
  "replace": false,
  "values": [
    "minecraft:starve"
  ]
}
CerbonXD commented 1 year ago

I'm gonna close this issue. If you need further assistance about it, you can join my Discord server and I'll be happy to help you.