feat(informer): ✨ add optional metadata to block info display
This commit is contained in:
parent
6b71de0356
commit
4b8a39d38c
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user