diff --git a/plugins/core.js b/plugins/core.js index 2a830cb..e9530f8 100644 --- a/plugins/core.js +++ b/plugins/core.js @@ -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; }