PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.92k stars 904 forks source link

type of attck method is losing swing #3231

Open Ah-Zheng opened 10 months ago

Ah-Zheng commented 10 months ago

Versions

Detailed description of a problem

I use TypeScript to develop an auto attack bot. I want my bot not swing his arm. But the type is losing swing attribute

attack: (entity: Entity, swing: boolean) => Promise<void>

extremeheat commented 9 months ago

Can you clarify the problem? If the type is incorrect and it's breaking TypeScript, you can open a PR to fix it.