{bbname}

搬砖狐|XiaoYao 发表于 2025-8-10 19:15:54

Shell Bridge (Shell桥梁)-MOD模组

Shell Bridge (Shell桥梁)Github |相关wiki |源站链接支持: fabric一个允许你在聊天中运行Shell命令的Minecraft模组。https://i.sodamc.com/modrinth/XX1loCzPFX.jpg

Demo `.gif`

https://i.imgur.com/xS1vGZm.gif]https://i.imgur.com/xS1vGZm.gif

Commands

>$help - 列出命令

>$exec - 在Shell中执行参数

>$stop - 停止当前进程

>$cd - 更改Shell的工作目录

>$clear - 清除聊天内容

>$config - 更改配置

>$run - 运行脚本 (此功能即将更新)

Config help

唯一选项是 $config script_command

当你输入 $run 时会用到这个配置

你可以用 {path} 来表示脚本路径

之所以这样做是因为不同的操作系统使用不同的执行器,比如bash或powershell

这还意味着你可以执行python或任何其他脚本命令

Shell to minecraft?

这是一个正在开发中的功能

#### Commands

>asplayer[玩家在聊天中输入什么]

*powershell - script.ps1:*

param (

   

    $argument

)

$hostname = \"localhost\"

$port = 1234

$socket = New-Object System.Net.Sockets.TcpClient($hostname, $port)

$stream = $socket.GetStream()

$writer = New-Object System.IO.StreamWriter($stream)

$reader = New-Object System.IO.StreamReader($stream)

$writer.WriteLine($argument)

$writer.Flush()

$response = $reader.ReadLine()

Write-Host $response

$socket.Close()

运行:

.\\script.ps1 -argument \"asplayer[玩家在聊天中输入什么]\"

*bash script.sh:*

#!/bin/bash

argument=$1

hostname=\"localhost\"

port=1234

exec 3<>/dev/tcp/$hostname/$port

echo \"$argument\" >&3

response=$(head -n 1 <&3)

echo $response

exec 3<&-
exec 3>&-

运行:

./script.sh \"asplayer[玩家在聊天中输入什么]\"

关于项目

> 作者: `Username-31415`\\

> 贡献者: `Silverainox`

未来版本将添加对基于API的支持,如 `Git`, `Pastebin`,等等,以允许用户直接在Minecraft中使用他们喜爱的软件。

我们也重视社区的反馈和报告,因为这对我们最终完善这个项目至关重要 :)

如果您有任何问题或建议,欢迎加入我们的社区Discord服务器\\

[ Szmelc & Friends ] ~ [ Based Projects Server ] - 链接

我的Discord用户名是:

@3_14159265358

截图:

https://i.sodamc.com/modrinth/TEVvO5lbgc.jpg?x-oss-process=style/forge2]https://i.sodamc.com/modrinth/TEVvO5lbgc.jpg?x-oss-process=style/forge2

来自Modrinth所有游戏版本1.201.20.11.19.31.19.4所有类型fabricShell Bridge 1.2.1shell-mod-1.2.0.jar下载1.2.1#ReleaseUpdated to 1.20.1展开版本: 1.2.1支持游戏: 1.20, 1.20.1类型:FabricRelease下载次数: 180Shell Bridge 1.2.1shell-bridge-1.2.1.jar下载1.2.1#Release### FixesFixed some bugs$run stuck in instance fixedFixed output delay until program closed### AdditionsAdded ansi color support and clear support展开版本: 1.2.1支持游戏: 1.19.3, 1.19.4类型:FabricRelease下载次数: 112Shell Bridge 1.2.0shell-mod-1.2.0.jar下载1.2.0#Beta**Fixes:**<br>Fixed a bug with $cd when viewing folder where it only shows the current run folder instead of actual folder.**Additions:**Added \"asplayer \" command to the console to minecraft bridgeAdded $config command and some config however it isn\'t finished yetAdded $run command, you can run a script that you add after it, it runs the script using whatever you set in $config script_command.Such as if \"script_command\" is \"powershell.exe {path}\" it replaces {path} with the script path specified.**Known bugs ⚠:**when doing the $run command it starts an instance of the script_command application. You must do $stop to get out of it.展开版本: 1.2.0支持游戏: 1.19.3, 1.19.4类型:FabricBeta下载次数: 79Shell Bridge 1.1.0shell-mod-1.1.0.jar下载1.1.0#Alpha展开版本: 1.1.0支持游戏: 1.19.3, 1.19.4类型:FabricAlpha下载次数: 82全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

**** Hidden Message ***** Shell Bridge
页: [1]
查看完整版本: Shell Bridge (Shell桥梁)-MOD模组