|
当实体死亡时 (When Entities Die)Github |相关wiki |源站链接支持: fabric此模组MOD添加了一个杀死实体的进度触发器。通过使用物品来杀死怪物可以触发该进度。
安装
只需从[版本页面](链接)下载最新版本并将其放入\"mods\"文件夹中。无需使用Fabric API来使用此模组。**模组只需要在服务器上安装**
用法
数据包
在数据包中,您可以创建一个普通的进度并使用`when-entities-die:killed_using_item`触发器。
例如,当玩家使用钻石剑杀死骷髅时触发的进度示例:
{
\"display\": {
\"icon\": {
\"item\": \"minecraft:apple\"
},
\"title\": {
\"text\": \"测试进度\"
},
\"description\": {
\"text\": \"测试进度描述\"
},
\"frame\": \"task\",
\"show_toast\": true,
\"announce_to_chat\": true,
\"hidden\": false
},
\"criteria\": {
\"requirement\": {
\"trigger\": \"when-entities-die:killed_using_item\",
\"conditions\": {
\"item\": {
\"items\": [
\"minecraft:diamond_sword\"
]
},
\"entity\": {
\"type\": \"minecraft:skeleton\"
}
}
}
}
}Copy已复制!
模组
在模组中,您需要和数据包中做一样的操作。
您还可以在您的模组中包含此模组。
build.gradle中的示例repositories块
repositories {
maven {
name = \"JitPack\"
url = \"https://jitpack.io/\"
content {
includeGroup \"top.offsetmonkey538\"
}
}
}Copy已复制!
build.gradle中的示例dependencies块
dependencies {
modImplementation include(\"top.offsetmonkey538:when-entities-die:v1.0+1.19\")
}Copy已复制!
注意:此示例*不会*更新到使用最新版本。您可以在[github](链接)上查看所有版本。
来自Modrinth所有游戏版本1.20.11.191.19.11.19.21.19.3所有类型fabricWhen Entities Die 1.1+1.20.1when-entities-die-1.1+1.20.1.jar下载1.1+1.20.1#Releasewhen-entities-die-1.1+1.20.1-sources.jar下载1.1+1.20.1#Release展开版本: 1.1+1.20.1支持游戏: 1.20.1类型:FabricRelease下载次数: 204Version 1.1 for 1.19.3when-entities-die-1.1+1.19.3.jar下载1.1+1.19.3#Releasewhen-entities-die-1.1+1.19.3-sources.jar下载1.1+1.19.3#ReleaseChanged maven group, switched to JitPack.展开版本: 1.1+1.19.3支持游戏: 1.19, 1.19.1, 1.19.2, 1.19.3类型:FabricRelease下载次数: 2171.0+1.19when-entities-die-1.0.jar下载1.0+1.19#Release展开版本: 1.0+1.19支持游戏: 1.19类型:FabricRelease下载次数: 127全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
当实体死亡时 |
楼主
2025-8-10 19:55:23
回复(0)
收起回复
|