Patsteaks123 Posted July 9, 2021 Share Posted July 9, 2021 I've been looking at how to make a mineflayer bot for days and nothing has worked, any ideas on how to make it work? Link to comment Share on other sites More sharing options...
0 CoolProgrammer Posted July 9, 2021 Share Posted July 9, 2021 (edited) 1 hour ago, Patsteaks123 said: I've been looking at how to make a mineflayer bot for days and nothing has worked, any ideas on how to make it work? Hey, I wouldn't judge your intentions on using this, but here is a small code I've made. And I also assume you have all the required stuff such as Mineflayer. Please make sure to read the note I've left below in this post. // Importing const mineflayer = require('mineflayer') // Your server name const name = 'server-name'; // Minecraft account credentials const email = 'someone@example.com'; const password = 'secure-password'; // Create your bot, with connection information. const bot = mineflayer.createBot({ host: `${name}.minehut.gg`, port: 25565, username: email, password: password, version: '1.16.5' }) // Bot login event (fired as soon as the bot joins the server) bot.on('login', () => { // Send a message in chat after the bot joins bot.chat("Beep boop, I'm a bot :3") // Console message console.log("Bot has connected to the server") }) Important Note: This risks your Minehut account and/or your server if you intend to use this for boosting your server's player count. Using bots to boost your server is a punishable offense (https://minehut.com/rules/). Use this at your own risk, you've been warned. Edited July 9, 2021 by CoolProgrammer 1 Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
0 Patsteaks123 Posted July 9, 2021 Author Share Posted July 9, 2021 The thing is that I'm still confused on how to make it work it encounters 21 errors Link to comment Share on other sites More sharing options...
0 StarBunnie Posted July 10, 2021 Share Posted July 10, 2021 12 hours ago, Patsteaks123 said: The thing is that I'm still confused on how to make it work it encounters 21 errors By "encounters 21 errors" I think you used Skript for this which you can't you actually need to setup the bot outside of Mminecraft with JS (java-script) with something like visual studio. Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Question
Patsteaks123
I've been looking at how to make a mineflayer bot for days and nothing has worked, any ideas on how to make it work?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now