
e418
[in development] A library mod providing support for data-driven gameplay events.
Обновлён 6 октября 2025 г. · опубликован 2 сентября 2025 г.
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.
Центр версий
6 версийЧенджлог
0.0.4Альфа1.21.4 · 6 октября 2025 г.
- feature: basic intrusiviness system (see
intrusivinessfield in event resource) - feature:
allow_game_crashesconfig option - feature:
healthcondition (example) - feature:
in_dimensioncondition (example) - feature:
on_surfacecondition (example) - feature:
fog_overridebehaviour (example) - feature:
spawn_entitybehaviour (example) - feature:
remove_playercontext mutator - feature:
/event start [event] checkfor checking success state of conditions - feature: config number provider
- change:
prevent_chat_usageis now consistent with other behaviours when selecting target players - change: debug blockstate hiding now hides hidden namespaces from config
Full Changelog: https://github.com/5w14/e418/compare/0.0.3...v0.0.4
0.0.3Альфа1.21.4 · 10 сентября 2025 г.
Changelog:
- FIX: select_random_location_around_player mutator now properly works
- FIX: prevent_chat_usage behaviour now properly restores its state
- FIX: snow_override behaviour now properly restores its state
- option to use a heightmap in select_random_location_around_player
- config option to hide namespaces in minecraft command suggestions
Full Changelog: https://github.com/5w14/e418/compare/0.0.2...0.0.3
0.0.3Альфа1.21.4 · 10 сентября 2025 г.
Changelog:
- FIX: select_random_location_around_player mutator now properly works
- FIX: prevent_chat_usage behaviour now properly restores its state
- FIX: snow_override behaviour now properly restores its state
- option to use a heightmap in select_random_location_around_player
- config option to hide namespaces in minecraft command suggestions
Full Changelog: https://github.com/5w14/e418/compare/0.0.2...0.0.3
Комментарии
Загружаем…