|
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
回复(0)
收起回复
|