Compare commits

...
Author SHA1 Message Date
Parker2991 7322dce4dc v1.0-CustomBuild 2024-02-13 16:59:36 +00:00
Parker2991 4a8a25b064 v3.0x 2024-02-13 16:57:29 +00:00
Parker2991 da4f7e3f28 v3.0-beta 2024-02-13 16:54:28 +00:00
Parker2991 fb3c11b46f v2.2 2024-02-13 16:51:35 +00:00
Parker2991 d873e16aea v2.0-revision 2024-02-13 16:49:27 +00:00
Parker2991 3d626e3578 v2.0 2024-02-13 16:46:59 +00:00
Parker2991 cee12661bf v1.2.2 2024-02-13 16:44:50 +00:00
Parker2991 b57fd74b16 v1.2.1 2024-02-13 16:43:10 +00:00
Parker2991 6f2e8b8cab v1.2.0 2024-02-13 16:41:40 +00:00
Parker2991 faccae130d v1.1 2024-02-13 16:39:36 +00:00
Parker2991 609bddf38e v1.0-revision 2024-02-12 21:15:17 +00:00
Parker2991 faadb943a3 v1.0 2024-02-12 21:12:19 +00:00
+309 -185
View File
@@ -1,20 +1,27 @@
const mineflayer = require('mineflayer') const mineflayer = require('mineflayer')
let symbol = require('illegal-symbols') let symbol = require('illegal-symbols')
var server = 'sus.shhnowisnottheti.me' var server = 'sus.shhnowisnottheti.me'
//NMxigAU6dR1KfgaQkKz87L //NMxigAU6dR1KfgaQkKz87L
const readline = require('readline') const readline = require('readline')
var gameMode = require('mineflayer-cmd')
let rl = readline.createInterface({ input: process.stdin, output: process.stdout }) let rl = readline.createInterface({ input: process.stdin, output: process.stdout })
const randomstring = require('randomstring'); const randomstring = require('randomstring');
const bot = mineflayer.createBot({ const bot = mineflayer.createBot({
host: server, host: server,
port: 25565, port: 25565,
username: randomstring.generate(8), username: randomstring.generate(8),
version: 1.16, version: 1.17
}) })
var sleep = t => new Promise(a => setTimeout(a, t)), var sleep = t => new Promise(a => setTimeout(a, t)),
sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); }
@@ -25,8 +32,7 @@ function between(min, max) {
} }
//variables //variables
var prefix = '&8[&b&lBOYFRIEND&8]&a[&lBeta] &8[&4&lParker2991&8]'; var prefix = '&8&l[&4&lBLOODDEMON&8&l]&8&l[&4&lDEMONWolf&8&l]';
var consoleprefix = 'bcraw &8 &l &m[&4 &mParker2991&8] &8 &m[&b &mBOYFRIEND&8] &8 &m[&b &mCONSOLE&8] ';
function randomchar() { function randomchar() {
const crypto = require("crypto"); const crypto = require("crypto");
@@ -38,51 +44,64 @@ function randomchar() {
return hashi.substring(0, 16); return hashi.substring(0, 16);
} }
function runInCore(cmd) { function runInCore(cmd) {
bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 }); bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 });
} }
bot.on('login', async () => { // time in ms bot.on('login', async () => {
console.log(`logged in as ${bot.username}`)
console.log(`logged in as ${bot.username}`)
//change the coords if bot has problems //change the coords if bot has problems
//await sendChat('/tp '+require('randomstring').generate({length:5,charset:'1234567890'})+' 5 '+require('randomstring').generate({length:6,charset:'1234567890'})) //await sendChat('/tp '+require('randomstring').generate({length:5,charset:'1234567890'})+' 5 '+require('randomstring').generate({length:6,charset:'1234567890'}))
await sendChat('/tptoggle Bloodwolf')
await sleep(1)
await sendChat('/tp Bloodwolf')
await sleep(1)
await sendChat('/tptoggle Bloodwolf')
await sleep(1)
await sendChat('/tptoggle') await sendChat('/tptoggle')
await sendChat('/online')
await sendChat('/vanish')
await sendChat('/v on') await sendChat('/v on')
await sendChat('/console ') await sendChat('/console ')
await sendChat('/username &8[&a&lBetaBot&8]') await sendChat('/username')
await sendChat('/c') await sendChat('/c')
await sendChat('/tptoggle parker2991')
await sendChat('/tp Parker2991')
await sendChat('/tptoggle parker2991')
await sendChat('/Username ')
await sendChat('/night') await sendChat('/night')
await sendChat('/gamerule doMobSpawning false') await sendChat('/gamerule doMobSpawning false')
await sendChat('/de') await sendChat('/de')
await sendChat('/online') await sendChat('/online')
await sendChat('/cspy on') await sendChat('/cspy on')
await sendChat('/prefix &4[BOT/CONSOLE]')
await sendChat('/sudo Parker2991 prefix &b &l &m[Boyfriend]')
await sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 50 ${Math.floor(bot.entity.position.z - 15)} command_block replace`) await sendChat('/prefix &4[BOT/CONSOLE]')
runInCore('bcraw ' + prefix + '&b &lOwner is Parker2991')
await sendChat('/sudo Bloodwolf prefix &8&l[&4&lOwner &a&lof &a&lthe &4&lBLOODDEMON&4&lbot&8&l]&8&l[&9&lDiscord&8&l]')
await sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 50 ${Math.floor(bot.entity.position.z - 15)} command_block replace`)
runInCore('bcraw ' + prefix + '&b&lOwner &4&lis &4&lWolfboy')
runInCore('bcraw ' + prefix + 'fork of FNFBoyfriendBot')
runInCore('bcraw ' + prefix + '&b &l almost complete bot its in beta as of rn the orignal code is up and working as of right now but its old code now and bot commands only work in the console as of right now im gonna try to work on that or try atleast i want to make it to work in console and in game gotta figure out some things and debug the bot and maybe a white list?')
runInCore('bcraw ' + prefix + 'command list is not know as this time im still trying to figure out all the code for the bot')
runInCore('bcraw ' + prefix + 'like always daily meme because why not')
runInCore('bcraw ' + prefix + 'no meme today sorry =(')
}) })
const cmd = require('mineflayer-cmd').plugin const cmd = require('mineflayer-cmd').plugin
cmd.allowConsoleInput = false // Optional config argument cmd.allowConsoleInput = false // Optional config argument
bot.loadPlugin(cmd) bot.loadPlugin(cmd)
//kill command function //nuke command
//test command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -96,9 +115,11 @@ rl.on('line', (line) => {
setInterval(function() { runInCore('night'), 1 }) setInterval(function() { runInCore('night'), 1 })
setInterval(function() { runInCore('clear @a'), 1 }) setInterval(function() { runInCore('clear @a'), 1 })
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 })
setInterval(function() { runInCore('bcraw ' + prefix + 'WELCOME TO HELL'), 1 })
break break
} }
}) })
//fakekick command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -106,109 +127,100 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'fakekick': case 'fakekick':
runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e')
runInCore('bcraw &8&l[&b&m&lBoyfriendbot]&8 ' + args + ' has been kicked!') runInCore('bcraw &8&l[&4&lBLOODDEMON&8&l]' + args + ' has been kicked!')
break break
} }
}) })
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
rl.on('line', (line) => { //gmc command
rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'gmc': case 'gmc':
runInCore('sudo + botusername gmc') sendChat('/minecraft:gamemode creative')
runInCore('bcraw DOWN IN OHIO!') runInCore('bcraw &4DOWN IN OHIO!')
break
}
})
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'op':
runInCore('sudo + botusername op + botusername')
break break
} }
})
switch (command) {
case 'kaboom':
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('sudo * kaboom')
runInCore('bcraw have fun =)')
break
}
}) })
rl.on('line', (line) => { //deop command
let args = line.split(' ')
let command = args.shift()
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) {
case 'deop':
switch (command) { runInCore('deop ' + args + ' ')
break
case 'BOOM': }
runInCore('sudo * /fast') })
runInCore('sudo * gms')
runInCore('sudo * /sphere tnt 75')
runInCore('sudo * kaboom')
runInCore('BOOM GOES THE DINOMITE')
break //mute command
} rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'mute':
runInCore('mute ' + args + '')
break
}
})
//kaboom command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'kaboom':
setInterval(function() { runInCore('sudo * kaboom'), 1 })
runInCore('bcraw have fun =)')
break
}
}) })
//BOOM command
rl.on('line', (line) => {
switch (command) { let args = line.split(' ')
let command = args.shift()
case 'kick':
switch (command) {
case 'BOOM':
runInCore('sudo * /fast')
runInCore('sudo * god')
runInCore('sudo * gms')
runInCore('sudo * /sphere tnt 75')
runInCore('sudo * kaboom')
runInCore('BOOM GOES THE DINOMITE')
break
}
})
//kick command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'kick':
runInCore('/console @e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e') runInCore('/console @e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e')
runInCore('bcraw &8&l[&b&m&lBoyfriendbot]&8 ' + args + ' has been kicked!') runInCore('bcraw &8&l[&4&lBLOODDEMONBOT&8&l]' + args + ' has been kicked!')
break break
} }
})
})
//greeting command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -216,30 +228,33 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'greeting': case 'greeting':
runInCore('bcraw &8&lWelcome Owner &4&l&m[Ayunami2000] To The Server!!!!!!') runInCore('bcraw &eAyunami2000 Joined the game')
break break
} }
}) })
//fakeban commnad
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'ban': case 'fakeban':
runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e')
runInCore('bcraw &4&l&mConsole Has Perm Banned ' + args + 'For 22 Days And 14 Hours') runInCore('bcraw &4&l&mConsole Has Perm Banned ' + args + 'For 22 Days And 14 Hours')
break break
} }
}) })
//thor commnad
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'thor': case 'thor':
setInterval(function() { runInCore('essentials:smite *' + args), 1 }) runInCore('essentials:smite *' + args)
runInCore('bcraw ' + prefix + '&4&lI AM ZEUS')
break break
} }
}) })
@@ -248,22 +263,25 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'console': case 'vanish':
runInCore('m * ' + args.join(' ')) sendChat('/vanish on ' + bot.username + '')
break break
} }
}) })
//OHHAIL console
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'servercrash': case 'OHHAIL':
setInterval(function() { runInCore('essentials:sudo * kick @e[type=player] @e @e @e'), 1 }) runInCore('sudo * c: OH HAIL FIRE MOTHER FUCKER' + args.join('bloddwolf '))
break break
} }
}) })
//explode command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -277,7 +295,7 @@ rl.on('line', (line) => {
break break
} }
}) })
//trol command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -296,6 +314,7 @@ rl.on('line', (line) => {
break break
} }
}) })
//cloop command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -307,6 +326,95 @@ rl.on('line', (line) => {
break break
} }
}) })
//altcrash command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'altcrash':
setInterval(function() { runInCore('sudo * execute at @a run give @a diamond_hoe 64'), 1 })
setInterval(function() { runInCore('bcraw ' + prefix + '&8&l Have fun with hoes =) '), 1 })
runInCore
break
}
})
//Myhead command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'MyHead':
runInCore('give @a minecraft:player_head{SkullOwner:Demonwolf}')
runInCore('bcraw ' + prefix + 'My Head')
break
}
})
//MYLEG! command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'MYLEG':
runInCore('bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!')
runInCore('give @a bone 64')
break
}
})
//KFCFINGERLICKINGOOD command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'KFC':
runInCore('give @a cooked_chicken 64')
runInCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD')
break
}
})
//GODSWORD!! command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'GODSWORD':
runInCore('give @a diamond_sword')
runInCore('sudo * enchantall')
runInCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!')
break
}
})
//technoblade command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'technoblade':
runInCore('sudo * summon pig')
runInCore('bcraw ' + prefix + 'Rest in peace technoblade we will always love and remember what you have done for youtube technoblade if you can here me i love your youtube channel')
break
}
})
//DREAMSTANALERT command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'DREAMSTANALERT':
runInCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT')
runInCore('execute unless entity @s[name= run ] run stop')
break
}
})
//test command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -315,45 +423,53 @@ rl.on('line', (line) => {
case 'test': case 'test':
setInterval(function() { runInCore('minecraft:execute unless entity @s[name= run ] at ' + args + ' run summon minecraft:iron_golem'), 1 }) setInterval(function() { runInCore('sudo * ' + args + ' summon minecraft:iron_golem'), 1 })
break break
} }
}) })
//soundbreaker
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'bypass': case 'soundbreaker':
runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 10000 1.5 1 ') setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 })
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 })
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1 1 '), 1 })
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1 1 '), 1 })
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1.5 1 '), 1 })
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1 1 '), 1 })
break break
} }
}) })
//entityspam
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'entityspam': case 'entityspam':
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon fireball '), 1 })
setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 }) setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 })
setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 }) setInterval(function() { runInCore('sudo * summon zombie '), 1 })
setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 }) setInterval(function() { runInCore('sudo * summon creeper'), 1 })
setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * blaze'), 1 })
setInterval(function() { runInCore('summon horse 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon horse '), 1 })
setInterval(function() { runInCore('summon spider 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon spider '), 1 })
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon fireball '), 1 })
setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 }) setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 })
setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 }) setInterval(function() { runInCore('sudo * summon zombie '), 1 })
setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 }) setInterval(function() { runInCore('sudo * ummon creeper '), 1 })
setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon blazed '), 1 })
setInterval(function() { runInCore('summon horse 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon horse '), 1 })
setInterval(function() { runInCore('summon spider 115 62 -5'), 1 }) setInterval(function() { runInCore('sudo * summon spider '), 1 })
break break
} }
}) })
//tp command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -364,61 +480,54 @@ rl.on('line', (line) => {
break break
} }
}) })
//gms command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'gms': case 'gms':
setInterval(function() { runInCore('gms ' + args), 1 }) ('sudo * gms ' + args)
break break
} }
}) })
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) { //tntspam command
case 'stop':
runInCore('bcraw ' + prefix + 'STOPPING SERVER.....')
setInterval(function() { runInCore('execute unless entity @s[name= run ] run stop'), 1 })
break
}
})
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'tntspam': case 'tntspam':
setInterval(function() { runInCore('summon tnt 600 65 6000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 100 65 100'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 60045 65 60000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 60 65 55'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 800 65 60000000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 600000 65 6000000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 60000000 65 6500000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 6600 65 60060'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 6500 65 56000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt'), 1 })
setInterval(function() { runInCore('summon tnt 6070 65 777776000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 888600 65 608700'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 68700 65 987000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 98000 65 567000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 56700 65 696700'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 688800 65 6088800'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 2 65 4'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 25 65 80'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 976769 65 56979'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 6979 65 21'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 21 65 600000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 434 65 60434400'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 640 65 6545450'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 6045450 65 6000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt '), 1 })
setInterval(function() { runInCore('summon tnt 6095850 65 6000'), 1 }) setInterval(function() { runInCore('sudo * summon tnt'), 1 })
break break
} }
}) })
//prefix command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -429,14 +538,15 @@ rl.on('line', (line) => {
break break
} }
}) })
//cloop command //annoy command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'annoy': case 'annoy':
setInterval(function() { runInCore('sudo * gms' + ''), 1 }) setInterval(function() { runInCore('sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + ''), 1 })
setInterval(function() { runInCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + ''), 1 })
break break
} }
@@ -452,16 +562,7 @@ rl.on('line', (line) => {
break break
} }
}) })
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'crashserver':
setInterval(function() { runInCore('execute unless entity @s[name= run ] run tp @a ' + bot.username), 1 })
break
}
})
//troll command //troll command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -482,7 +583,15 @@ rl.on('line', (line) => {
setInterval(function() { runInCore('give @a crafting_table'), 1 }) setInterval(function() { runInCore('give @a crafting_table'), 1 })
setInterval(function() { runInCore('give @a diamond_block'), 1 }) setInterval(function() { runInCore('give @a diamond_block'), 1 })
setInterval(function() { runInCore('smite *'), 1 }) setInterval(function() { runInCore('smite *'), 1 })
setInterval(function() { runInCore('kaboom' + args), 1 }) setInterval(function() { runInCore('essentials:smite ' + args), 1 })
setInterval(function() { runInCore('clear ' + args), 1 })
setInterval(function() { runInCore('effect give ' + args + ' nausea'), 1 })
setInterval(function() { runInCore('effect give ' + args + ' poison'), 1 })
runInCore('gms ' + args)
setInterval(function() { runInCore('spawnentity pig 10 ' + args), 1 })
setInterval(function() { runInCore('spawnentity tntminecart 10 ' + args), 1 })
setInterval(function() { runInCore('spawnentity zombie 10 ' + args), 1 })
setInterval(function() { runInCore('kaboom ' + args), 1 })
break break
} }
@@ -495,7 +604,7 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'icu': case 'icu':
setInterval(function() { runInCore('tp ' + args + ' man'), 1 }) setInterval(function() { runInCore('tp ' + args + ' DEMONWolf'), 1 })
break break
} }
}) })
@@ -519,13 +628,13 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'deop': case 'op':
setInterval(function() { runInCore('sudo * deop @e[type=player] ' + args), 1 }) sendChat('/op ' + bot.username + '')
setInterval(function() { runInCore('sudo op @s[type=player] ' + args), 1 })
break break
} }
}) })
//sudo command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -537,6 +646,7 @@ rl.on('line', (line) => {
break break
} }
}) })
//tpe command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@@ -548,6 +658,16 @@ rl.on('line', (line) => {
break break
} }
}) })
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'refillcore':
sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 50 ${Math.floor(bot.entity.position.z - 15)} command_block replace`)
break
}
})
//sudoall command //sudoall command
rl.on('line', (line) => { rl.on('line', (line) => {
@@ -557,13 +677,17 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'sudoall': case 'sudoall':
runInCore('essentials:sudo * ' + args.join(' ')) runInCore('essentials:sudo * ' + args.join(' '))
console.log("succesfully execute sudo command " + args)
break break
} }
}) })
bot.on('message', async (chatMessage) => { bot.on('message', async (chatMessage) => {
//prevents the command set message //prevents the command set message
if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return
console.log(chatMessage.toAnsi()) console.log(chatMessage.toAnsi())
}) })