Console

资源 Console 1.0

请登录后获取

RGB39

【Lv:3】

正式会员
注册
2022/08/10
消息
3
金粒
2,789.00金粒
RGB39 submitted a new resource:

游戏内console - 实现了ConsoleAPI的部分功能,可在游戏内进行数据的预览

一个基于 ConsoleAPI 的游戏内控制台。

你是否对 log() 的功能感到沮丧?(例如 Block 类型的数据它只会显示 "<Block>")你是否对一边游戏一边观察控制台感到疲惫?

不一定是最好的解决方式,但这个console提供了一个途径,细致的追踪你的 js 插件
只需要简单的设置,就能使用 console.log, console.error 来快速定位问题:

浏览附件33923
浏览附件33921

特点:
  1. 从文字property到Symbol甚至setter/getter都能得到详细的输出
  2. 使用不同颜色来高亮不同的信息
  3. 没有任何依赖,你把代码直接丢到Gametest也一样能用
使用:
[MD]```js const {initConsole} =...[/MD]

Read more about this resource...
 
太好了,我正好在找
 
RGB39 updated 游戏内console with a new update entry:

支持控制台

[MD] # TellrawConsole for minecraft # 快速上手 ## 1. 注入 `console` ```js //main.js import {initConsole} from './tellraw-console' import {world} from 'mojang-minecraft' const mcPrint = msg => { world.getDimension('overworld').runCommand(`/tellraw @a[tag=debugger] {"rawtext":[{"text":"${msg}"}]}`) } const tConsole = initConsole(mcPrint); tConsole.injectConsole(); //将 console 注入全局环境 world.events.tick.subscribe(() => tConsole.update()); //每 tick 更新一次 console 的状态 //由于 console...[/MD]

Read the rest of this update entry...
 

在线会员

  • luckyy
  • naining886
  • sq5921
  • qxxml123
  • 卖饼翁
  • WQH灬
  • 小安鱼
  • 訾默
后退
顶部 底部