规范了事件系统,完成了实现计分板赋值逻辑
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"criteria": {
|
||||
"on_took_damage": {
|
||||
"trigger": "minecraft:tick",
|
||||
"conditions": {
|
||||
"player": [
|
||||
{
|
||||
"condition": "minecraft:entity_scores",
|
||||
"entity": "this",
|
||||
"scores": {
|
||||
"fz.event.damage_taken": {
|
||||
"min": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"rewards": {
|
||||
"function": "fz:event/player/on_took_damage"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user