搜索历史
清空
暂无搜索历史
论坛热搜
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登陆
快捷导航
查看: 19|回复: 0

[模组分享] SPC Babric (b1.7.3)-MOD模组

[复制链接]

5257

主题

52

回帖

6514

积分

龙❁妻

Rank: 8Rank: 8

经验
6514 EP
金粒
1165 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 19:25:15 | 显示全部楼层 |阅读模式
SPC Babric (b1.7.3)Github |相关wiki |源站链接支持: fabricSingle Player Commands在Fabric上的版本,适用于b1.7.3,同时也可在多人游戏中使用,并且具有API。



+ 在服务器上也可以使用

+ 具有可扩展的API

+ 无需额外依赖

可选依赖

+ 若要在维度中使用/tp,请安装STAPI

+ 若要使用/gamemode,请安装BHCreative

帮助

+ 在游戏中使用 `/help`

API

注意:请将SPC设置为可选!!

build.gradle

gradle

repositories {

    maven {

        name = \"Jitpack\"

        url \"https://jitpack.io/\"

    }

}

dependencies {

    modImplementation(\'com.github.matthewperiut:spc-babric:0.4.3\') {

        transitive false

    }

}

fabric.mod.json

json

  \"suggests\": {

    \"spc\": \"*\"

  },

在你的mod初始化中

java

public static void init_of_some_sort()

{

    if (FabricLoader.getInstance().isModLoaded(\"spc\")){

        MyModsCommands.add();

    }

}

实现 `com.matthewperiut.api.Command`  

使用 `com.matthewperiut.api.CommandRegistry` 注册

`CommandRegistry.add(new Command())`  

用你的自定义命令替换 `new Command()`。  

为你的实体添加自定义召唤命令

使用 `com.matthewperiut.api.SummonRegistry`

SummonRegistry.add(...)  

来自 `com.matthewperiut.spc.util.VanillaMobs` 的示例

java

SummonRegistry.add(Creeper.class, (level, pos, param) -> {

    Creeper creeper = new Creeper(level);

    if (param.length > 5)

        if (!param[5].isEmpty())

            if (param[5].charAt(0) != \'0\')

                ((EntityAccessor) creeper).getDataTracker().setInt(17, (byte) 1);

    return creeper;

}, \"{charged (0 or 1)}\");

SummonRegistry.add(Sheep.class, (level, pos, param) -> {

    int color = Integer.parseInt(param[5]);

    int has_wool = 1;

    if (param.length > 6)

        has_wool = Integer.parseInt(param[6]);

    Sheep sheep = new Sheep(level);

    sheep.setSheared(has_wool == 0);

    sheep.setColour(color);

    return sheep;

}, \"{wool color meta} {has wool (0/1)} \");

截图:

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

来自Modrinth所有游戏版本b1.7.3所有类型babricfabric0.5.10retrocommands-0.5.10.jar下载0.5.10#Release<!-- Release notes generated using configuration in .github/release.yaml at master -->## What\'s Changed### Other* Fix spawn radius for summon command by @telvarost in https://github.com/matthewperiut/retrocommands/pull/9**Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.9...0.5.10展开版本: 0.5.10支持游戏: b1.7.3类型: babricFabricRelease下载次数: 1190.5.9retrocommands-0.5.9.jar下载0.5.9#Release展开版本: 0.5.9支持游戏: b1.7.3类型: babricFabricRelease下载次数: 60.5.8retrocommands-0.5.8.jar下载0.5.8#Release展开版本: 0.5.8支持游戏: b1.7.3类型: babricRelease下载次数: 170.5.7retrocommands-0.5.7.jar下载0.5.7#ReleaseFix compatibility with anti-cheat servers展开版本: 0.5.7支持游戏: b1.7.3类型: babricRelease下载次数: 4740.5.6retrocommands-0.5.6.jar下载0.5.6#ReleaseMove from internal logic networking to Glass Networking展开版本: 0.5.6支持游戏: b1.7.3类型: babricRelease下载次数: 1010.5.5retrocommands-0.5.5.jar下载0.5.5#ReleaseAdd disabling commands and add mojangfix stuff<!-- Release notes generated using configuration in .github/release.yaml at master -->## What\'s Changed### Other* Fix cursor position by using MojangFixStationAPI v2.3.0 by @telvarost in https://github.com/matthewperiut/retrocommands/pull/3**Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.4...0.5.5展开版本: 0.5.5支持游戏: b1.7.3类型: babricRelease下载次数: 540.5.4retrocommands-0.5.4.jar下载0.5.4#ReleaseMinor bug fixes展开版本: 0.5.4支持游戏: b1.7.3类型: babricRelease下载次数: 1,3710.5.3retrocommands-0.5.3.jar下载0.5.3#Release<!-- Release notes generated using configuration in .github/release.yaml at master -->Improve commands**Full Changelog**: https://github.com/matthewperiut/retrocommands/compare/0.5.2...0.5.3展开版本: 0.5.3支持游戏: b1.7.3类型: babricRelease下载次数: 77[b1.7.3] 0.5.2retrocommands-0.5.2.jar下载0.5.2#ReleaseRebrand and update展开版本: 0.5.2支持游戏: b1.7.3类型: babricRelease下载次数: 107[b1.7.3] 0.5.0spc-0.5.0.jar下载0.5.0#ReleaseImprove server/client handlingImprove appearance of commands展开版本: 0.5.0支持游戏: b1.7.3类型: babricRelease下载次数: 101[b1.7.3] 0.4.5spc-0.4.5.jar下载0.4.5#ReleaseOfficially Support [MojangFix StationAPI](https://modrinth.com/mod/mojangfix-stationapi-edition)Should work together flawlessly展开版本: 0.4.5支持游戏: b1.7.3类型: babricRelease下载次数: 329[b1.7.3] 0.4.4spc-0.4.4.jar下载0.4.4#ReleaseFix incompat with [custom-player-models](https://modrinth.com/plugin/custom-player-models)refer to using [MojangFixStationAPI]([https://modrinth.com/mod/mojangfix-stationapi-edition](https://modrinth.com/mod/mojangfix-stationapi-edition)) for mojang fix展开版本: 0.4.4支持游戏: b1.7.3类型: babricRelease下载次数: 132[b1.7.3] 0.4.3spc-0.4.3.jar下载0.4.3+mojangfix-fix#Releasemojangfix-0.5.2+spc-compat.jar下载0.4.3+mojangfix-fix#Releasespc-0.4.3+mojangfix-fix.jar下载0.4.3+mojangfix-fix#ReleaseSingle Player Commands implemented with Babric b1.7.3展开版本: 0.4.3+mojangfix-fix支持游戏: b1.7.3类型: babricRelease下载次数: 297全部版本

markdown_parsed

文章类型:收录

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

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

使用道具 举报

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

本版积分规则



介绍

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

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

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

官方

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

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

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

新会员

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

GMT+8, 2025-9-25 10:33 , Processed in 0.207620 second(s), 53 queries .

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