illusivesoulworks / consecration

Minecraft Mod: Makes the undead more resilent except against fire and holy damage, and adds new features to help you slay them
https://www.curseforge.com/minecraft/mc-mods/consecration
Other
4 stars 5 forks source link

[Feature]: Iron's Spells 'n Spellbooks Compat #77

Open Niconoko opened 11 months ago

Niconoko commented 11 months ago

What is the new feature or improvement?

https://www.curseforge.com/minecraft/mc-mods/irons-spells-n-spellbooks The mod got holy spells and them seem to not work when shooting undead.

SiverDX commented 10 months ago

You do this by editing the config, example for 1.19.2:

Damage source: https://github.com/iron431/Irons-Spells-n-Spellbooks/blob/f9f259bae4b1c3514dfc7cad9c74c5001f3c901f/src/main/java/io/redspace/ironsspellbooks/spells/SpellType.java#L326

Config:

holyDamage = ["holy", "guiding_bolt_spell", "wisp_spell"]

For 1.20.x it seems to use school types https://github.com/iron431/Irons-Spells-n-Spellbooks/blob/49f6d7619d4a4ded27404e9606a405b32f91bb17/src/main/java/io/redspace/ironsspellbooks/datagen/DamageTypeTagGenerator.java#L18

betterworld-sjq commented 8 months ago

You do this by editing the config, example for 1.19.2:

Damage source: https://github.com/iron431/Irons-Spells-n-Spellbooks/blob/f9f259bae4b1c3514dfc7cad9c74c5001f3c901f/src/main/java/io/redspace/ironsspellbooks/spells/SpellType.java#L326

Config:

holyDamage = ["holy", "guiding_bolt_spell", "wisp_spell"]

For 1.20.x it seems to use school types https://github.com/iron431/Irons-Spells-n-Spellbooks/blob/49f6d7619d4a4ded27404e9606a405b32f91bb17/src/main/java/io/redspace/ironsspellbooks/datagen/DamageTypeTagGenerator.java#L18

Excuse me, I don't quite get it as to 1.20.x ones. I only find holyMaterials =["silver"] in config. And how to add Iron's spell things?

SiverDX commented 8 months ago

https://github.com/illusivesoulworks/consecration/blob/1.20.x/common/src/main/resources/data/consecration/tags/damage_type/holy.json

betterworld-sjq commented 8 months ago

https://github.com/illusivesoulworks/consecration/blob/1.20.x/common/src/main/resources/data/consecration/tags/damage_type/holy.json

I wrote like this { "replace": false, "values": ["consecration:holy", "irons_spellbooks:holy_magic", "holy_magic"] } But it didn't work

SiverDX commented 8 months ago

check your log, adding just "holy_magic" likely broke the tag because that value doesnt exist