mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
/* eslint-disable require-jsdoc */
|
|
const Vec3 = require('vec3');
|
|
|
|
function inject(bot) {
|
|
bot.position = new Vec3(null, null, null);
|
|
|
|
bot._client.on('position', (position) => {
|
|
bot.position = new Vec3(position.x, position.y, position.z);
|
|
bot.write('teleport_confirm', {teleportId: position.teleportId});
|
|
});
|
|
}
|
|
|
|
module.exports = {inject};
|