Java Code Examples for net.minecraft.util.math.Vec3d#rotateY()
The following examples show how to use
net.minecraft.util.math.Vec3d#rotateY() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Freecam.java From bleachhack-1.14 with GNU General Public License v3.0 | 6 votes |
@Subscribe public void onMovement(EventMovementTick event) { mc.player.setVelocity(0, 0, 0); camera.setVelocity(0, 0, 0); mc.player.setPosition(playerPos[0], playerPos[1], playerPos[2]); camera.yaw = mc.player.yaw; camera.headYaw = mc.player.headYaw; camera.pitch = mc.player.pitch; double speed = getSettings().get(0).toSlider().getValue(); Vec3d forward = new Vec3d(0, 0, speed * 2.5).rotateY(-(float) Math.toRadians(camera.headYaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); Vec3d motion = camera.getVelocity(); if (mc.options.keyJump.isPressed()) motion = motion.add(0, speed * 1.5, 0); if (mc.options.keySneak.isPressed()) motion = motion.add(0, -speed * 1.5, 0); if (mc.options.keyForward.isPressed()) motion = motion.add(forward.x, 0, forward.z); if (mc.options.keyBack.isPressed()) motion = motion.add(-forward.x, 0, -forward.z); if (mc.options.keyLeft.isPressed()) motion = motion.add(strafe.x, 0, strafe.z); if (mc.options.keyRight.isPressed()) motion = motion.add(-strafe.x, 0, -strafe.z); mc.player.networkHandler.sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.STOP_SNEAKING)); camera.setPosition(camera.x + motion.x, camera.y + motion.y, camera.z + motion.z); event.setCancelled(true); }
Example 2
Source File: Freecam.java From bleachhack-1.14 with GNU General Public License v3.0 | 6 votes |
@Subscribe public void onMovement(EventMovementTick event) { mc.player.setVelocity(0, 0, 0); camera.setVelocity(0, 0, 0); mc.player.setPos(playerPos[0], playerPos[1], playerPos[2]); camera.yaw = mc.player.yaw; camera.headYaw = mc.player.headYaw; camera.pitch = mc.player.pitch; double speed = getSettings().get(0).toSlider().getValue(); Vec3d forward = new Vec3d(0, 0, speed * 2.5).rotateY(-(float) Math.toRadians(camera.headYaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); Vec3d motion = camera.getVelocity(); if (mc.options.keyJump.isPressed()) motion = motion.add(0, speed * 1.5, 0); if (mc.options.keySneak.isPressed()) motion = motion.add(0, -speed * 1.5, 0); if (mc.options.keyForward.isPressed()) motion = motion.add(forward.x, 0, forward.z); if (mc.options.keyBack.isPressed()) motion = motion.add(-forward.x, 0, -forward.z); if (mc.options.keyLeft.isPressed()) motion = motion.add(strafe.x, 0, strafe.z); if (mc.options.keyRight.isPressed()) motion = motion.add(-strafe.x, 0, -strafe.z); mc.player.networkHandler.sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)); camera.setPos(camera.getX() + motion.x, camera.getY() + motion.y, camera.getZ() + motion.z); event.setCancelled(true); }
Example 3
Source File: Freecam.java From bleachhack-1.14 with GNU General Public License v3.0 | 6 votes |
@Subscribe public void onMovement(EventMovementTick event) { mc.player.setVelocity(0, 0, 0); camera.setVelocity(0, 0, 0); mc.player.setPos(playerPos[0], playerPos[1], playerPos[2]); camera.yaw = mc.player.yaw; camera.headYaw = mc.player.headYaw; camera.pitch = mc.player.pitch; double speed = getSettings().get(0).toSlider().getValue(); Vec3d forward = new Vec3d(0, 0, speed * 2.5).rotateY(-(float) Math.toRadians(camera.headYaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); Vec3d motion = camera.getVelocity(); if (mc.options.keyJump.isPressed()) motion = motion.add(0, speed * 1.5, 0); if (mc.options.keySneak.isPressed()) motion = motion.add(0, -speed * 1.5, 0); if (mc.options.keyForward.isPressed()) motion = motion.add(forward.x, 0, forward.z); if (mc.options.keyBack.isPressed()) motion = motion.add(-forward.x, 0, -forward.z); if (mc.options.keyLeft.isPressed()) motion = motion.add(strafe.x, 0, strafe.z); if (mc.options.keyRight.isPressed()) motion = motion.add(-strafe.x, 0, -strafe.z); mc.player.networkHandler.sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)); camera.setPos(camera.getX() + motion.x, camera.getY() + motion.y, camera.getZ() + motion.z); event.setCancelled(true); }
Example 4
Source File: Flight.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Subscribe public void onTick(EventTick event) { float speed = (float) getSettings().get(1).toSlider().getValue(); if (mc.player.age % 20 == 0 && getSettings().get(2).toMode().mode == 3 && !(getSettings().get(0).toMode().mode == 2)) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.x, mc.player.y - 0.06, mc.player.z, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.x, mc.player.y + 0.06, mc.player.z, true)); } if (getSettings().get(0).toMode().mode == 0) { mc.player.abilities.setFlySpeed(speed / 10); mc.player.abilities.allowFlying = true; mc.player.abilities.flying = true; } else if (getSettings().get(0).toMode().mode == 1) { if (getSettings().get(2).toMode().mode == 0 || getSettings().get(2).toMode().mode == 3) mc.player.setVelocity(0, 0, 0); else if (getSettings().get(2).toMode().mode == 1 && WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() - 0.069, mc.player.getPosVector().getZ())).getBlock())) mc.player.setVelocity(0, mc.player.age % 20 == 0 ? -0.069 : 0, 0); else if (getSettings().get(2).toMode().mode == 2) mc.player.setVelocity(0, mc.player.age % 40 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() + 1.15, mc.player.getPosVector().getZ())).getBlock()) ? 0.15 : 0) : mc.player.age % 20 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() - 0.15, mc.player.getPosVector().getZ())).getBlock()) ? -0.15 : 0) : 0, 0); Vec3d forward = new Vec3d(0, 0, speed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyJump.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, speed, 0)); if (mc.options.keySneak.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, -speed, 0)); if (mc.options.keyBack.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-forward.x, 0, -forward.z)); if (mc.options.keyForward.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(forward.x, 0, forward.z)); if (mc.options.keyLeft.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(strafe.x, 0, strafe.z)); if (mc.options.keyRight.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-strafe.x, 0, -strafe.z)); } else if (getSettings().get(0).toMode().mode == 2) { if (!mc.options.keyJump.isPressed()) return; mc.player.setVelocity(mc.player.getVelocity().x, speed / 3, mc.player.getVelocity().z); } }
Example 5
Source File: PacketFly.java From bleachhack-1.14 with GNU General Public License v3.0 | 4 votes |
@Subscribe public void onTick(EventTick event) { double hspeed = getSettings().get(1).toSlider().getValue(); double vspeed = getSettings().get(2).toSlider().getValue(); if (!mc.player.isAlive()) return; timer++; Entity target = mc.player.getVehicle() == null ? mc.player : mc.player.getVehicle(); if (getSettings().get(0).toMode().mode == 0) { if (mc.options.keyJump.isPressed()) posY += vspeed; if (mc.options.keySneak.isPressed()) posY -= vspeed; Vec3d forward = new Vec3d(0,0,hspeed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyForward.isPressed()) { posX += forward.x; posZ += forward.z; } if (mc.options.keyBack.isPressed()) { posX -= forward.x; posZ -= forward.z; } if (mc.options.keyLeft.isPressed()) { posX += strafe.x; posZ += strafe.z; } if (mc.options.keyRight.isPressed()) { posX -= strafe.x; posZ -= strafe.z; } if (timer > getSettings().get(3).toSlider().getValue()) { posY -= 0.2; timer = 0; } target.noClip = true; target.setPositionAnglesAndUpdate(posX, posY, posZ, mc.player.yaw, mc.player.pitch); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY, posZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY - 0.01, posZ, true)); mc.player.networkHandler.sendPacket(new TeleportConfirmC2SPacket(timer)); } else if (getSettings().get(0).toMode().mode == 1) { double mX = 0; double mY = 0; double mZ = 0; if (mc.player.headYaw != mc.player.yaw) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookOnly( mc.player.headYaw, mc.player.pitch, mc.player.onGround)); return; } if (mc.options.keyJump.isPressed()) mY = 0.062; if (mc.options.keySneak.isPressed()) mY = -0.062; if (mc.options.keyForward.isPressed()) { if (mc.player.getMovementDirection().equals(Direction.NORTH)) mZ = -0.275; if (mc.player.getMovementDirection().equals(Direction.EAST)) mX = 0.275; if (mc.player.getMovementDirection().equals(Direction.SOUTH)) mZ = 0.275; if (mc.player.getMovementDirection().equals(Direction.WEST)) mX = -0.275; } if (timer > getSettings().get(3).toSlider().getValue()) { mX = 0; mZ = 0; mY = -0.062; timer = 0; } mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.x + mX, mc.player.y + mY, mc.player.z + mZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.x + mX, mc.player.y - 420.69, mc.player.z + mZ, true)); } }
Example 6
Source File: Flight.java From bleachhack-1.14 with GNU General Public License v3.0 | 4 votes |
@Subscribe public void onTick(EventTick event) { float speed = (float) getSettings().get(1).toSlider().getValue(); if (mc.player.age % 20 == 0 && getSettings().get(2).toMode().mode == 3 && !(getSettings().get(0).toMode().mode == 2)) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.getX(), mc.player.getY() - 0.06, mc.player.getZ(), false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.getX(), mc.player.getZ() + 0.06, mc.player.getZ(), true)); } if (getSettings().get(0).toMode().mode == 0) { mc.player.abilities.setFlySpeed(speed / 10); mc.player.abilities.allowFlying = true; mc.player.abilities.flying = true; } else if (getSettings().get(0).toMode().mode == 1) { if (getSettings().get(2).toMode().mode == 0 || getSettings().get(2).toMode().mode == 3) mc.player.setVelocity(0, 0, 0); else if (getSettings().get(2).toMode().mode == 1 && WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() - 0.069, mc.player.getPosVector().getZ())).getBlock())) mc.player.setVelocity(0, mc.player.age % 20 == 0 ? -0.069 : 0, 0); else if (getSettings().get(2).toMode().mode == 2) mc.player.setVelocity(0, mc.player.age % 40 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() + 1.15, mc.player.getPosVector().getZ())).getBlock()) ? 0.15 : 0) : mc.player.age % 20 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPosVector().getX(), mc.player.getPosVector().getY() - 0.15, mc.player.getPosVector().getZ())).getBlock()) ? -0.15 : 0) : 0, 0); Vec3d forward = new Vec3d(0, 0, speed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyJump.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, speed, 0)); if (mc.options.keySneak.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, -speed, 0)); if (mc.options.keyBack.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-forward.x, 0, -forward.z)); if (mc.options.keyForward.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(forward.x, 0, forward.z)); if (mc.options.keyLeft.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(strafe.x, 0, strafe.z)); if (mc.options.keyRight.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-strafe.x, 0, -strafe.z)); } else if (getSettings().get(0).toMode().mode == 2) { if (!mc.options.keyJump.isPressed()) return; mc.player.setVelocity(mc.player.getVelocity().x, speed / 3, mc.player.getVelocity().z); } }
Example 7
Source File: PacketFly.java From bleachhack-1.14 with GNU General Public License v3.0 | 1 votes |
@Subscribe public void onTick(EventTick event) { double hspeed = getSettings().get(1).toSlider().getValue(); double vspeed = getSettings().get(2).toSlider().getValue(); if (!mc.player.isAlive()) return; timer++; Entity target = mc.player.getVehicle() == null ? mc.player : mc.player.getVehicle(); if (getSettings().get(0).toMode().mode == 0) { if (mc.options.keyJump.isPressed()) posY += vspeed; if (mc.options.keySneak.isPressed()) posY -= vspeed; Vec3d forward = new Vec3d(0,0,hspeed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyForward.isPressed()) { posX += forward.x; posZ += forward.z; } if (mc.options.keyBack.isPressed()) { posX -= forward.x; posZ -= forward.z; } if (mc.options.keyLeft.isPressed()) { posX += strafe.x; posZ += strafe.z; } if (mc.options.keyRight.isPressed()) { posX -= strafe.x; posZ -= strafe.z; } if (timer > getSettings().get(3).toSlider().getValue()) { posY -= 0.2; timer = 0; } target.noClip = true; target.updatePositionAndAngles(posX, posY, posZ, mc.player.yaw, mc.player.pitch); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY, posZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY - 0.01, posZ, true)); mc.player.networkHandler.sendPacket(new TeleportConfirmC2SPacket(timer)); } else if (getSettings().get(0).toMode().mode == 1) { double mX = 0; double mY = 0; double mZ = 0; if (mc.player.headYaw != mc.player.yaw) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookOnly( mc.player.headYaw, mc.player.pitch, mc.player.isOnGround())); return; } if (mc.options.keyJump.isPressed()) mY = 0.062; if (mc.options.keySneak.isPressed()) mY = -0.062; if (mc.options.keyForward.isPressed()) { if (mc.player.getMovementDirection().equals(Direction.NORTH)) mZ = -0.275; if (mc.player.getMovementDirection().equals(Direction.EAST)) mX = 0.275; if (mc.player.getMovementDirection().equals(Direction.SOUTH)) mZ = 0.275; if (mc.player.getMovementDirection().equals(Direction.WEST)) mX = -0.275; } if (timer > getSettings().get(3).toSlider().getValue()) { mX = 0; mZ = 0; mY = -0.062; timer = 0; } mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.getX() + mX, mc.player.getY() + mY, mc.player.getZ() + mZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.getX() + mX, mc.player.getY() - 420.69, mc.player.getZ() + mZ, true)); } }
Example 8
Source File: Flight.java From bleachhack-1.14 with GNU General Public License v3.0 | votes |
@Subscribe public void onTick(EventTick event) { float speed = (float) getSettings().get(1).toSlider().getValue(); if (mc.player.age % 20 == 0 && getSettings().get(2).toMode().mode == 3 && !(getSettings().get(0).toMode().mode == 2)) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.getX(), mc.player.getY() - 0.06, mc.player.getZ(), false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(mc.player.getX(), mc.player.getZ() + 0.06, mc.player.getZ(), true)); } if (getSettings().get(0).toMode().mode == 0) { mc.player.abilities.setFlySpeed(speed / 10); mc.player.abilities.allowFlying = true; mc.player.abilities.flying = true; } else if (getSettings().get(0).toMode().mode == 1) { if (getSettings().get(2).toMode().mode == 0 || getSettings().get(2).toMode().mode == 3) mc.player.setVelocity(0, 0, 0); else if (getSettings().get(2).toMode().mode == 1 && WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPos().getX(), mc.player.getPos().getY() - 0.069, mc.player.getPos().getZ())).getBlock())) mc.player.setVelocity(0, mc.player.age % 20 == 0 ? -0.069 : 0, 0); else if (getSettings().get(2).toMode().mode == 2) mc.player.setVelocity(0, mc.player.age % 40 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPos().getX(), mc.player.getPos().getY() + 1.15, mc.player.getPos().getZ())).getBlock()) ? 0.15 : 0) : mc.player.age % 20 == 0 ? (WorldUtils.NONSOLID_BLOCKS.contains(mc.world.getBlockState(new BlockPos(mc.player.getPos().getX(), mc.player.getPos().getY() - 0.15, mc.player.getPos().getZ())).getBlock()) ? -0.15 : 0) : 0, 0); Vec3d forward = new Vec3d(0, 0, speed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyJump.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, speed, 0)); if (mc.options.keySneak.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(0, -speed, 0)); if (mc.options.keyBack.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-forward.x, 0, -forward.z)); if (mc.options.keyForward.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(forward.x, 0, forward.z)); if (mc.options.keyLeft.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(strafe.x, 0, strafe.z)); if (mc.options.keyRight.isPressed()) mc.player.setVelocity(mc.player.getVelocity().add(-strafe.x, 0, -strafe.z)); } else if (getSettings().get(0).toMode().mode == 2) { if (!mc.options.keyJump.isPressed()) return; mc.player.setVelocity(mc.player.getVelocity().x, speed / 3, mc.player.getVelocity().z); } }
Example 9
Source File: PacketFly.java From bleachhack-1.14 with GNU General Public License v3.0 | votes |
@Subscribe public void onTick(EventTick event) { double hspeed = getSettings().get(1).toSlider().getValue(); double vspeed = getSettings().get(2).toSlider().getValue(); if (!mc.player.isAlive()) return; timer++; Entity target = mc.player.getVehicle() == null ? mc.player : mc.player.getVehicle(); if (getSettings().get(0).toMode().mode == 0) { if (mc.options.keyJump.isPressed()) posY += vspeed; if (mc.options.keySneak.isPressed()) posY -= vspeed; Vec3d forward = new Vec3d(0,0,hspeed).rotateY(-(float) Math.toRadians(mc.player.yaw)); Vec3d strafe = forward.rotateY((float) Math.toRadians(90)); if (mc.options.keyForward.isPressed()) { posX += forward.x; posZ += forward.z; } if (mc.options.keyBack.isPressed()) { posX -= forward.x; posZ -= forward.z; } if (mc.options.keyLeft.isPressed()) { posX += strafe.x; posZ += strafe.z; } if (mc.options.keyRight.isPressed()) { posX -= strafe.x; posZ -= strafe.z; } if (timer > getSettings().get(3).toSlider().getValue()) { posY -= 0.2; timer = 0; } target.noClip = true; target.updatePositionAndAngles(posX, posY, posZ, mc.player.yaw, mc.player.pitch); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY, posZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly(posX, posY - 0.01, posZ, true)); mc.player.networkHandler.sendPacket(new TeleportConfirmC2SPacket(timer)); } else if (getSettings().get(0).toMode().mode == 1) { double mX = 0; double mY = 0; double mZ = 0; if (mc.player.headYaw != mc.player.yaw) { mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookOnly( mc.player.headYaw, mc.player.pitch, mc.player.onGround)); return; } if (mc.options.keyJump.isPressed()) mY = 0.062; if (mc.options.keySneak.isPressed()) mY = -0.062; if (mc.options.keyForward.isPressed()) { if (mc.player.getMovementDirection().equals(Direction.NORTH)) mZ = -0.275; if (mc.player.getMovementDirection().equals(Direction.EAST)) mX = 0.275; if (mc.player.getMovementDirection().equals(Direction.SOUTH)) mZ = 0.275; if (mc.player.getMovementDirection().equals(Direction.WEST)) mX = -0.275; } if (timer > getSettings().get(3).toSlider().getValue()) { mX = 0; mZ = 0; mY = -0.062; timer = 0; } mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.getX() + mX, mc.player.getY() + mY, mc.player.getZ() + mZ, false)); mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionOnly( mc.player.getX() + mX, mc.player.getY() - 420.69, mc.player.getZ() + mZ, true)); } }