Compare commits
5 Commits
086251bce6
...
288b7045b6
Author | SHA1 | Date |
---|---|---|
jay | 288b7045b6 | 3 years ago |
jay | 94574a4296 | 3 years ago |
jay | 68e60921b1 | 3 years ago |
jay | f2281a7cb3 | 3 years ago |
jay | e9f2080556 | 3 years ago |
5 changed files with 82 additions and 48 deletions
@ -0,0 +1,22 @@ |
||||
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 } |
Loading…
Reference in new issue