fz-survival-datapack/data/fz/advancements/scoreboards/digcounter/toolsfix.json

485 lines
22 KiB
JSON
Raw Normal View History

2020-11-27 00:27:49 +08:00
{
"criteria": {
"used_axe_on_block": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_axe"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
},
"attacked_with_axe": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_axe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_axe"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
2020-12-07 04:25:40 +08:00
},
"used_shovel_on_block": {
2020-11-27 00:27:49 +08:00
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
},
"attacked_with_shovel": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_shovel"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
2020-12-07 04:25:40 +08:00
},
"used_hoe_on_block": {
2020-11-27 00:27:49 +08:00
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
},
"attacked_with_hoe": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:diamond_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:iron_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:stone_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:wooden_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:golden_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
2020-12-07 04:25:40 +08:00
},
{
2020-11-27 00:27:49 +08:00
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
2020-12-07 04:25:40 +08:00
"item": "minecraft:netherite_hoe"
2020-11-27 00:27:49 +08:00
}
}
}
}
]
}
]
}
}
},
"requirements": [
[
"used_axe_on_block",
"attacked_with_axe",
"used_shovel_on_block",
"attacked_with_shovel",
"used_hoe_on_block",
"attacked_with_hoe"
]
],
"rewards": {
"function": "fz:scoreboards/digcounter/toolsfix"
}
}