Nothing Prevents Misery

    mineflayer-scaffold

    1.0.0 • Public • Published

    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')(mineflayer);
    var scaffoldPlugin = require('mineflayer-scaffold')(mineflayer);
    var bot = mineflayer.createBot();
    navigatePlugin(bot);
    scaffoldPlugin(bot);
    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!");
          }
        });
      }
    });

    Install

    npm i mineflayer-scaffold

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    BSD

    Unpacked Size

    16 kB

    Total Files

    5

    Last publish

    Collaborators

    • rom1504
    • superjoe