feat(informer): add optional metadata to block info display

This commit is contained in:
jay 2021-01-05 09:20:35 +05:00
parent 6b71de0356
commit 4b8a39d38c

View File

@ -5,7 +5,9 @@ let mcData
function block() {
const block = bot.blockAtCursor()
console.log(block)
cfg.quiet || bot.chat([block.type, block.name].join(": "))
let info = [block.type, block.name]
if (block.metadata) info.push(block.metadata)
cfg.quiet || bot.chat(info.join(": "))
}
const load = (config) => {