[Bug]: The Solution for Majrusz's Incompatible Enchantments
Herobrot opened this issue · 1 comments
Mod Loader (Required)
Fabric
Minecraft Version(s) (Required)
1.20.1
Mod Version(s) (Required)
v8.0.0
Notes (Required)
There are already several issues regarding this bug and related to other similar mods. The solution is simple: manually modify the json files created by the mod.
Why does it break?
Simple, because the mod takes the easy solution of applying to the Majrusz folder that the enchantment is for any item that can be broken:
“$minecraft:breakable”
This can cause conflicts, for example, with horse armor or enchantments that should only be for bows, shields, etc.
How exactly can this be solved?
Based on the references generated by the mod, the following IDs are available:
"$minecraft:armor", // Full Armor sets
"$minecraft:armor_head", // Armor head only
"$minecraft:armor_chest", // Armor chestplate only
"$minecraft:armor_legs", // Armor leggings only
"$minecraft:armor_feet", // Armor boots only
"$minecraft:universal_enchants_horse_armor" // All tiers for horse armor
"$minecraft:weapon", //All kinds of weapons (Swords, tridents, bows, crossbows)
"$minecraft:trident", //only tridents
"$minecraft:bow", // Bows only
"$minecraft:crossbow", //crossbows only
"$minecraft:digger", //all kinds of diggers (axes, hoes, shovels and pickaxe)
"$minecraft:universal_enchants_axe", //only axes
"$minecraft:universal_enchants_shield" //only shields
These are all the ones I could find. It is possible that other enchantment mods generate other types of IDs (for example, only for swords). But at the time of writing, I haven't found any.
Now, once you have identified which IDs correspond correctly to the mod and its configuration has been generated automatically, you can begin to modify it.
PS: If you are on a dedicated server, you need to restart the server for the configuration to be applied.
For example:
/config/universalenchants/majruszenchantments/death_wish.json
{
"schemaVersion": 2,
"items": [
"$minecraft:weapon"
],
"incompatible": [
"majruszsenchantments:incompatibility_curse"
]
}
At the beginning, it was like “$minecraft:breakable.” Now only the enchantment is applied for weapons only.
I've updated it, but I can't merge sharpness with misanthropy.
That's because you haven't removed the incompatibility in the sharpness.json file, where the enchantment ID will be with misantrophy.json. Once you remove it, these enchantments will be compatible.
Before:
{
"schemaVersion": 2,
"items": [
"$minecraft:weapon",
"$minecraft:universal_enchants_axe",
"$minecraft:trident"
],
"incompatible": [
"majruszsenchantments:incompatibility_curse",
"majruszsenchantments:misanthropy"
]
}
After:
{
"schemaVersion": 2,
"items": [
"$minecraft:weapon",
"$minecraft:universal_enchants_axe",
"$minecraft:trident"
],
"incompatible": [
"majruszsenchantments:incompatibility_curse"
]
}
Hope this helps to everyone. :)
latest.log (Required)
https://gist.github.com/Herobrot/7cb5cbfbf587f4c7ba73f34409c73709