In-game Console 图标

In-game Console

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0+1.21.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ingame-console
资源信息

Minecraft 版本: 1.21.1

平台: fabric

标签: management technology utility

资源介绍

What it does

Open a live console overlay while you play. Type commands, run JavaScript, save multi-line scripts to files, and bind actions to keys. Everything runs on the client tick thread, so it stays stable while the game keeps running behind it.

Scripting

Three ways to run code:
| Prefix | What it runs |
|--------|--------------|
| (none) | Console commands |
| > | JavaScript (GraalJS) — live game access |
| >> | Real Java via JShell (dev/JDK only) |
Scripts get mc, player, world, lc (feature toggles), and fx — a helper API for particles, movement, HUD text, and more that works on a normal install.
Run code every tick with tick <code>, or save proper multi-line scripts as files:
script new myscript → create & open in your editor script run myscript → run once script tick myscript → run every tick

Scripts live in config/live-console/scripts/.

Aliases

Set a shortcut for a visual effect:

alias ring > (function(){for(var i=0;i<16;i++){var a=i/16*6.283;fx.particle('flame',fx.px()+Math.cos(a)*2,fx.py()+0.5,fx.pz()+Math.sin(a)*2);}})()

Now when you type ring in the console, it spawns a flame ring. Remove it with unalias ring.
Bind it to a key:
bind r ring

Press R in-game and you get a ring of fire around your feet.

Interactions with the chat enviroment

var lines = [
    "3",
    "2",
    "1",
    "GO!"
];

for (var i = 0; i < lines.length; i++) {
    // one message per run — run 4 times manually, or use tick with a timer
    fx.say(lines[i].replace(/&/g, "&"));
}

fx.say(">>> GO! <<<");

To run it:
script new chat
Copy paste the content provided above into the new file
Save
script run chat

Console features

  • Tab completion and command history
  • Scrollback with mouse wheel / Page Up & Down
  • Ctrl+C copies the full log; click a line to copy just that line
  • In-game docs command for the full guide
  • Logo and header in the console UI

    Requirements

  • Minecraft 1.21.1+
  • Fabric Loader + Fabric API
  • Java 21+
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Sweety's Garden

价格:0 墨喵币
下载量:0

查看详情
Lardian

价格:0 墨喵币
下载量:0

查看详情
Infinite Storage Bundle

价格:0 墨喵币
下载量:0

查看详情
Green Screen Sky

价格:0 墨喵币
下载量:0

查看详情