Skip to content

Break blocks in Survival #15

Description

@lukesmith02
public void breakBlock(double rx, double ry, double rz) {
    final Position p = new Position((int) Math.floor(pos.x + rx), (int) Math.floor(pos.y + ry),
            (int) Math.floor(pos.z + rz));
    // PhaseBot.getConsole().println("Digging at: " + p.getX() + " " +
    // p.getY() + " " + p.getZ());
    client.getSession().send(new ClientPlayerActionPacket(PlayerAction.START_DIGGING, p, Face.TOP));
    swing();
    client.getSession().send(new ClientPlayerActionPacket(PlayerAction.FINISH_DIGGING, p, Face.TOP));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions