forked from chipmunkmc/chipmunkbot
Fix the command block id
This commit is contained in:
parent
c5920767a8
commit
b5f1a29d89
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ public class CommandCore extends SessionAdapter {
|
||||||
// client.chat().command(command);
|
// client.chat().command(command);
|
||||||
|
|
||||||
final Session session = client.session();
|
final Session session = client.session();
|
||||||
session.send(new ServerboundSetCreativeModeSlotPacket(45, new ItemStack(371 /* command_block */, 1, itemTag)));
|
session.send(new ServerboundSetCreativeModeSlotPacket(45, new ItemStack(373 /* command_block */, 1, itemTag)));
|
||||||
session.send(new ServerboundPlayerActionPacket(PlayerAction.START_DIGGING, temporaryBlockPosition, Direction.NORTH, 0));
|
session.send(new ServerboundPlayerActionPacket(PlayerAction.START_DIGGING, temporaryBlockPosition, Direction.NORTH, 0));
|
||||||
session.send(new ServerboundUseItemOnPacket(temporaryBlockPosition, Direction.NORTH, Hand.OFF_HAND, 0.5f, 0.5f, 0.5f, false, 0));
|
session.send(new ServerboundUseItemOnPacket(temporaryBlockPosition, Direction.NORTH, Hand.OFF_HAND, 0.5f, 0.5f, 0.5f, false, 0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue