Skip to content

Pix3lPirat3/mineflayer-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mineflayer-snippets

A collection of snippets for Mineflayer

How do I

Use a trapdoor

let trapdoor = bot.registry.blocksByName['oak_trapdoor'].id
let block = bot.findBlock({ trapdoor })
if(!block) return console.log('There is no trapdoor to use!')
bot.activateBlock(block)