mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
impulse mode for chomens server!!!!1111
This commit is contained in:
parent
c0c1857f24
commit
6c5c2713fa
1 changed files with 10 additions and 10 deletions
|
@ -35,16 +35,16 @@ function inject(bot) {
|
|||
relativePosition.z = 0;
|
||||
}
|
||||
|
||||
bot.write('update_command_block', {
|
||||
location: {
|
||||
x: core.start.x + relativePosition.x,
|
||||
y: core.start.y + relativePosition.y,
|
||||
z: core.start.z + relativePosition.z,
|
||||
},
|
||||
command: command.substring(0, 32767),
|
||||
mode: 1,
|
||||
flags: 0b100,
|
||||
});
|
||||
const impulseMode = bot.options.host === 'mc.chomens41793.ga';
|
||||
|
||||
const location = {
|
||||
x: core.start.x + relativePosition.x,
|
||||
y: core.start.y + relativePosition.y,
|
||||
z: core.start.z + relativePosition.z,
|
||||
};
|
||||
|
||||
if (impulseMode) bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: 0, flags: 0});
|
||||
bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: impulseMode ? 2 : 1, flags: 0b100});
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue