📄️ Using Armor
You can equip or unequip armor by passing an Item and Destination. (Destinations: head, torso, legs, feet)
📄️ Attack Entities
The basic method for attacking an entity is bot.attack(entity)
📄️ Breaking Blocks
Targeting Blocks
📄️ Placing Blocks
Targeting Blocks
📄️ Using Buckets
When using buckets the basic function is looking at the target block and using bot.activateItem(). You can find lava and water by position bot.blockAt(vec3) and by locating the block using bot.findBlock({ matching: bot.registry.blocksByName['lava'].id })
📄️ Cuboid Mining
I created a tool for defining a cuboid to make it easier to define and interact with a cuboid region. You'll need to use vec3 aswell.
📄️ onMsaCode
You can set the function onMsaCode in mineflayer.createBot to grab the data needed for authenticating a new Microsoft account. This includes the link, code, expiration, and other data for the authentication.