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"
}
}
为施放法术添加了经验来源
注意:经验来源会在每个法术刻触发,这意味着对于持续法术可能会多次触发(参见 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)minlevelrarity:基于稀有度的法术最低等级(原型为 number)rarity_name:稀有度名称(COMMON、RARE、EPIC、LEGENDARY)(原型为自定义)value 定义rarity:稀有度的序号(0 为 COMMON,4 为 LEGENDARY)(原型为 number)mana_cost:该等级法术的法力消耗(如果施放消耗法力)(原型为 number)manacostper_second:仅对持续法术设置(且如果施放消耗法力)(原型为 number)cast_duration:持续法术的持续时间(秒)(原型为 number)castchargetime:法术的充能时间(如果有)(秒)(原型为 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"
}
]
}
} 友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:214,582 | 历史访问人次:323,906
今日访问人数:21,517 | 今日访问人次:25,657
昨日访问人数:30,537 | 昨日访问人次:36,142
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6