The Hordes

The Hordes

8M Downloads

[Possible Fix] Zombified Piglin doesn't implement Neutral Mob

AshnakAGQ opened this issue ยท 5 comments

commented

Your mixin of Zombified Piglin doesn't implement NeutralMob.
This may be why they are always hostile.

https://mappings.xhyrom.dev/1.20.1/net/minecraft/world/entity/monster/zombifiedpiglin

public abstract class MixinZombifiedPiglin extends Zombie {

commented

@SmileycorpMC Fixed the hostile zombie piglin bug and made a PR. Pinging just in case.

commented

Removing this mixin made the piglins no longer hostile, so this is my best guess on what is wrong with this.

commented

Adding
import net.minecraft.world.entity.NeutralMob;
to src/main/java/net/smileycorp/hordes/mixin/MixinZombifiedPiglin.java

and changing public abstract class MixinZombifiedPiglin extends Zombie {
to public abstract class MixinZombifiedPiglin extends Zombie implements NeutralMob{

Seems to have successfully allowed the config option to control their aggression level, but only if the config infectionEntitiesAggroConversion is also off.

commented

Managed to fix that other config too.

And I made a PR for the 1.20 branch.
#214

commented

Fixed in dbe4d41