47 lines
3.4 KiB
Mcfunction
47 lines
3.4 KiB
Mcfunction
## 事件触发
|
|
scoreboard objectives add fz.event.aviating_distance minecraft.custom:aviate_one_cm
|
|
scoreboard objectives add fz.event.damage_taken minecraft.custom:damage_taken
|
|
scoreboard objectives add fz.event.death_count deathCount
|
|
scoreboard objectives add fz.event.leave_game minecraft.custom:leave_game
|
|
scoreboard objectives add fz.event.play_seconds minecraft.custom:play_time
|
|
scoreboard objectives add fz.event.villager_trade minecraft.custom:traded_with_villager
|
|
|
|
## 使用工具
|
|
scoreboard objectives add fz.event.used_tool.dig_offset dummy
|
|
scoreboard objectives add fz.event.used_tool.iron_axe minecraft.used:iron_axe
|
|
scoreboard objectives add fz.event.used_tool.stone_axe minecraft.used:stone_axe
|
|
scoreboard objectives add fz.event.used_tool.golden_axe minecraft.used:golden_axe
|
|
scoreboard objectives add fz.event.used_tool.wooden_axe minecraft.used:wooden_axe
|
|
scoreboard objectives add fz.event.used_tool.diamond_axe minecraft.used:diamond_axe
|
|
scoreboard objectives add fz.event.used_tool.netherite_axe minecraft.used:netherite_axe
|
|
scoreboard objectives add fz.event.used_tool.iron_hoe minecraft.used:iron_hoe
|
|
scoreboard objectives add fz.event.used_tool.stone_hoe minecraft.used:stone_hoe
|
|
scoreboard objectives add fz.event.used_tool.golden_hoe minecraft.used:golden_hoe
|
|
scoreboard objectives add fz.event.used_tool.wooden_hoe minecraft.used:wooden_hoe
|
|
scoreboard objectives add fz.event.used_tool.diamond_hoe minecraft.used:diamond_hoe
|
|
scoreboard objectives add fz.event.used_tool.netherite_hoe minecraft.used:netherite_hoe
|
|
scoreboard objectives add fz.event.used_tool.iron_pickaxe minecraft.used:iron_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.stone_pickaxe minecraft.used:stone_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.golden_pickaxe minecraft.used:golden_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.wooden_pickaxe minecraft.used:wooden_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.diamond_pickaxe minecraft.used:diamond_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.netherite_pickaxe minecraft.used:netherite_pickaxe
|
|
scoreboard objectives add fz.event.used_tool.shears minecraft.used:shears
|
|
scoreboard objectives add fz.event.used_tool.iron_shovel minecraft.used:iron_shovel
|
|
scoreboard objectives add fz.event.used_tool.stone_shovel minecraft.used:stone_shovel
|
|
scoreboard objectives add fz.event.used_tool.golden_shovel minecraft.used:golden_shovel
|
|
scoreboard objectives add fz.event.used_tool.wooden_shovel minecraft.used:wooden_shovel
|
|
scoreboard objectives add fz.event.used_tool.diamond_shovel minecraft.used:diamond_shovel
|
|
scoreboard objectives add fz.event.used_tool.netherite_shovel minecraft.used:netherite_shovel
|
|
scoreboard objectives add fz.event.used_tool.iron_sword minecraft.used:iron_sword
|
|
scoreboard objectives add fz.event.used_tool.stone_sword minecraft.used:stone_sword
|
|
scoreboard objectives add fz.event.used_tool.golden_sword minecraft.used:golden_sword
|
|
scoreboard objectives add fz.event.used_tool.wooden_sword minecraft.used:wooden_sword
|
|
scoreboard objectives add fz.event.used_tool.diamond_sword minecraft.used:diamond_sword
|
|
scoreboard objectives add fz.event.used_tool.netherite_sword minecraft.used:netherite_sword
|
|
|
|
## 标记为已安装
|
|
data modify storage fz:install_manager fz.event set value 1b
|
|
|
|
## 调试
|
|
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已安装系统组件:事件"}] |