e418
这是一个提供数据驱动游戏事件功能的模组库。
以下是一个数据驱动事件的示例:
{
"name": "Example event",
"description": "",
"behaviours": [
{
// Modify context to select a random location around a random player
"type": "e418:mutate_context",
"mutators": [
{
"type": "e418:select_random_player",
},
{
"type": "e418:select_random_location_around_player",
},
],
// Run only if the player is below 30 on Y-axis
"run_conditions": [
{
"type": "e418:at_height",
"below": 30,
},
],
// Play a cave sound
"behaviours": [
{
"type": "e418:play_sound",
"sound": "minecraft:ambient.cave",
"volume": 1.0,
"pitch": 0.8,
},
],
},
],
"run_conditions": [],
"queue_conditions": [],
}
作为依赖使用
虽然此库可以作为数据包驱动的插件的驱动核心,但你也可以使用模组来添加你的内容。
我们建议使用 Architectury 开发跨平台的插件。
在你的 gradle.properties 中添加版本字符串:
e418_version=0.0.2
添加 jitpack 仓库和依赖项:
// in root build.gradle
repositories {
maven {
url = "https://jitpack.io/"
// Note: JitPack compile times may be slow on first build
}
}
dependencies {
// in common/build.gradle
modImplementation "com.github.5w14.e418:e418-common:${project.e418_version}"
// in fabric/build.gradle
modImplementation "com.github.5w14.e418:e418-fabric:${project.e418_version}"
// in neoforge/build.gradle
modImplementation "com.github.5w14.e418:e418-neoforge:${project.e418_version}"
}
更多信息请查看 GitHub。
你是这个资源的作者?登录后可认领此资源。
相似资源
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
247
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
229
Fast Noise
omo50
原版世界生成优化模组
优化世界生成
222
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
196
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
181
评论 0
登录后参与评分
还没有评论,来抢沙发吧