Cannot specify server-supplied enchantments(EcoEnchants) in cits
RevengeLordOfMaj opened this issue ยท 32 comments
I am trying to use this with the EcoEnchants plugin, but items that have an enchant from the plugin applied don't seem to change their texture. Works fine with opti, and I'm not sure what other things break due to this.
Fixed in v0.6.0
I tested the charge enchantment cit from your pack and it worked on my end, Imma need to see some files if something isnt working.
looked at the charge one and it seemed to be working. Here's new log: https://pastebin.com/exh9d0bs
oh and here's the nbt for the helmet just in case: https://pastebin.com/ukRuRqks
Might be too much data for it to handle?
type=item
items=minecraft:netherite_helmet
nbt.display.Name=ipattern:*Crystalite*
oh and mb on the .properties one, the wildcards turned the name to italics
No problem, I saw that. Still without the {
in the pattern, it will try to add the vanilla anvil json wrapper to the pattern. so you'd have to use {*Crystalite*}
for it to apply for now.
sorry, where would the logs be? here's the pack:
MajPack.zip
Have the resourcepack enabled and upload the contents of .minecraft/logs/latest.log
to something like pastebin
I think you sent me the wrong resourcepack, it doesnt have minecraft:optifine/cit/zeldastuff/charge.properties
.
Also, the problem is that the client doesn't have the enchantments registered when the resourcepack is loaded, it'll take a little longer to fix(probably after I close #19)
ah, might have sent an older version, here:
MajPack.zip
and no rush, thanks for being willing to help :)
That's the problem I also opend an issue. That's cause ecoenchants change the way of naming the items
The issue here is this btw:
[22:02:31] [Worker-Main-10/ERROR]: Skipped CIT: Unknown enchantment minecraft:charge in MajPack -> minecraft:optifine/cit/zeldastuff/charge.properties
Also I tried to change the prefix to * CUSTOM NAME * but that's no fix so the only fix is removing ecoenchants. But that's not capable for me cause it's a payed plugin :D
@SirSebi
Thanks! Good to know the cause for #25, but also there is a different issue, I'll add compatibility for the custom enchantments supplied by the server but it means the client will do it blindly because it cant know what plugins are in the server.
I'll probably turn the enchantment load error into a warning and make the item check not go through the client's enchantments registry.
Actually, although that was one of the issues I had, I believe the main issue was something else. Any item that has a enchant from the plugin seems to not work at all, even if the texture is based off of the item's name, enchants supplied by the plugin revert items to their original texture. I apologize if this is under the same fix.
No its not @SirSebi
Yeah look at the issue I linked. It's because ecoenchants changes the data of the item from Name:'{"text":"CUSTOM MAME}' to Name:'{"extra":[{"text":"CUSTOM NAME"}],"text":""}'
because of that, the mod can't apply the cit
@RevengeLordOfMaj When checking the items it will use the client's registry to see if any enchantments match, I'll need to make it check the item's nbt for enchantments blindly without the client's registry
In line 270 it uses something from vanilla EnchantmentHelper
which works great if both the server and the client have the same registry, the mod just needs to avoid that because sometimes the server might have something else.
The issue here is this btw:
[22:02:31] [Worker-Main-10/ERROR]: Skipped CIT: Unknown enchantment minecraft:charge in MajPack -> minecraft:optifine/cit/zel
Apologies for this btw, while it is also a problem from similar origins, it is just a bit different from the one I just mentioned.
They'd be fixed together.
So in my case its also not the problem that ecoenchants changes the way of naming items?
No, I still believe that's a separate issue. I am not 100% sure that this plugin is the cause but something in your server caused the item you did the /data
on to have the extra json parts.
Here though it is very clearly about the custom enchantments themselves because the issue only happens with the enchants being present in the item.
Fixed the json name issue in v0.7.0