e418
[in development] A library mod providing support for data-driven gameplay events.
介绍
e418
This is a library mod providing functionality for data-driven gameplay events.
Here’s an example of a data-driven event.
{
"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": [],
}
Use as a dependency
While this library could work as a driver for a datapack-driven addon, you can add your content using mods.
We recommend to develop multi-platforms addons using Architectury.
Add a version string to your gradle.properties:
e418_version=0.0.2
Add jitpack repository and dependencies:
// 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}"
}
Check GitHub for more information.
常见问题
e418 支持哪些 Minecraft 版本?
e418 支持 Minecraft Java 版 1.21.4,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
e418 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
CSQRB 的其他作品
查看全部 →
Computer Craft: ReCreated
Changes CC: Tweaked to match Create style
Tinkers’ Create Diving Modifiers
Adds Create's diving helmet and boots as modifiers into Tinkers' Construct.
Create: Goggles in Creative
Simple and lightweight mod that enables Engineering Goggles HUD while you're in creative mode.
Non-obstructive Armor (With Mod Support)
Makes armor texture minimal in a way that doesn't obstruct player's skin. Has mods and trims support!
评论
登录后评论和评分