东方命运星座
概述
- 非常适合 RPG 风格的整合包
- 添加了一个 7 级(C0-C6)的星座进阶系统。
- 按 C 键(默认)打开星座界面。
- 需要命运水晶(由 1x 下界之星、4x 下界合金锭和 4x 钻石块合成)来解锁星座等级。
- 解锁星座阶段以获取相应的能力、独特的背景图像和专属 lore 故事(完全可配置)。
配置指南
1. 标题、故事和描述
首次启动后,配置文件会生成在 config/touhou_destiny/ 目录中。你可以打开这些 .txt 文件,并以 UTF-8 格式编写自定义文本:
stories/title_x.txt:更改星座的标题。
stories/story_x.txt:更改背景故事。
descriptions/ability_x.txt:更改 UI 中显示的能力描述。
2. 背景图像与星星位置
打开 config/touhou_destiny-client.toml 以配置视觉设置:
[background_textures]:更改背景的纹理路径(background_0 到 background_6)。你可以通过创建资源包并将自定义 PNG 文件放置在 assets/touhou_destiny/textures/gui/background_x.png 来替换默认图片。
[star_positions]:调整 GUI 中星星的 X 和 Y 坐标(从 0.0 到 1.0)。
KubeJS 集成(推荐)
虽然模组默认提供简单的原版属性,但强烈建议使用 KubeJS 为你的整合包编写复杂或自定义的星座能力脚本。
你可以使用提供的 Java API 查询玩家当前的星座等级(0 到 6):com.touhou.destiny.integration.ConstellationHelper.getLevel(player)。
KubeJS 示例(服务端 server_scripts):
EntityEvents.hurt(event => {
let player = event.entity;
if (player.isPlayer()) {
// 查询玩家已解锁的星座等级
let level = Java.resolve('com.touhou.destiny.integration.ConstellationHelper').getLevel(player);
if (level >= 1) {
// 示例:如果等级为 1 或更高,减少 20% 受到的伤害
event.damage = event.damage * 0.8;
}
}
});
依赖项
- 必需依赖: ModernUI(必须在客户端安装)
- 环境: Forge 1.20.1



Touhou Destiny Constellations
Overview
- Perfect for RPG-style modpacks
- Adds a 7-level (C0-C6) constellation progression system.
- Press the C key (Default) to open the constellation interface.
- Requires Fate Crystals (crafted with 1x Nether Star, 4x Netherite Ingots, and 4x Diamond Blocks) to unlock constellation levels.
- Unlock constellation phases to acquire corresponding abilities, distinct background imagery, and exclusive lore stories (fully configurable).
Configuration Guide
1. Titles, Stories, and Descriptions
Configuration files generate in config/touhou_destiny/ after the first launch. You can open these .txt files and write your custom text in UTF-8 format:
stories/title_x.txt: Change the constellation's title.
stories/story_x.txt: Change the background story.
descriptions/ability_x.txt: Change the ability description shown in the UI.
2. Background Images & Star Positions
Open config/touhou_destiny-client.toml to configure visual settings:
[background_textures]: Change the texture paths for the backgrounds (background_0 to background_6). You can replace the default images by creating a Resource Pack and placing your custom PNG files at assets/touhou_destiny/textures/gui/background_x.png.
[star_positions]: Adjust the X and Y coordinates (from 0.0 to 1.0) of the stars on the GUI.
KubeJS Integration (Recommended)
While the mod provides simple vanilla attributes by default, it is highly recommended to use KubeJS to script complex or custom constellation abilities for your modpack.
You can query a player's current constellation level (0 to 6) using the provided Java API: com.touhou.destiny.integration.ConstellationHelper.getLevel(player).
KubeJS Example (Server-side server_scripts):
EntityEvents.hurt(event => {
let player = event.entity;
if (player.isPlayer()) {
// Query the player's unlocked constellation level
let level = Java.resolve('com.touhou.destiny.integration.ConstellationHelper').getLevel(player);
if (level >= 1) {
// Example: Reduce incoming damage by 20% if level is 1 or higher
event.damage = event.damage * 0.8;
}
}
});
Dependencies
- Required Dependency: ModernUI (Must be installed on the client side)
- Environment: Forge 1.20.1



评论 0
登录后参与评分
还没有评论,来抢沙发吧