Consolecraft 1.7.2-1.7.6 Programmable Bot

Discussion in 'General Discussion' started by xerxesbeat, Jun 12, 2014.

  1. xerxesbeat

    xerxesbeat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Mar 28, 2012
    Messages:
    32
    Trophy Points:
    25,235
    Ratings:
    +7
    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
     
  2. FuryFudge

    FuryFudge IDK ask Fury
    Builder ⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ IV ⭐ Premium Upgrade

    Joined:
    Sep 21, 2013
    Messages:
    3,186
    Trophy Points:
    90,160
    Gender:
    Male
    Ratings:
    +2,324
    What be this?
     
  3. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,061
    Trophy Points:
    80,160
    Ratings:
    +6,925
    This looks like the most default a bot based on mcprotocollib can get. My CactusChat chatclient is technically a bot based on McProtocollib :b
     
  4. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    Curious, can you repost the source @xerxesbeat ? Current link is down.
     
  5. xerxesbeat

    xerxesbeat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Mar 28, 2012
    Messages:
    32
    Trophy Points:
    25,235
    Ratings:
    +7
  6. Vintage_Gamer

    Vintage_Gamer Builder
    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jun 18, 2013
    Messages:
    3,802
    Trophy Points:
    53,710
    Gender:
    Male
    Ratings:
    +1,219
    Cactus Chat ftw