一个基于数据驱动的装饰性等级系统。
Tier Tower 添加了聊天徽章和名牌等装饰外观,玩家可以通过献祭物品来解锁它们。
同时还添加了一些新的装饰方块。
- 将物品投入漩涡(Vortex)以献祭它们并获得声望(eminence)。(集成 EMI 时会显示有效物品。)
- 跳入漩涡以献祭当前的声望以获得威望(prestige),从而加速未来的升级速度。
- 默认情况下漩涡无法合成,因为服务器可能希望将其限制在特定区域。
- 可以通过在方块的正面顶部、底部或侧面使用方尖碑(Obelisk)物品来设置方尖碑展示台的偏移量。

数据包格式
概述
Tier Tower 围绕一系列层级构建,进度基于自定义的数学公式。
序列 tier_tower:main 是特殊的,因为玩家将从该序列的第 0 级开始。
其他序列可以通过命令或序列进度创建并分配给玩家。
威望系统
玩家根据序列 JSON 中定义的 prestige_value_function 获得每个序列的威望点数。
当玩家进行威望提升时,他们的威望点数会增加此数量。
然后使用 prestige_multiplier_function 重新计算威望乘数,这会影响未来的升级成本。
序列格式
// data/tier_tower/tier_tower/sequence/main.json
{
// 如果第一级未指定基础升级成本,则使用此值
"default_base_leveling_cost": 1,
/*
威望值函数确定在进行威望提升时获得的增量威望点数。
可用变量:
- points: 当前序列中的总点数
- tier: 当前层级的(从 0 开始的)索引
- level: 当前层级内当前等级的(从 0 开始的)索引
- level_points: 当前等级内的点数数量
*/
"prestige_value_function": "(points - 5000.0)",
/*
威望乘数函数确定升级期间应用的最大乘数。
每个物品的实际乘数将是 1.0 到该值之间的随机值。
可用变量:
- prestige_points: 当前序列中累积的总威望点数
*/
"prestige_multiplier_function": "min(8.0, (1.0 + (prestige_points / 5000.0)))",
// 必须按顺序通过的层级
"tiers": [
"minecraft:copper",
/* ... */
"minecraft:netherite"
],
// 可选:完成此序列后切换到的下一个序列
"next_sequence": "tier_tower:example"
}
层级格式
// data/minecraft/tier_tower/tier/netherite.json
{
// 必须完成的该层级等级数量,以达到下一层级
"level_count": 10,
/*
该层级第 0 个等级的升级成本。
可用变量:
- prev: 上一层级最高等级之外的假设升级成本,如果是第一级则为 `default_base_leveling_cost`
*/
"base_leveling_cost": "(prev * 0.75)",
/*
该层级剩余等级的升级成本。
可用变量:
- levels: `level_count` 的值,为方便起见提供
- base: 计算出的 `base_leveling_cost` 值
- prev: 该层级前一个等级的升级成本
- level: 正在计算成本的等级索引
*/
"leveling_cost_function": "((((5.0 * level) + 610.0) * 32.0) + base)",
// 可选:在此层级中声望点会随时间流逝而减少(对于制作“无限”最高层级很有用)
"erosion_rate": {
// 每个间隔损失的声望点数
"loss": 1,
// 每次侵蚀事件之间的刻数
"interval": 20,
},
}
表达式语言
公式可以使用标准数学运算符(+, -, *, /, ^)、用于分组的括号以及以下函数编写:
min(a, b, ...):返回参数的最小值
max(a, b, ...):返回参数的最大值
sqrt(x):返回 x 的平方根
log(x):返回 x 的自然对数
exp(x):返回 e 的 x 次幂
e():返回 e 的值 (2.71828...)
pow(x, y):返回 x 的 y 次幂
abs(x):返回 x 的绝对值
floor(x):返回小于或等于 x 的最大整数
ceil(x):返回大于或等于 x 的最小整数
round(x):返回最接近 x 的整数
pi():返回 π 的值 (3.14159...)
sin(x), cos(x), tan(x):三角函数(x 为弧度)
资源包格式
除了数据包条目外,还必须提供几种纹理。
我们将以层级 minecraft:copper 为例说明路径。
徽章纹理
assets/minecraft/textures/tier_tower/badge/copper.png 提供聊天徽章。
// assets/minecraft/textures/tier_tower/badge/copper.png.mcmeta
{
"tier_tower:chat_badge": {
// 徽章上用于等级编号的颜色
"text_color": {
"r": 236,
"g": 221,
"b": 255
}
}
}
框架纹理
assets/minecraft/textures/tier_tower/frame/copper.png 提供名牌框架。
它由三个 16x16 的部分组成,分别水平对齐到名牌的左侧、中间和右侧。
方尖碑纹理
assets/minecraft/textures/tier_tower/obelisk/copper.png 提供方尖碑的轮廓纹理。
塔楼纹理
assets/minecraft/textures/tier_tower/tower/copper.png 提供了在方尖碑进度显示中使用的塔楼切片纹理。
许可证
Tier Tower 采用 LGPL-3.0 许可证授权。更多详情请参阅 LICENSE.LESSER。
图标中使用了经过修改的 Kiwi Soda 字体。
部分 Create 的创作标签页和虚拟流体代码在 MIT 许可证下被使用。
鸣谢
- 代码由 Slimeist 编写
- 纹理与设计由以下人员完成:
- Charon
- Luna
- pinkmachine
- Vivian
A data-driven cosmetic leveling system.
Tier Tower adds chat badge and nameplate cosmetics that players can unlock by sacrificing items.
Several new decorative blocks are also added.
- Drop items into a Vortex to sacrifice them and gain eminence. (EMI integration shows valid items.)
- Jump down into a Vortex to sacrifice your current eminence to prestige, speeding up future leveling.
- The Vortex is uncraftable by default since servers may want to restrict it to certain areas.
- The Obelisk display's offset can be set by using an Obelisk item on the top, bottom, or sides of the front face of the block.

