Fluid Shell Extensions

模组

· 作者 xiao-ou6630

为流体投射物实现了一个灵活的自定义效果系统。通过简单的 JSON 配置文件,用户无需编写任何代码即可向任意流体添加丰富的爆炸效果。无论是放置流体、生成物品还是应用药水

0 本站下载 0 关注 更新于 8 个月前

需要前置:Create Big Cannons

最新 1.0.0 · 1.20.1 · Forge

一键开服(送7天)

Fluid Shell Extensions

Fluid Shell Extensions 是 [Create Big Cannons] 的一个附加模组,通过灵活的自定义效果框架扩展了流体弹壳系统。通过简单的 JSON 配置文件,你可以无需编写任何代码即可为任意流体添加丰富的爆炸效果。无论是放置流体源、生成物品实体、施加药水效果、制造爆炸还是生成粒子——一切尽在你的掌控之中。


功能特性

  • 完全数据驱动 – 所有效果均通过 JSON 文件进行配置。无需修改模组代码。
  • 多阶段效果 – 根据弹壳内流体的数量触发不同的效果。
  • 多种效果类型 – 放置流体源方块、生成物品实体、施加药水效果、制造爆炸、发射粒子。
  • 软依赖支持 – 可根据特定模组是否加载来设置条件,实现跨模组集成。
  • 详细日志记录 – 便于调试和追踪效果。

前置要求

  • Minecraft 1.20.1
  • Forge 47.0.0 或更高版本
  • 必需模组:
    • [Create] 6.0.0+
    • [Create Big Cannons] 5.10.2+

配置方法

配置文件位于 config/fluid_shell_extensions/effects/ 目录下:

  • 单人游戏:.minecraft/config/fluid_shell_extensions/effects/
  • 服务器:server-root/config/fluid_shell_extensions/effects/

每种流体都需要一个独立的 JSON 文件。建议以流体的注册名命名(例如 create_chocolate.json)。


配置文件结构

{
  "fluid": "modid:fluid_name",
  "condition": {
    "mod": "required_mod_id"
  },
  "effects": [
    {
      "type": "effect_type",
      "properties": {
        // 特定于效果的属性
      }
    }
  ]
}

字段说明

字段 描述
fluid 流体注册名 (modid:fluid_name)
condition (可选) 效果加载的条件
condition.mod 所需模组 ID – 仅当该模组存在时才会加载此效果
effects 要触发的效果数组

效果类型

放置流体

{
  "type": "place_fluid",
  "properties": {
    "fluid": "modid:fluid_name",
    "radius": 3,
    "density": 0.5
  }
}

生成物品

{
  "type": "spawn_items",
  "properties": {
    "items": [
      {
        "item": "modid:item_name",
        "count": 1,
        "chance": 0.5
      }
    ],
    "velocity": 2.0
  }
}

施加药水效果

{
  "type": "potion_effect",
  "properties": {
    "effects": [
      {
        "effect": "minecraft:effect_name",
        "amplifier": 1,
        "duration": 200
      }
    ],
    "radius": 5
  }
}

爆炸

{
  "type": "explosion",
  "properties": {
    "power": 3.0,
    "fire": false,
    "break_blocks": true
  }
}

粒子效果

{
  "type": "particles",
  "properties": {
    "particle": "minecraft:particle_name",
    "count": 100,
    "speed": 0.5
  }
}

示例

水

{
  "fluid": "minecraft:water",
  "effects": [
    {
      "type": "place_fluid",
      "properties": {
        "fluid": "minecraft:water",
        "radius": 2,
        "density": 0.8
      }
    },
    {
      "type": "particles",
      "properties": {
        "particle": "minecraft:splash",
        "count": 50,
        "speed": 0.3
      }
    }
  ]
}

熔岩

{
  "fluid": "minecraft:lava",
  "effects": [
    {
      "type": "place_fluid",
      "properties": {
        "fluid": "minecraft:lava",
        "radius": 2,
        "density": 0.6
      }
    },
    {
      "type": "explosion",
      "properties": {
        "power": 2.0,
        "fire": true,
        "break_blocks": false
      }
    },
    {
      "type": "particles",
      "properties": {
        "particle": "minecraft:flame",
        "count": 80,
        "speed": 0.4
      }
    }
  ]
}

常见问题

Q: 如何安装扩展?
A: 安装模组,运行一次游戏,将你的 JSON 文件放入 config/fluid_shell_extensions/effects/,然后重启游戏或服务器。

Q: 如何创建自定义扩展?
A: 请遵循上述编写指南。

Q: 如何在多人服务器上设置?
A: 服务器和客户端都需要相同的配置。将文件放在服务器的 serverconfig/fluid_shell_extensions/effects/ 目录中(服务端配置优先)。

Q: 如何报告错误或提出建议?
A: 请在模组的讨论页面留言。提供完整的日志和复现步骤会有很大帮助。


总结

Fluid Shell Extensions 将流体弹壳从单纯的弹药转变为高度可定制的投射物,为你的游戏体验增添了更多的乐趣和策略性。


你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源