职业增强
职业增强引入了一个极其灵活、由配置驱动的职业系统。它允许你通过深度模组支持实现自定义职业,并附带大量其他功能!
功能
⭐- 流畅的 GUI -⭐
一个干净、响应式的职业选择界面。
⭐- 职业是如何工作的? -⭐
整合包开发者可以分配:
- 起始物品
- 属性(增益与减益)
- 命令(用于 pehkui 等)
- 文本的颜色代码(例如:&6这将是橙色文本&r - &a这将是绿色&r)
!- 配置 -!
该模组中的几乎所有内容都是可定制的,让整合包开发者能够随心所欲地进行操作!
关于如何创建自定义职业的教学:
- 找到配置文件。| class_enhancement.toml
- 找到 [custom_classes] 部分。
- 进行配置!在这里我们可以使用 100 个预置的自定义职业,我们只需根据喜好定制它们即可!
(别忘了设置自定义职业的数量上限)
示例:
[custom_classes.custom_0]
#唯一内部 ID。留空则禁用。 | 必须分配,否则该职业基本处于禁用状态。
id = ""
#在 GUI 中显示的显示名称。
name = "New Class"
#面板中显示的描述文本。
description = "A custom path."
#外观统计摘要行。
stats = ["&a+20% Speed", "&c-2 Health"]
#机械修饰符。
attributes = []
#主手物品。
main_hand = ""
#副手物品。
off_hand = ""
#盔甲物品。
armor = []
#起始物品。
items = []
#选中此职业时执行的命令。使用 %player% 代表玩家名称。
commands = []
以下是关于命令如何工作的快速教程:
命令系统 - 快速参考指南
? 命令语法规则
✅ 请:
不带 / 前缀编写命令
使用 %player% 占位符代表玩家名称
先在聊天中使用 / 手动测试命令
对于复杂设置使用多条命令
❌ 请勿:
在命令开头包含 /
硬编码玩家名称
忘记先手动测试命令
使用仅客户端的命令
? 快速示例
基础尺寸修改 (Pehkui)
[classes.tank]
commands = ["scale set %player% 1.5"]
多条命令
[classes.warrior]
commands = [
"effect give %player% minecraft:strength infinite 0 true",
"attribute %player% minecraft:generic.attack_damage base set 3.0"
]
复杂设置
[custom_classes.custom_0]
id = "assassin"
commands = [
"scale set %player% 0.75",
"effect give %player% minecraft:speed infinite 1 true",
"attribute %player% minecraft:generic.movement_speed base set 0.12"
]
尺寸类模组 (Pehkui, Chiseled Me 等)
# 变大
commands = ["scale set %player% 2.0"]
# 变小
commands = ["scale set %player% 0.5"]
永久效果
# 无粒子效果(末尾为 true)
commands = ["effect give %player% minecraft:night_vision infinite 0 true"]
# 有粒子效果(末尾为 false)
commands = ["effect give %player% minecraft:speed infinite 1 false"]
属性
# 设置基础值
commands = ["attribute %player% minecraft:generic.max_health base set 30.0"]
# 步高(攀爬方块)
commands = ["attribute %player% minecraft:generic.step_height base set 1.5"]
# 击退抗性
commands = ["attribute %player% minecraft:generic.knockback_resistance base set 0.5"]
传送
# 传送 + 设置出生点
commands = [
"tp %player% 100 64 200",
"spawnpoint %player% 100 64 200"
]
队伍
# 加入队伍
commands = ["team join warriors %player%"]
物品
# 给予物品
commands = [
"give %player% minecraft:diamond_sword 1",
"give %player% minecraft:golden_apple 5"
]
标题
# 显示标题
commands = [
"title %player% title {\"text\":\"WARRIOR\",\"color\":\"gold\",\"bold\":true}",
"title %player% subtitle {\"text\":\"Strength and Honor\",\"color\":\"yellow\"}"
]
顺序很重要:命令按顺序执行
commands = [
"tp %player% 0 100 0", # 先传送
"scale set %player% 2.0" # 然后缩放
]
? 有用命令参考
Vanilla Minecraft
effect give %player% <effect> <duration> <amplifier> <hideParticles>
attribute %player% <attribute> base set <value>
tp %player% <x> <y> <z>
spawnpoint %player% <x> <y> <z>
give %player% <item> <count>
title %player% title <json>
playsound <sound> master %player% ~ ~ ~ <volume> <pitch>
常见属性
minecraft:generic.max_health - 生命值(默认:20.0)
minecraft:generic.movement_speed - 速度(默认:0.1)
minecraft:generic.attack_damage - 伤害(默认:1.0)
minecraft:generic.knockback_resistance - 抗性(0.0-1.0)
minecraft:generic.step_height - 攀爬方块(默认:0.6)
流行模组
Pehkui: scale set %player% <value>
Origins: origin set %player% <origin>
Vampirism: vampirism level %player% <level>
(请查阅你的模组文档以获取确切命令)
记住:配置中不要加 / 前缀,但手动测试时要加上!
⭐- 跨模组兼容性 -⭐
专为 Difficulty Enhancement 设计!
本模组提供了与 Difficulty Enhancement 模组的跨模组兼容。两个模组配合完美,我甚至建议你将它们一起使用!
你可以自由地将本模组用于你的整合包中。
Class Enhancement
Class Enhancement introduces an extremely flexible, configuration-driven class system. It allows you to implement custom classes with deep mod support with ton of other features!
Features
⭐- Smooth GUI -⭐
A clean, responsive interface for class selection.
⭐- How does Classes work? -⭐
Modpack developers can assign:
- Starter items
- Attributes (buffs & debuffs)
- Commands (for pehkui etc)
- Color codes for texts (ex: &6This will be a orange text&r - &aThis will be green&r)
!- Configuration -!
Nearly everything in this mod is customizable, allowing modpack developers to do anything they want!
Tutorial on how to do custom classes:
- Find config file. | class_enhancement.toml
- Find [custom_classes] segment.
- Configure! In here we can use 100 pre-existing custom classes, we just gotta customize them to our liking!
(Don't forget to set the custom class limit)
Example:
[custom_classes.custom_0]
#Unique internal ID. Leave empty to disable. | Needs to be assigned, otherwise the class is basically disabled.
id = ""
#Display name shown in GUI.
name = "New Class"
#Lore text shown in the panel.
description = "A custom path."
#Cosmetic stat summary lines.
stats = ["&a+20% Speed", "&c-2 Health"]
#Mechanical modifiers.
attributes = []
#Main hand item.
main_hand = ""
#Off hand item.
off_hand = ""
#Armor items.
armor = []
#Starting items.
items = []
#Commands to execute when this class is selected. Use %player% for player name.
commands = []
Here's a quick tutorial on how commands work:
Command System - Quick Reference Guide
? Command Syntax Rules
✅ DO:
Write commands without the / prefix
Use %player% placeholder for player names
Test commands manually first (with / in chat)
Use multiple commands for complex setups
❌ DON'T:
Include / at the start of commands
Hardcode player names
Forget to test commands manually first
Use client-side only commands
? Quick Examples
Basic Size Modification (Pehkui)
[classes.tank]
commands = ["scale set %player% 1.5"]
Multiple Commands
[classes.warrior]
commands = [
"effect give %player% minecraft:strength infinite 0 true",
"attribute %player% minecraft:generic.attack_damage base set 3.0"
]
Complex Setup
[custom_classes.custom_0]
id = "assassin"
commands = [
"scale set %player% 0.75",
"effect give %player% minecraft:speed infinite 1 true",
"attribute %player% minecraft:generic.movement_speed base set 0.12"
]
Size Mods (Pehkui, Chiseled Me, etc.)
# Make bigger
commands = ["scale set %player% 2.0"]
# Make smaller
commands = ["scale set %player% 0.5"]
Permanent Effects
# No particle effects (true at end)
commands = ["effect give %player% minecraft:night_vision infinite 0 true"]
# With particles (false at end)
commands = ["effect give %player% minecraft:speed infinite 1 false"]
Attributes
# Set base value
commands = ["attribute %player% minecraft:generic.max_health base set 30.0"]
# Step height (climb blocks)
commands = ["attribute %player% minecraft:generic.step_height base set 1.5"]
# Knockback resistance
commands = ["attribute %player% minecraft:generic.knockback_resistance base set 0.5"]
Teleportation
# Teleport + set spawn
commands = [
"tp %player% 100 64 200",
"spawnpoint %player% 100 64 200"
]
Teams
# Join a team
commands = ["team join warriors %player%"]
Items
# Give items
commands = [
"give %player% minecraft:diamond_sword 1",
"give %player% minecraft:golden_apple 5"
]
Titles
# Show title
commands = [
"title %player% title {\"text\":\"WARRIOR\",\"color\":\"gold\",\"bold\":true}",
"title %player% subtitle {\"text\":\"Strength and Honor\",\"color\":\"yellow\"}"
]
Order Matters: Commands execute in sequence
commands = [
"tp %player% 0 100 0", # Teleport first
"scale set %player% 2.0" # Then scale
]
? Useful Commands Reference
Vanilla Minecraft
effect give %player% <effect> <duration> <amplifier> <hideParticles>
attribute %player% <attribute> base set <value>
tp %player% <x> <y> <z>
spawnpoint %player% <x> <y> <z>
give %player% <item> <count>
title %player% title <json>
playsound <sound> master %player% ~ ~ ~ <volume> <pitch>
Common Attributes
minecraft:generic.max_health - Health (default: 20.0)
minecraft:generic.movement_speed - Speed (default: 0.1)
minecraft:generic.attack_damage - Damage (default: 1.0)
minecraft:generic.knockback_resistance - Resistance (0.0-1.0)
minecraft:generic.step_height - Block climb (default: 0.6)
Popular Mods
Pehkui: scale set %player% <value>
Origins: origin set %player% <origin>
Vampirism: vampirism level %player% <level>
(Check your mod's docs for exact commands)
Remember: No / prefix in config, but use it when testing manually!
⭐- Cross Compatibility -⭐
Made to work with Difficulty Enhancement!
This mod provides a cross compatibility with Difficulty Enhancement mod. Both mods work perfectly fine together and i even suggest you to use them together!
You can use this mod in your modpack freely.
评论 0
登录后参与评分
还没有评论,来抢沙发吧