Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mineflayer = require('mineflayer');
- var blocks = [];
- var master = "TheTechPony"
- var bot = mineflayer.createBot({
- host: 'slowblockz.mc.gg', // optional
- username: '', // email and password are required only for
- password: '', // online-mode=true servers
- version: "1.12",
- });
- bot.chatAddPattern(/^\[.*?(\w*) -> me \] (.*)$/, "whisper", "essentials whisper");
- console.log('TTPB: Loaded patterns');
- bot.on("chat", function(username, message) {
- console.log('Chat');
- bot.chat("/msg TheTechPony Test");
- });
- bot.on('message', msg => console.log(msg.toString()))
- bot.on('spawn', function() {
- console.log('Spawned');
- bot.chat("/msg TheTechPony Current admins: " + master);
- });
- function scheduleDig(x,y,z) {
- var blockpos = x + ", " + y + ", " + z;
- blocks.push(blockpos);
- blocks.forEach(function(item, index, array) {
- console.log(item);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement