Astral Sorcery

Astral Sorcery

63M Downloads

Armara ritual breaks Botania mana spreaders.

davidgillen opened this issue ยท 3 comments

commented

Have logged a bug on the botania side too. VazkiiMods/Botania#2994

Version Information

Forge version: 8.0.99.99
Botania version: r1.10-362
Astral Sorcery: 1.10.20

Further Information

Create a Ritual Pedestal with an Armara attuned crystal. This causes a push back for mobs and arrows.
Within the radius of the ritual try to use mana spreaders.

What I expected to happen:
The mana spreaders send mana to where I link them.

What happened instead:
The Armara ritual causes the mana to be fired away and lost.

commented

That is because mana bursts are entities affected by knockback.

commented

a Interface that others could implement

exists. check the first line you referenced.

In other news mana bursts, the entities fired by the mana spreader, can be damaging with the correct lens. making them a potential harm to either players or other entities.

commented

They are EntityThrowable, so IProjectiles while your mod does change their motion

if(!e.isDead && !(e instanceof EntityTechnicalAmbient)) {
if(e instanceof IProjectile) {
double xRatio = (pos.getX() + 0.5) - e.posX;
double zRatio = (pos.getZ() + 0.5) - e.posZ;
float f = MathHelper.sqrt(xRatio * xRatio + zRatio * zRatio);
e.motionX /= 2.0D;
e.motionZ /= 2.0D;
e.motionX -= xRatio / f * 0.4;
e.motionZ -= zRatio / f * 0.4;
((IProjectile) e).shoot(e.motionX, e.motionY, e.motionZ, 1F, 0F);

So how about a configurable Blacklist for the Ritual or a Interface that others could implement to avoid their Entities to be affected by the Ritual?