mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 17:45:34 -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;
|
relativePosition.z = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bot.write('update_command_block', {
|
const impulseMode = bot.options.host === 'mc.chomens41793.ga';
|
||||||
location: {
|
|
||||||
|
const location = {
|
||||||
x: core.start.x + relativePosition.x,
|
x: core.start.x + relativePosition.x,
|
||||||
y: core.start.y + relativePosition.y,
|
y: core.start.y + relativePosition.y,
|
||||||
z: core.start.z + relativePosition.z,
|
z: core.start.z + relativePosition.z,
|
||||||
},
|
};
|
||||||
command: command.substring(0, 32767),
|
|
||||||
mode: 1,
|
if (impulseMode) bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: 0, flags: 0});
|
||||||
flags: 0b100,
|
bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: impulseMode ? 2 : 1, flags: 0b100});
|
||||||
});
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue