minecrafthawkeye
Version:
Minecraft bot for equations when shooting an arrow
18 lines (17 loc) • 666 B
TypeScript
import { Bot } from "mineflayer";
import { Entity } from 'prismarine-entity';
import { Vec3 } from "vec3";
import { HawkEye, HawkEyeEvents, OptionsMasterGrade, Projectil } from "./types";
export * from "./types";
declare module 'mineflayer' {
interface Bot {
hawkEye: HawkEye;
}
interface BotEvents extends HawkEyeEvents {
auto_shot_stopped: (target: Entity | OptionsMasterGrade) => void;
target_aiming_at_you: (entity: Entity, arrowTrajectory: Array<Vec3>) => void;
incoming_projectil: (projectil: Projectil, arrowTrajectory: Array<Vec3>) => void;
}
}
declare const inject: (bot: Bot) => void;
export default inject;