搜索历史
清空
暂无搜索历史
论坛热搜
1
【MC整合包发布】乌托邦探险之旅3.2
热
3
[1.6.4]上古老物 冒险者传说 by WhiteSword
新
5
[转载]洛心斗罗-福利|公会据点战|武魂||抽奖|最终版
2
[1.12.2]Jenny — 有趣的模拟女友模组|珍妮模组
热
4
幻虚斗罗V1.5[炫酷魂环][高级魂技][全模型贴图覆盖][超吸金]
6
[1.7.10] [HQM] [Mercury landing]水星迫降——在未知的世界中挣扎
登陆 注册 QQ登陆
快捷导航
查看: 18|回复: 0

[模组分享] Shell Bridge (Shell桥梁)-MOD模组

[复制链接]

5159

主题

5

回帖

6129

积分

龙❁妻

Rank: 8Rank: 8

经验
6129 EP
金粒
928 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 19:15:54 | 显示全部楼层 |阅读模式
Shell Bridge (Shell桥梁)Github |相关wiki |源站链接支持: fabric一个允许你在聊天中运行Shell命令的Minecraft模组。

Demo `.gif`



Commands

>$help [command name (optional)] - 列出命令

>$exec [args] - 在Shell中执行参数

>$stop - 停止当前进程

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

>$clear - 清除聊天内容

>$config - 更改配置

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

Config help

唯一选项是 $config script_command [value]

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

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

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

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

Shell to minecraft?

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

#### Commands

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

*powershell - script.ps1:*

param (

    [Parameter(Mandatory=$true)]

    [string]$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]

来自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;
});

游客,如果您要查看本帖隐藏内容请回复
Shell Bridge
楼主 2025-8-10 19:15:54 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-9-25 10:38 , Processed in 0.199390 second(s), 52 queries .

快速回复 返回顶部 返回列表