Skip to content

Instantly share code, notes, and snippets.

@Mrbysco
Created April 29, 2022 23:12
Show Gist options
  • Save Mrbysco/371f6f7e49a3698c500887a7aeb6d670 to your computer and use it in GitHub Desktop.
Save Mrbysco/371f6f7e49a3698c500887a7aeb6d670 to your computer and use it in GitHub Desktop.
import mods.angrymobs.AITweaks;
//Makes Chickens attack back after being hurt
AITweaks.addHurtByTargetTweak(<entitytype:minecraft:chicken>, 1, true);
//Makes Chickens able to do melee damage (needed for any mob that normally doesn't attack anything)
AITweaks.addMeleeAttackTweak(<entitytype:minecraft:chicken>, 1, 1.0F, 1.0D, false);
//Makes Chickens shoot eggs at their target
AITweaks.addProjectileAttackTweak(<entitytype:minecraft:chicken>, <entitytype:minecraft:egg>, "minecraft:entity.egg.throw", 1, 1.0F, 1.0F);
//Makes Sheep attack back after being hurt
AITweaks.addHurtByTargetTweak(<entitytype:minecraft:sheep>, 1, true);
//Makes Sheep able to do melee damage (needed for any mob that normally doesn't attack anything)
AITweaks.addMeleeAttackTweak(<entitytype:minecraft:sheep>, 1, 1.0F, 1.0D, false);
//Makes Sheep jump at their target
AITweaks.addLeapTweak(<entitytype:minecraft:sheep>, 4, 0.7F);
//Makes Pigs able to do melee damage (needed for any mob that normally doesn't attack anything)
AITweaks.addMeleeAttackTweak(<entitytype:minecraft:pig>, 1, 1.0F, 1.0D, false);
//Makes Pigs attack players
AITweaks.addAttackNearestTweak(<entitytype:minecraft:pig>, <entitytype:minecraft:player>, 2, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment