UNPKG

mineflayer-mouse

Version:

First-class **battle-tested** simple API for emulating real Minecraft mouse control in Mineflayer. You should use it for digging (mining) or placing blocks and entity attacking or using and using items!

9 lines (8 loc) 298 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBotEyeHeight = void 0; const getBotEyeHeight = (bot) => { // todo use bot.entity.eyeHeight when its not broken return bot.controlState.sneak ? 1.27 : 1.62; }; exports.getBotEyeHeight = getBotEyeHeight;