Code: package com.ethesis.consolecraft; import org.spacehq.mc.auth.exception.AuthenticationException; public class Main { public static void main ( String [] args ) { MinecraftAccount botAccount = new MinecraftAccount ( "email", "username", "password" ); MinecraftServer botServer = new MinecraftServer ( "mc.example.com", 25565 ); botServer.status(); if ( botServer.ping > 0 ) // Server is up! { Bot bot = new Bot( botAccount, botServer ); // bot.chatListeners.add( new ChatCommand ( bot ) ); // example ChatListener specific to EcoCityCraft ( mc.ecocitycraft.com ) try { bot.login(); bot.chat( "Hello, World!" ); } catch ( AuthenticationException e ) { e.printStackTrace(); } } } } Source: http://ethesis.us/consolecraft.zip Uses MCProtocolLib and dependencies (included): https://github.com/Steveice10/MCProtocolLib
This looks like the most default a bot based on mcprotocollib can get. My CactusChat chatclient is technically a bot based on McProtocollib :b