forked from chipmunkmc/chipmunkbot
chain -> impulse
This commit is contained in:
parent
0755e1b505
commit
27f2f14776
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class CommandCore extends SessionAdapter {
|
|||
final Vector3i relEnd = relativeArea.end();
|
||||
|
||||
final String command = String.format(
|
||||
"fill %s %s %s %s %s %s minecraft:chain_command_block",
|
||||
"fill %s %s %s %s %s %s minecraft:command_block",
|
||||
relStart.getX() + origin.getX(),
|
||||
relStart.getY() + origin.getY(),
|
||||
relStart.getZ() + origin.getZ(),
|
||||
|
@ -139,7 +139,7 @@ public class CommandCore extends SessionAdapter {
|
|||
final Vector3i currentBlock = currentBlockAbsolute();
|
||||
|
||||
// TODO: Support using repeating command blocks (on kaboom-like servers) (because less packets)
|
||||
session.send(new ServerboundSetCommandBlockPacket(currentBlock, "", CommandBlockMode.SEQUENCE, false, false, false));
|
||||
session.send(new ServerboundSetCommandBlockPacket(currentBlock, "", CommandBlockMode.REDSTONE, false, false, false));
|
||||
session.send(new ServerboundSetCommandBlockPacket(currentBlock, command, CommandBlockMode.REDSTONE, false, false, true));
|
||||
|
||||
incrementCurrentBlock();
|
||||
|
|
Loading…
Reference in a new issue