☢️ Alexy's Radiation Lib — 区域、辐射与排放
RadioLib 是一款受《潜行者》/Stalcraft 启发的辐射系统,适用于 Forge 1.20.1。它并非即插即用:需要进行配置,主要面向希望在模组服务器中引入辐射系统的服务器管理员。
该模组提供核心引擎(辐射机制、区域划分、伤害计算、数据同步);而内容部分(战利品、任务、平衡性调整)则通过配置文件和 KubeJS 由您自行决定。
您可以在 ./config/radlib/wiki.txt 中找到一份详细的“维基”文档,其中解释了每个命令、功能以及 KubeJS API 的用法。
功能特性
三种辐射类型
rad(电离辐射)、bio(污染辐射)和 psy(精神辐射)。每种类型都有独立的伤害类型、衰减率和负面效果。所有类型的辐射均可无视护甲——只有配置了抗辐射装备才能减少其影响。
区域划分
使用选择棒定义放射性区域,支持 方块盒状 或 逐块接触式 危害区域(例如海草、岩浆)。共有 6 个等级,从 0(微弱背景辐射)到 5(几秒内杀死无防护玩家)。按切换键(默认为 ALT+Z)可以以彩色线框形式显示区域。
掩体/避难所
安全区域,进入后完全阻断辐射摄入并保护免受排放影响。
辐射排放
一种定时、全服生效的事件。在此期间,天空替换为自定义天穹,云层隐藏,雾气加重,播放环境音效,并在快捷栏上方显示警告提示。不在掩体内的玩家在短暂暴露后会受到致命伤害。时间参数可通过命令设置并同步至客户端。
属性 / 装备
辐射抗性、剂量耐受性和恢复速度是您可以分配给盔甲或 Curios 槽位物品的属性。此外,还有用于使佩戴者受到辐射的物品负向属性。
盖革计数器
一个 Curios 物品,会发出滴答声,其强度随您当前所在位置的辐射等级而变化。
抗辐射消耗品
任何食物或饮品都可以配置为清除剂量、提供临时抗性,或加速辐射衰减。
负面状态效果
按类型划分的中毒阶段(从轻度到急性),可配置伤害值、触发概率和药水效果。配置采用 JSON 格式(支持注释),并在配置文件夹中生成 wiki.txt 参考文件。
服务器端支持
- KubeJS API —— 提供外观接口及多种事件(排放阶段、辐射死亡、进入/离开区域、阶段变更),可用于脚本化战利品、任务、自动排放、区域门禁等。
- 多人游戏 —— 区域信息自动同步至客户端;服务器对伤害判定拥有最终权限。
- 命令 —— 区域管理、掩体设置、排放控制和剂量管理均通过
/radiation 命令完成。
快速入门
- 安装模组(Forge 1.20.1)并搭配 Curios。
- 执行
/radiation tool give,选择两个对角点,然后运行 /radiation zone create rad 4 wasteland。
- 按下 ALT+Z 查看区域。
- 执行
/radiation emission start 30 60 测试一次排放事件。
☢️ Alexy's Radiation Lib — Zones, Radiations & Emissions
RadioLib is a STALKER/Stalcraft-inspired radiation system for Forge 1.20.1. It is not plug-and-play: it needs configuring, and is aimed at server admins who want a radiation system on a modded server.
The mod is the engine (radiation, zones, damage, sync); the content (loot, quests, balance) is left to you, via config and KubeJS.
You can find a detailed "wiki" in the ./config/radlib/wiki.txt that explains every command, feature and KubeJS api usage.
Features
Three radiation types
rad (ionizing), bio (contamination), and psy (psychic). Each has its own damage type, decay rate, and debuff effects. All of them bypass armor — only configured anti-rad gear reduces them.
Zones
Define radioactive areas with a selection wand, as boxes or per-block contact hazards (e.g. seagrass, magma). There are 6 tiers, from 0 (faint background) to 5 (kills an unprotected player in seconds). A toggle key (default ALT+Z) shows zones as colored wireframes.
Bunkers
Safe zones that block radiation intake and protect from emissions while you are inside them.
Emissions
A timed, server-wide event. During it the sky is replaced by a custom skybox, clouds are hidden, fog thickens, ambient sounds play, and a warning shows above the hotbar. Players who are not in a bunker take lethal damage after a short exposure. Timings are set per command and synced to clients.
Attributes / gear
Radiation resistance, dose tolerance, and recovery are attributes you assign to armor or Curios via config. There are also negative attributes for items that irradiate the wearer.
Geiger counter
A Curios item that plays a ticking sound whose intensity follows the radiation tier at your position.
Anti-rad consumables
Any food or drink can be configured to remove dose, grant temporary resistance, or speed up decay.
Debuffs
Per-type poisoning stages (low to acute) with configurable damage, chance, and potion effects. Configuration is in JSON (comments supported), and a wiki.txt reference is generated into the config folder.
For servers
- KubeJS API — a facade plus events (emission phase, death by radiation, zone enter/exit, stage change) for scripting loot, quests, auto-emissions, zone gating, etc.
- Multiplayer — zones sync to clients automatically; the server is authoritative for damage.
- Commands — zones, bunkers, emissions, and dose management are handled through
/radiation.
Quick start
- Install the mod (Forge 1.20.1) with Curios.
/radiation tool give, select two corners, then /radiation zone create rad 4 wasteland.
- Press ALT+Z to view the zone.
/radiation emission start 30 60 to test an emission.
评论 0
登录后参与评分
还没有评论,来抢沙发吧