Datapack Format
Overview
Tier Tower is based around sequences of tiers, with progression based on custom mathematical formulae.
The sequence tier_tower:main is special, as players will start at tier 0 of this sequence.
Other sequences can be created and assigned to players using commands or through sequence progression.
Prestige System
Players acquire prestige points per-sequence, according to the prestige_value_function defined in the sequence JSON.
When a player prestiges, their prestige points increase by this amount.
The prestige multiplier is then recalculated using the prestige_multiplier_function, which affects future leveling costs.
Sequence Format
// data/tier_tower/tier_tower/sequence/main.json
{
// if the first tier doesn't specify a base leveling cost, this value is used instead
"default_base_leveling_cost": 1,
/*
The prestige value function determines the incremental prestige points gained when prestiging.
Available variables:
- points: the total points in the current sequence
- tier: the (0-based) index of the current tier
- level: the (0-based) index of the current level within the current tier
- level_points: the number of points within the current level
*/
"prestige_value_function": "(points - 5000.0)",
/*
The prestige multiplier function determines the maximum multiplier applied during leveling.
The actual multiplier for each item will be a random value between 1.0 and this value.
Available variables:
- prestige_points: the total accumulated prestige points in the current sequence
*/
"prestige_multiplier_function": "min(8.0, (1.0 + (prestige_points / 5000.0)))",
// the tiers that must be progressed through, in order
"tiers": [
"minecraft:copper",
/* ... */
"minecraft:netherite"
],
// optional next sequence to switch to after completing this one
"next_sequence": "tier_tower:example"
}
Tier Format
// data/minecraft/tier_tower/tier/netherite.json
{
// the number of levels in this tier that must be completed to reach the next tier
"level_count": 10,
/*
The leveling cost for level index 0 in this tier.
Available variables:
- prev: the hypothetical leveling cost of the one beyond the highest level in the previous tier, or `default_base_leveling_cost` if this is the first tier
*/
"base_leveling_cost": "(prev * 0.75)",
/*
The leveling cost for the remaining levels in this tier.
Available variables:
- levels: the value of `level_count`, provided for convenience
- base: the computed value of `base_leveling_cost`
- prev: the leveling cost of the previous level in this tier
- level: the index of the level for which the cost is being computed
*/
"leveling_cost_function": "((((5.0 * level) + 610.0) * 32.0) + base)",
// optional: eminence points will be lost over time while in this tier (useful for making an 'infinite' highest tier)
"erosion_rate": {
// the number eminence points lost per interval
"loss": 1,
// the number of ticks between each erosion event
"interval": 20,
},
}
Expression Language
Formulae can be written with standard mathematical operators (+, -, *, /, ^), parentheses for grouping, and the following functions:
min(a, b, ...): returns the minimum of the arguments
max(a, b, ...): returns the maximum of the arguments
sqrt(x): returns the square root of x
log(x): returns the natural logarithm of x
exp(x): returns e raised to the power of x
e(): returns the value of e (2.71828...)
pow(x, y): returns x raised to the power of y
abs(x): returns the absolute value of x
floor(x): returns the largest integer less than or equal to x
ceil(x): returns the smallest integer greater than or equal to x
round(x): returns the nearest integer to x
pi(): returns the value of π (3.14159...)
sin(x), cos(x), tan(x): trigonometric functions (x in radians)
Resourcepack Format
In addition to the datapack entry, several textures must be provided.
We will use the tier minecraft:copper for example paths.
Badge Texture
assets/minecraft/textures/tier_tower/badge/copper.png provides the chat badge.
// assets/minecraft/textures/tier_tower/badge/copper.png.mcmeta
{
"tier_tower:chat_badge": {
// the color used for level numbering on the badge
"text_color": {
"r": 236,
"g": 221,
"b": 255
}
}
}
Frame Texture
assets/minecraft/textures/tier_tower/frame/copper.png provides the nameplate frame.
It is made up of three 16x16 sections, that are aligned horizontally to the left side, center, and right side of the nameplate respectively.
Obelisk Texture
assets/minecraft/textures/tier_tower/obelisk/copper.png provides the outline texture for the Obelisk.
Tower Texture
assets/minecraft/textures/tier_tower/tower/copper.png provides the tower slice texture used in the Obelisk progress display.
License
Tier Tower is licensed under the LGPL-3.0 license. See LICENSE.LESSER for more details.
A modified version of the Kiwi Soda font was used in the icon.
Sections of Create's creative tab and virtual fluid code were used under the MIT license.
Credits
- Code by Slimeist
- Textures and design by
- Charon
- Luna
- pinkmachine
- Vivian
评论 0
登录后参与评分
还没有评论,来抢沙发吧