跳到主要内容

龙能力类型 JSON

dragon_mounts:dragon_ability_type 注册表不加载独立的数据包文件。能力对象放在纯种龙的 abilities 数组中,并通过其必填的 type 字段分发。

基本格式​

{
"type": "dragon_mounts:frost_walker",
"level": 2
}

所有内置能力都使用 dragon_mounts 命名空间。没有额外参数的能力只需要 type 字段。

内置能力​

type参数默认值说明
fire_proofrange (integer), duration (integer)10, 40为附近的主人提供抗火效果。
hot_feetfootprint_chance (float)0.05移动时留下燃烧的脚印。
ember_aurarange (float), fire_ticks (integer)10.0, 4点燃附近的敌对生物。
infernal_pactprotect_dragon, protect_rider (boolean)均为 true阻止相关的敌对生物(例如烈焰人)将龙或骑手作为目标。
frost_walkerlevel (integer)1为龙施加冰霜行者效果。
frost_aurarange (float), duration, amplifier (integer)10.0, 100, 1对附近的敌对生物施加缓慢。
nature_blessingrange, duration (integer)10, 40为附近的主人提供生命恢复。
camouflagerange (float)5.0使龙与骑手不会被远处的目标选择发现。
aquatic_graceduration, range (integer)400, 0当龙在水中时为主人提供夜视。
swift_swimrange, duration, amplifier (integer)2, 40, 1在水中为龙与主人提供海豚的恩惠。
floral_trailfootprint_chance (float), grass_light_threshold (integer)0.05, 4移动时生成草、花和蘑菇。
ender_cloakrange (float)32.0防止附近的主人或骑手激怒末影人。
void_walkerrange (float)5.0防止附近的主人受到摔落伤害。
gem_guarddeflect_chance (float)0.25有概率弹开弹射物。
crystal_harmonyprotection_chance (float)0.1有概率防止龙或骑手受到伤害。
echo_senserange (float), duration (integer)20.0, 80使附近的敌对生物发光。
ethereal_harmonyprotect_dragon, protect_rider (boolean)均为 true阻止亡灵生物将龙或骑手作为目标。
quick_flightflying_speed_bonus (float)0.0增加飞行速度属性。

示例​

{
"abilities": [
{
"type": "dragon_mounts:fire_proof",
"range": 16,
"duration": 100
},
{
"type": "dragon_mounts:quick_flight",
"flying_speed_bonus": 0.08
},
{
"type": "dragon_mounts:ender_cloak"
}
]
}
提示

所有参数都是可选的。只提供 type 时使用上表列出的 Codec 默认值。