UNPKG

minecrafthawkeye

Version:

Minecraft bot for equations when shooting an arrow

13 lines (12 loc) 342 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.check = void 0; var _loadBot = require("./loadBot"); const check = (from, to) => { const range = from.distanceTo(to); const direction = to.minus(from); return _loadBot.bot.world.raycast(from, direction.normalize(), range); }; exports.check = check;