import{TicksPerSecond,system,world}from"@minecraft/server";export const LoggerConfig={ENABLE:!1,CONSOLE_MODE:!1,BLOCKED_TAGS:[]};export function log(r,...e){if(!LoggerConfig.ENABLE)return;if(LoggerConfig.BLOCKED_TAGS.includes(r))return;let o=Math.floor((system.currentTick+1)/TicksPerSecond)%60,n=Math.floor(Math.floor((system.currentTick+1)/TicksPerSecond)/60);o<10&&(o="0"+o),n<10&&(n="0"+n);let t="";for(let r of e)r instanceof Error?(t+="Error(§b"+r.name+"§r) { : ",t+=r.message+"\n",t+="   caused by "+r.stack+" }"):t+=r?JSON.stringify(r):`${r}`,t+=" ";LoggerConfig.CONSOLE_MODE||world.sendMessage("§g["+r+"]§r§b["+n+":"+o+"]§r "+t)}