impulse mode for chomens server!!!!1111

This commit is contained in:
ChomeNS 2022-08-20 15:13:13 +07:00
parent c0c1857f24
commit 6c5c2713fa

View file

@ -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;
}