81 lines
3.7 KiB
Mcfunction
81 lines
3.7 KiB
Mcfunction
#安装记分项目#
|
|
scoreboard objectives add digCounter dummy {"text":"挖掘榜","color":"gray"}
|
|
scoreboard objectives add deathCounter deathCount {"text":"死亡榜","color":"dark_red"}
|
|
scoreboard objectives add killCounter totalKillCount {"text":"击杀榜","color":"red"}
|
|
scoreboard objectives add tradingCounter minecraft.custom:minecraft.traded_with_villager {"text":"PY榜","color":"green"}
|
|
scoreboard objectives add fishingCounter minecraft.custom:minecraft.fish_caught {"text":"钓鱼榜","color":"blue"}
|
|
scoreboard objectives add damageTaken minecraft.custom:minecraft.damage_taken [{"text":"奥利给榜","color":"yellow"},{"text":"(伤害*10)","color":"gole"}]
|
|
scoreboard objectives add totalList dummy {"text":"统计总量","color":"light_purple"}
|
|
####
|
|
#安装工具项目#
|
|
scoreboard objectives add diamond_pickaxe minecraft.used:minecraft.diamond_pickaxe
|
|
scoreboard objectives add diamond_axe minecraft.used:minecraft.diamond_axe
|
|
scoreboard objectives add diamond_shovel minecraft.used:minecraft.diamond_shovel
|
|
scoreboard objectives add iron_pickaxe minecraft.used:minecraft.iron_pickaxe
|
|
scoreboard objectives add iron_axe minecraft.used:minecraft.iron_axe
|
|
scoreboard objectives add iron_shovel minecraft.used:minecraft.iron_shovel
|
|
scoreboard objectives add stone_pickaxe minecraft.used:minecraft.stone_pickaxe
|
|
scoreboard objectives add stone_axe minecraft.used:minecraft.stone_axe
|
|
scoreboard objectives add stone_shovel minecraft.used:minecraft.stone_shovel
|
|
####
|
|
#安装统计项目#
|
|
scoreboard objectives add totalDug dummy
|
|
scoreboard objectives add totalKilled dummy
|
|
scoreboard objectives add totalDeath dummy
|
|
scoreboard objectives add totalTraded dummy
|
|
scoreboard objectives add totalFished dummy
|
|
scoreboard objectives add totalHurt dummy
|
|
####
|
|
###实验性###在分项目下显示总量###
|
|
scoreboard players set totalDug totalDug 1
|
|
scoreboard players set totalKilled totalKilled 1
|
|
scoreboard players set totalDeath totalDeath 1
|
|
scoreboard players set totalTraded totalTraded 1
|
|
scoreboard players set totalFished totalFished 1
|
|
scoreboard players set totalHurt totalHurt 1
|
|
####
|
|
#安装记分板显示#
|
|
#安装队伍
|
|
team add displayScoresOff
|
|
team add displayScoresOn
|
|
team add killCounter
|
|
team add digCounter
|
|
team add deathCounter
|
|
team add tradingCounter
|
|
team add fishingCounter
|
|
team add damageTaken
|
|
team add totalList
|
|
team join digCounter totalDug
|
|
team join killCounter totalKilled
|
|
team join deathCounter totalDeath
|
|
team join fishingCounter totalFished
|
|
team join tradingCounter totalTraded
|
|
team join damageTaken totalHurt
|
|
#安装显示
|
|
team modify displayScoresOff color dark_purple
|
|
team modify displayScoresOn color gold
|
|
scoreboard objectives setdisplay sidebar.team.gold totalList
|
|
team modify killCounter color red
|
|
scoreboard objectives setdisplay sidebar.team.red killCounter
|
|
team modify digCounter color gray
|
|
scoreboard objectives setdisplay sidebar.team.gray digCounter
|
|
team modify deathCounter color dark_red
|
|
scoreboard objectives setdisplay sidebar.team.dark_red deathCounter
|
|
team modify tradingCounter color green
|
|
scoreboard objectives setdisplay sidebar.team.green tradingCounter
|
|
team modify fishingCounter color blue
|
|
scoreboard objectives setdisplay sidebar.team.blue fishingCounter
|
|
team modify damageTaken color yellow
|
|
scoreboard objectives setdisplay sidebar.team.yellow damageTaken
|
|
team modify totalList color light_purple
|
|
scoreboard objectives setdisplay sidebar.team.light_purple totalList
|
|
scoreboard objectives add scoreswitch trigger
|
|
####
|
|
#安装缓存#
|
|
scoreboard objectives add tDigC dummy
|
|
scoreboard objectives add tDeathC dummy
|
|
scoreboard objectives add tKillC dummy
|
|
scoreboard objectives add tFishC dummy
|
|
scoreboard objectives add tTradeC dummy
|
|
scoreboard objectives add tHurtC dummy
|
|
#### |