跳到正文

RadLink

Lightweight JSON-driven scripting engine for Minecraft Forge. Create dynamic triggers, world conditions, math logic, and custom events without touching Java code.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

⚡ RadLink

RadLink is a lightweight, flexible JSON-driven scripting engine designed for Minecraft Forge. It allows modpack creators and developers to build complex interactive mechanics, custom item behaviors, dynamic world events, and environment logic — without writing Java code or recompiling the mod.

All configuration is managed dynamically directly inside your save folder (run/saves/<WorldName>/radlink/).


💡 More information

  • More information: In my github

🔥 Key Features

  • JSON-Driven Triggers: Assign custom right-click, block-use, or world-event scripts using simple, readable JSON files.
  • Built-in Math Parser: Evaluate real-time mathematical expressions with variables, support for dynamic expressions like "${global_atmosphere} / 2 >= 100".
  • Branching & Sequences:
  • Group multiple actions seamlessly using run arrays.
  • Use conditional execution (If/Then and case structures) for deep logic flows.
  • Dynamic World Actions:
  • World Manipulation: explosion, set (supports fill, destroy, replace modes with block tests), summon, particle, sound.
  • Player Interactions: damage, effect, dynamic command execution, and system say / message displays.
  • Global & Entity Variables: Persistent variable tracking saved automatically in variables.json for complex stateful mechanics.

🛠️ Configuration Example

Here is an example of an item trigger featuring top-level math verification and a nested condition script:

[
  {
    "id": "my_mod:test_item",
    "name": "Test Item",
    "trigger": "right_click",
    "if": {
      "calc": {
        "expression": "${global_atmosphere} / 2",
        ">=": 100
      }
    },
    "then": [
      {
        "explosion": {
          "radius": 5.0,
          "fire": true
        },
        "run": [
          {
            "command": "title @s title {\"text\":\"Triggered!\",\"color\":\"red\"}"
          },
          {
            "command": "give @s minecraft:diamond 1"
          }
        ]
      }
    ]
  }
]

常见问题

RadLink 支持哪些 Minecraft 版本?

RadLink 支持 Minecraft Java 版 1.20.2–1.20.6,共 5 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

RadLink 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分