Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_zjtgpI4I.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
e418 - 墨喵 Minecraft 资源
e418 图标

e418

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.0.4
本资源为搬运资源,原资源地址: https://modrinth.com/mod/e418
资源信息

Minecraft 版本: 1.21.4

平台: neoforge

标签: game-mechanics library

资源介绍

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.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Create Survival

价格:0 墨喵币
下载量:0

查看详情
Alt Vision 1.0

价格:0 墨喵币
下载量:0

查看详情
ModsThatAquamonUses

价格:0 墨喵币
下载量:0

查看详情
Better Beacon Effects

价格:0 墨喵币
下载量:0

查看详情