Improved Mobs (Fabric)

Improved Mobs (Fabric)

50k Downloads

Multiple enchanting feature with "guardvillagers" mod.

rtxyd opened this issue ยท 0 comments

commented

Issue (The better the description the better i can solve the issue):

When "improvedmobs" installed with "guardvillagers", following features work:
1, the villager can be given a weapon by player to converting into guard (shift + right click), the weapon will reserve attributes.
2, and the "improvedmobs" have chance to enchant mobs' weapon when they spawn.
3, add "guard" mobs into the blacklist in config will not turn off the enchanting on them when they spawn with weapon which is not added by "improvedmobs" (the mod seems not consider this situation ).
4, player is able to kill the guard to regain the modified weapon, then giving the weapon to another villager to get double modification. The modification could be overpowered, like triple Sharpness V enchantments.

So the problem is, if I turn off the enchanting feature, all mobs will not be enchanted, but if I don't turn off it, the guard can be a media to produce free overpowered weapons.

Steps to reproduce:

/*
1, turn the enchanting chance to 100% in config of "improvedmobs", and add "guardvillagers:gurad" into the blacklist. (or not 100%, so need to try many times. Or not blacklist, so the guard may spawn with armors that also drops , but this can be turned off)
*/
2, spawn a villager.
3, shift + right click the villager with a sword or enchanted sword.
4, the villager converting into guard (if it's survival mode, the weapon will consume).
5, kill it, the weapon drops.
6, if the unenchanted sword get enchanted, or the enchanted sword get doubled enchanted, this is the very issue.
7, then you can give the weapon to another villager and kill it again to get multiple overpowered enchanting.

Affected Versions (Latest is NOT a version):

  • Minecraft:1.16.5
  • Forge:1.16.5-forge-36.1.4
  • TenshiLib:TenshiLib-1.16.3-1.3.0
  • ImprovedMobs:improvedmobs-1.16.4-1.7.6

Other Mods (If you think it might be cause of an incompability. Adding a link + the used version will help greatly):

https://www.curseforge.com/minecraft/mc-mods/guard-villagers

version: guardvillagers-1.16.5.1.2.4

Logs (Use a site like pastebin, gist etc. DONT COPY PASTE THE LOG IN HERE):