mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
11 lines
278 B
JavaScript
11 lines
278 B
JavaScript
|
|
function inject (bot) {
|
|
bot.position = { x: 0, y: 0, z: 0 }
|
|
bot._client.on('position', (position) => {
|
|
bot.position = position
|
|
bot.write('teleport_confirm', { teleportId: position.teleportId })
|
|
bot.emit('position', position)
|
|
})
|
|
}
|
|
|
|
module.exports = { inject }
|