Skip to content

Break blocks in Survival #15

@lukesmith02

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));

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions