Перейти к содержимому
Mineforgian

e418

[in development] A library mod providing support for data-driven gameplay events.

374 загрузок1 подписчиковMITfabricneoforge

Обновлён 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 версий
  • Альфа276 КБ
  • Альфа274 КБ
  • Альфа246 КБ
  • Альфа245 КБ
  • Альфа243 КБ
  • Альфа244 КБ

Ченджлог

0.0.4Альфа1.21.4 · 6 октября 2025 г.
  • feature: basic intrusiviness system (see intrusiviness field in event resource)
  • feature: allow_game_crashes config option
  • feature: health condition (example)
  • feature: in_dimension condition (example)
  • feature: on_surface condition (example)
  • feature: fog_override behaviour (example)
  • feature: spawn_entity behaviour (example)
  • feature: remove_player context mutator
  • feature: /event start [event] check for checking success state of conditions
  • feature: config number provider
  • change: prevent_chat_usage is 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

Комментарии

Загружаем…