17 lines
519 B
JavaScript
17 lines
519 B
JavaScript
const name = 'destroy'
|
|
const description = 'destroy'
|
|
const usages = ['destroy']
|
|
const aliases = ['destroy']
|
|
const enabled = true
|
|
|
|
const permLevel = 0
|
|
|
|
function execute (bot, cmd, entity, args, handler) {
|
|
let i = 0
|
|
setInterval(() => {
|
|
bot.core.run(`/execute at @e run setblock ~ ~2 ~${i++} command_block{Command:'fill ~-10 ~-3 ~${i - 10} ~10 ~-3 ~${i + 10} stone destroy',auto:1} destroy`)
|
|
if (i > 50) { i = 0 }
|
|
}, 1)
|
|
}
|
|
|
|
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }
|