Did more work on the Ritual Reader. Fixed issue with the Ritual Diviner cycling its direction when you right click on the MRS.
This commit is contained in:
parent
057a951732
commit
9fe525b74b
10 changed files with 148 additions and 16 deletions
|
@ -46,7 +46,9 @@ public class RitualContainment extends Ritual
|
|||
double yDif = entity.posY - masterRitualStone.getBlockPos().getY() + 3;
|
||||
double zDif = entity.posZ - masterRitualStone.getBlockPos().getZ() + 0.5;
|
||||
|
||||
entity.setVelocity(-0.05 * xDif, -0.05 * yDif, -0.05 * zDif);
|
||||
entity.motionX = -0.05 * xDif;
|
||||
entity.motionY = -0.05 * yDif;
|
||||
entity.motionZ = -0.05 * zDif;
|
||||
entity.fallDistance = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,9 @@ public class RitualInterdiction extends Ritual
|
|||
double yDif = entity.posY - masterRitualStone.getBlockPos().getY() + 1;
|
||||
double zDif = entity.posZ - masterRitualStone.getBlockPos().getZ();
|
||||
|
||||
entity.setVelocity(0.1 * xDif, 0.1 * yDif, 0.1 * zDif);
|
||||
entity.motionX = 0.1 * xDif;
|
||||
entity.motionY = 0.1 * yDif;
|
||||
entity.motionZ = 0.1 * zDif;
|
||||
entity.fallDistance = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,19 +51,27 @@ public class RitualSpeed extends Ritual
|
|||
switch (direction)
|
||||
{
|
||||
case NORTH:
|
||||
entity.setVelocity(0, motionY, -speed);
|
||||
entity.motionX = 0;
|
||||
entity.motionY = motionY;
|
||||
entity.motionZ = -speed;
|
||||
break;
|
||||
|
||||
case SOUTH:
|
||||
entity.setVelocity(0, motionY, speed);
|
||||
entity.motionX = 0;
|
||||
entity.motionY = motionY;
|
||||
entity.motionZ = speed;
|
||||
break;
|
||||
|
||||
case WEST:
|
||||
entity.setVelocity(-speed, motionY, 0);
|
||||
entity.motionX = -speed;
|
||||
entity.motionY = motionY;
|
||||
entity.motionZ = 0;
|
||||
break;
|
||||
|
||||
case EAST:
|
||||
entity.setVelocity(speed, motionY, 0);
|
||||
entity.motionX = speed;
|
||||
entity.motionY = motionY;
|
||||
entity.motionZ = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -90,7 +98,7 @@ public class RitualSpeed extends Ritual
|
|||
this.addRune(components, 0, 0, -2, EnumRuneType.DUSK);
|
||||
this.addRune(components, 1, 0, -1, EnumRuneType.AIR);
|
||||
this.addRune(components, -1, 0, -1, EnumRuneType.AIR);
|
||||
for (int i = 0; i < 2; i++)
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
this.addRune(components, 2, 0, i, EnumRuneType.AIR);
|
||||
this.addRune(components, -2, 0, i, EnumRuneType.AIR);
|
||||
|
|
|
@ -18,6 +18,7 @@ public class RitualWater extends Ritual
|
|||
{
|
||||
super("ritualWater", 0, 500, "ritual." + Constants.Mod.MODID + ".waterRitual");
|
||||
addBlockRange(WATER_RANGE, new AreaDescriptor.Rectangle(new BlockPos(0, 1, 0), 1));
|
||||
setMaximumVolumeAndDistanceOfRange(WATER_RANGE, 9, 3, 3);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue