mc-uta
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

MC-Uta

A mineflayer plugin allowing for advanced interaction with note blocks.


Installation

This plugin requires npm to install:
npm install -g mc-uta

Preview

Features

  • Discover nearby note blocks and determine sound & pitch
  • Import MIDI files and play them in-game using note blocks
  • Automatically tune note blocks based on MIDI key range

Example

ES6:

import { mc_uta } from 'mc-uta';
import * as mineflayer from 'mineflayer';

let bot = mineflayer.createbot({
username: "robo",
});

let uta = mc_uta.plugin(bot);

bot.once('login', () => 
setTimeout(() => {
let note_blocks = uta.retreiveNearbyNoteBlocks();
uta.playMidi('midi/teddybear.mid', note_blocks);
}, 5 * 1000));

Usage

  • Coming soon!

/mc-uta/

    Package Sidebar

    Install

    npm i mc-uta

    Weekly Downloads

    2

    Version

    1.1.6

    License

    MIT

    Unpacked Size

    951 kB

    Total Files

    11

    Last publish

    Collaborators

    • firejoust