You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
440 B
22 lines
440 B
3 years ago
|
let cfg
|
||
|
let bot
|
||
|
let mcData
|
||
|
|
||
|
function info() {
|
||
|
const block = bot.blockAtCursor()
|
||
|
console.log(block)
|
||
|
cfg.quiet || bot.chat([block.id, block.name])
|
||
|
}
|
||
|
|
||
|
const load = (config) => {
|
||
|
cfg = config
|
||
|
bot = cfg.bot
|
||
|
cfg.info = {
|
||
|
quiet: cfg.quiet,
|
||
|
}
|
||
|
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version))
|
||
|
}
|
||
|
|
||
|
const unload = () => {}
|
||
|
|
||
|
module.exports = { load, unload, info }
|