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