PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
5.07k stars 921 forks source link

legacy.craftlandia.com.br (1.5.2 - 1.12.2) #911

Closed Escanor2019 closed 4 years ago

Escanor2019 commented 4 years ago

this server has 1 viaversion to leave the server 1.5.2 .1.12.2 but I can’t log in despite being able to log in the 1.8.8 native server them chrons.craftlandia.com.br (1.8.8 - 1.15.2)

the script dont run image

i try all versions look:

var mineflayer = require('mineflayer');
var bot = mineflayer.createBot({
  host: "legacy.craftlandia.com.br", // optional
  port: 25565,       // optional
  username: "TATATAT", // email and password are required only for
  version: "1.11.1"             // false corresponds to auto version detection (that's the default), put for example "1.8.8" if you need a specific version
});

bot.on('chat', function(username, message) {
  if (username === bot.username) return;
  bot.chat(message);
});
bot.on('error', err => console.log(err))
Escanor2019 commented 4 years ago

The plugin they let to accept new versions of minecraft is called CraftlandiaProtocolSupport created by schevchik in version 1.5 of minecraft.

In the case of chronos it is possible using viaversion.

It's a bug in the script since I can log in normally using the minecraft client.

wvffle commented 4 years ago

I can successfully connect to the server without any errors on 1.12.2. Be sure to pass 1.12.2 as a version number and not 1.12

Close if resolved.

Escanor2019 commented 4 years ago

Look image

wvffle commented 4 years ago

I can't really see what's there. Have you specified the version in the example?

Escanor2019 commented 4 years ago

@wvffle

look: image look2: image

wvffle commented 4 years ago

There may be limit of 1 connection per ip address. Try to add kicked event.

Escanor2019 commented 4 years ago

@wvffle ok i got it

image

how can I loop asynchronously to create bulk bots for specific commands and movements on the server? can i earn 1 pvp against players? the server has 1 event called 'gladiator' every saturday where each clan with a maximum of 20 players fight each other for money and tags.

I could create 5 clans with 20 bots each and order the pvp since the items are enchanted and don't require a lot of mechanics.

Escanor2019 commented 4 years ago

my current code

const mineflayer = require('mineflayer')

if (process.argv.length < 4 || process.argv.length > 6) { console.log('Usage : node ansi.js [] []') process.exit(1) }

for(var i = 1;i <= 6;i++) { setInterval(function() {},6000); (async () => {

const bot = mineflayer.createBot({ host: process.argv[2], port: parseInt(process.argv[3]), username: "HidraShield" + i, password: process.argv[5], version: "1.12.2" })

console.log("HidraShield" + i)

bot.on('message', (message) => { console.log(message.toAnsi()) bot.chat("/register 123456"); bot.chat("/login 123456"); bot.chat("/tell bbatemanbr2 eae"); function intervalFunc() { bot.chat("me da 15k para falar no all"); } setInterval(intervalFunc,3000);

})

})(); }

Escanor2019 commented 4 years ago

image

wvffle commented 4 years ago

Either ask on the discord server/gitter or create a new issue as the original one is resolved