通用
Pufferfish's Skills 的附加组件。
包含对以下模组的支持:
建议查阅文档:
属性功能已移至 Additional Attributes
经验来源
收获作物
挂钩获取战利品表物品的逻辑。
操作数:
player: 正在收获作物的玩家(原型为 Player)block: 被收获的方块(原型为 Block State)tool: 使用的工具(原型为 Item Stack)dropped_seeds: 基于#forge:seeds掉落的种子数量(原型为number)dropped_crops: 基于#forge:crops掉落的作物数量(原型为number)
示例:
{
"type": "pufferfish_unofficial_additions:harvest_crops",
"data": {
"variables": {
"crops": {
"operations": [
{
"type": "block"
},
{
"type": "puffish_skills:test",
"data": {
"block": "#minecraft:crops"
}
}
]
},
"dropped_crops": {
"operations": [
{
"type": "dropped_crops"
}
]
},
"dropped_seeds": {
"operations": [
{
"type": "dropped_seeds"
}
]
}
},
"experience": [
{
"condition": "crops",
"expression": "dropped_crops + (dropped_seeds * 0.2)"
}
]
}
}
钓鱼经验
每次钓到物品时调用。
操作数:
player: 正在钓鱼的玩家(原型为 Player)tool: 使用的工具(原型为 Item Stack)fished: 钓到的物品(原型为 Item Stack)
示例:
{
"type": "pufferfish_unofficial_additions:fishing",
"data": {
"variables": {
"fishes": {
"operations": [
{
"type": "fished"
},
{
"type": "puffish_skills:test",
"data": {
"item": "#minecraft:fishes"
}
}
]
},
"fished_amount": {
"operations": [
{
"type": "fished"
},
{
"type": "count"
}
]
}
},
"experience": [
{
"condition": "fishes",
"expression": "fished_amount * 4"
},
{
"condition": "!fishes",
"expression": "fished_amount * 2"
}
]
}
}
奖励
效果
应用效果(无限持续时间):
- 在从定义中移除奖励之前,你必须重置技能(或手动移除效果)。
{
"type": "pufferfish_unofficial_additions:effect",
"data": {
"effect": "minecraft:regeneration",
"amplifier": 0,
"type": "GRANT"
}
}
授予免疫直到达到特定增幅器等级:
{
"type": "pufferfish_unofficial_additions:effect",
"data": {
"effect": "minecraft:wither",
"amplifier": 1,
"type": "IMMUNE"
}
}
修改传入效果的持续时间和/或增幅器等级:
- 如果由于修改导致持续时间变为
0,则不会应用该效果- 有效的操作符为
+,-,x和/ - 此元素为可选
- 有效的操作符为
- 如果由于修改导致增幅器等级低于
0,则不会应用该效果
{
"type": "pufferfish_unofficial_additions:effect",
"data": {
"effect": "minecraft:slowness",
"amplifier": -2,
"duration_modification": "/2.5",
"type": "MODIFY"
}
}
可行走的细雪
允许在细雪上行走。
{
"type": "puffish_skills:tag",
"data": {
"tag": "walk_on_powder_snow"
}
}
Iron's Spells 'n Spellbooks
经验来源
添加了施法时的经验来源。
注意:经验源将对每个法术刻触发,这意味着对于持续型法术,它可能会多次触发(参见 expected_ticks 参数)。
操作数:
player: 施法者(原型为 Player)main_hand: 主手物品(原型为 Item Stack)spellbook: 当前装备的法术书(原型为 Item Stack)school: 法术的学派类型(原型为自定义)- 值由
school定义
- 值由
spell: 法术(原型为自定义)- 值由
spell定义 - 包含以下子操作:
min_level: 此类法术的最低等级(原型为number)max_level: 此类法术的最高等级(原型为number)cast_type: 法术的施放方式(INSTANT,LONG,CONTINUOUS)(原型为自定义)- 值由
value定义
- 值由
- 值由
level: 法术等级(包括通过物品等进行的修改)(原型为number)min_level_rarity: 基于稀有度的法术最低等级(原型为number)rarity_name: 稀有度名称(COMMON,RARE,EPIC,LEGENDARY)(原型为自定义)- 值由
value定义
- 值由
rarity: 稀有度的序数(0代表COMMON,4代表LEGENDARY)(原型为number)mana_cost: 该等级下的法术法力消耗(如果施放需要消耗法力)(原型为number)mana_cost_per_second: 仅针对持续型法术设置(且施放需要消耗法力时)(原型为number)cast_duration: 持续型法术的持续时间(秒)(原型为number)cast_charge_time: 法术的蓄力时间(如果有)(秒)(原型为number)cooldown: 施放法术后的冷却时间(秒)(原型为number)expected_ticks: 瞬发型和长吟唱型法术将为1;对于持续型法术,则是如果使用完整持续时间时的法术刻数(原型为number)
示例:
{
"type": "pufferfish_unofficial_additions:spell_casting",
"data": {
"variables": {
"level": {
"operations": [
{
"type": "level"
}
]
},
"rarity": {
"operations": [
{
"type": "rarity_name"
},
{
"type": "puffish_skills:test",
"data": {
"value": "LEGENDARY"
}
},
{
"type": "switch",
"data": {
"true": 5,
"false": 1
}
}
]
},
"mana_cost": {
"operations": [
{
"type": "mana_cost"
}
]
},
"mana_cost_per_second": {
"operations": [
{
"type": "mana_cost_per_second"
}
]
},
"spellbook": {
"operations": [
{
"type": "spellbook"
},
{
"type": "puffish_skills:test",
"data": {
"item": "irons_spellbooks:iron_spell_book"
}
}
]
},
"fire_school": {
"operations": [
{
"type": "school"
},
{
"type": "puffish_skills:test",
"data": {
"school": "irons_spellbooks:fire"
}
}
]
},
"blaze_storm": {
"operations": [
{
"type": "spell"
},
{
"type": "puffish_skills:test",
"data": {
"spell": "irons_spellbooks:blaze_storm"
}
}
]
}
},
"experience": [
{
"condition": "spellbook & !blaze_storm & fire_school",
"expression": "level + (mana_cost / 5) + rarity"
},
{
"condition": "blaze_storm",
"expression": "(level + (mana_cost_per_second / 10)) / 2"
}
]
}
}
你是这个资源的作者?登录后可认领此资源。
相似资源
探险者指南针Explorer's Compass
Chaosyr
让你能够在世界中的任何位置定位结构。
冒险装备
108
群峦传说TerraFirmaCraft
eerussianguy
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
冒险玩法机制
97
Hodgepodge
mitchej123
一堆修复
玩法机制优化
78
Cobblemon Spawn Notification
tmetcalfe89
如果游戏能告知重要的刷新点,会怎样?
实用玩法机制
70
Vivecraft
ferriarnus
一款适用于你选择的加载器的 Minecraft VR 模组!
玩法机制前置
70
Armor Poser
Mrbysco
为盔甲架添加图形用户界面,允许你配置其姿势和其他属性
玩法机制
67
评论 0
登录后参与评分
还没有评论,来抢沙发吧