Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Location: require('mineflayer/lib/location'),
Biome: require('mineflayer/lib/biome'),
Entity: require('mineflayer/lib/entity'),
Painting: require('mineflayer/lib/painting'),
Item: require('mineflayer/lib/item'),
Recipe: require('mineflayer/lib/recipe'),
windows: require('mineflayer/lib/windows'),
Chest: require('mineflayer/lib/chest'),
Furnace: require('mineflayer/lib/furnace'),
Dispenser: require('mineflayer/lib/dispenser'),
EnchantmentTable: require('mineflayer/lib/enchantment_table'),
blocks: mcData.blocks,
biomes: mcData.biomes,
items: mcData.items,
recipes: mcData.recipes,
instruments: mcData.instruments,
materials: mcData.materials,
};
function createBot(options) {
options.username = options.username || 'Player';
if (!options.stream) throw new Error('createBot requires options.stream');
var bot = new Bot();
bot.connect(options);
return bot;
}
function Bot() {
EventEmitter.call(this);
this.client = null;
}