'online_mode': False }, } # Configure plugins plugins = default_plugins plugins.append(('Messenger', MessengerPlugin)) plugins.append(('MineAndPlace', MineAndPlacePlugin)) plugins.append(('NewMovement', NewMovementPlugin)) #plugins.append(('NewPhysics', NewPhysicsPlugin)) plugins.append(('SendMapData', SendMapDataPlugin)) plugins.append(('SendEntityData', SendEntityDataPlugin)) plugins.append(('SpockControl', SpockControlPlugin)) plugins.append(('NewInventory', InventoryPlugin)) # Chose minecraft server hostname = "localhost" try: # If the environment variable is set use it as the hostname hostname = os.environ["MC_SERVER_NAME"] except KeyError: pass print("Connecting to {} server on port 25565".format(hostname)) # Create and start client # client.start() with no arguments will automatically connect to localhost client = Client(plugins=plugins, settings=settings) client.start(hostname, 25565)