Angry Mobs

Angry Mobs

2M Downloads

[Suggestion]: Allow Projectiles to Use Data for Tipped Arrows and Potions

Darkosto opened this issue ยท 2 comments

commented

General Info

  • I would like to propose new content
  • I would like to propose changes
  • I would like to propose another thing

Suggestion Description

Hello MrBysco,

Would you be able to look into adding some additional methods and allow projectiles to be given data so we use any of the potions for entity projectile attacks? Currently, there is no method available to alter a generic potion or tipped arrow.

MC: 1.20.1
Forge: 47.3.0
UrFace: 1.0
Angry Mobs: 4.1.2

Thank you and have a great Christmas!

commented

I imagine the most extensible way would be to provide a second method that allows providing a MapData type. This data would be applied to every projectile the mob creates:

AITweaks.addProjectileAttackTweak(
  <entitytype:minecraft:zombie>, // EntityType mob
  <entitytype:minecraft:potion>, // EntityType projectile
  {Potion: "minecraft:long_weakness"}, // MapData projectileNBT
  "minecraft:entity.snowball.throw",
  2,
  1.0F,
  0.75F
);

Worth noting that I'm not super aware of how the entity summons these projectiles, so this may not be feasible

commented

What would be the ideal way to set that up? How would the user configure it?