Skip to content

mineflayer plugin to build or break blocks to get to a certain point

Notifications You must be signed in to change notification settings

plexigras/mineflayer-scaffold

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mineflayer-scaffold

A library to help your mineflayer bot get to a specific point, even if it has to dig or build to get there.

YouTube Demo

See https://github.com/superjoe30/mineflayer/

This plugin depends on mineflayer-navigate.

Usage

var mineflayer = require('mineflayer');
var navigatePlugin = require('mineflayer-navigate');
var scaffoldPlugin = require('mineflayer-scaffold');
var bot = mineflayer.createBot();
bot.loadPlugins([navigatePlugin, scaffoldPlugin])
bot.on('chat', function(username, message) {
  if (username === bot.username) return;
  var target = bot.players[username].entity;
  if (message === 'come') {
    bot.scaffold.to(target.position, function(err) {
      if (err) {
        bot.chat("didn't make it: " + err.code);
      } else {
        bot.chat("made it!");
      }
    });
  }
});

About

mineflayer plugin to build or break blocks to get to a certain point

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%