├── start.bat ├── package.json ├── config.json ├── README.md └── index.js /start.bat: -------------------------------------------------------------------------------- 1 | node index.js 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MinecraftSpamBot", 3 | "version": "1.0.0", 4 | "description": "MinecraftSpamBot", 5 | "main": "index.js", 6 | "dependencies": { 7 | "snekfetch": "x", 8 | "mineflayer": "x" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "crackedusernameprefix": "BOT", 3 | 4 | "ip": "server.com", 5 | "port": 25565, 6 | "version": "1.12.2", 7 | 8 | "loginintervalms": 1000, 9 | 10 | "altening": false, 11 | "altening_token": "", 12 | 13 | "spammessage": "spam", 14 | "spamintervalms": 1500, 15 | 16 | "physics": false 17 | } 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MinecraftSpamBot 2 | Powerful minecraft spambot useful for testing anti bot solutions. 3 | 4 | # How to use? 5 |
Make sure nodejs is installed for your operating system. 6 |
Edit config.json 7 |
Open a terminal in that folder and run `npm install` then `node index.js` 8 | 9 | # Config 10 | 11 |
**crackedusernameprefix** Prefix of the bots (CRACKED MODE ONLY) example: BOT100 12 |
**ip** ip of server to bot 13 |
**version** version of server to bot 14 |
**loginintervalms** how fast to login each bot to server in ms. 15 |
**altening** use thealtening? 16 |
**altening_token** altening api token 17 |
**spammessage** message to spam in server 18 |
**spaminterval** how fast to send messages in ms? 19 |
**physics** turn on physics? (may be needed if server has anticheat) keep false for best performance 20 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const snekfetch = require("snekfetch") 2 | const config = require("./config.json") 3 | let number = 100 4 | setInterval(() => { 5 | number = number + 1 6 | 7 | if(config.altening == true){ 8 | snekfetch.get(`http://api.thealtening.com/v1/generate?token=${config.altening_token}&info=true`).then(n => { 9 | var mineflayer = require('mineflayer'); 10 | var bot = mineflayer.createBot({ 11 | host: config.ip, // optional 12 | port: config.port, 13 | username: n.body.token, 14 | password: "a", 15 | version: config.version, 16 | plugins: { 17 | conversions: false, 18 | furnace: false, 19 | math: false, 20 | painting: false, 21 | scoreboard: false, 22 | villager: false, 23 | bed: false, 24 | book: false, 25 | boss_bar: false, 26 | chest: false, 27 | command_block: false, 28 | craft: false, 29 | digging: false, 30 | dispenser: false, 31 | enchantment_table: false, 32 | experience: false, 33 | rain: false, 34 | ray_trace: false, 35 | sound: false, 36 | tablist: false, 37 | time: false, 38 | title: false, 39 | physics: config.physics, 40 | blocks: true 41 | } 42 | }); 43 | bot.on('login', () => { 44 | setInterval(() => { 45 | bot.chat(config.spammessage) 46 | }, config.spamintervalms) 47 | console.log("Logged in " + bot.username) 48 | }); 49 | bot.on('error', err => console.log(err)) 50 | bot.on('kicked', function(reason) { 51 | console.log("I got kicked for", reason, "lol"); 52 | }); 53 | }) 54 | } else { 55 | var mineflayer = require('mineflayer'); 56 | var bot = mineflayer.createBot({ 57 | host: config.ip, 58 | port: config.port, 59 | username: config.crackedusernameprefix + number.toString(), 60 | version: config.version, 61 | plugins: { 62 | conversions: false, 63 | furnace: false, 64 | math: false, 65 | painting: false, 66 | scoreboard: false, 67 | villager: false, 68 | bed: false, 69 | book: false, 70 | boss_bar: false, 71 | chest: false, 72 | command_block: false, 73 | craft: false, 74 | digging: false, 75 | dispenser: false, 76 | enchantment_table: false, 77 | experience: false, 78 | rain: false, 79 | ray_trace: false, 80 | sound: false, 81 | tablist: false, 82 | time: false, 83 | title: false, 84 | physics: config.physics, 85 | blocks: true 86 | } 87 | }); 88 | bot.on('login', () => { 89 | bot.chat("/login p@ssword123") 90 | bot.chat("/register p@ssword123 p@ssword123") 91 | setInterval(() => { 92 | bot.chat(config.spammessage) 93 | }, config.spamintervalms) 94 | console.log("Logged in " + bot.username) 95 | }); 96 | bot.on('error', err => console.log(err)) 97 | bot.on('kicked', function(reason) { 98 | console.log("I got kicked for", reason, "lol"); 99 | }); 100 | } 101 | }, config.loginintervalms) 102 | --------------------------------------------------------------------------------