217 lines
9.7 KiB
JSON
217 lines
9.7 KiB
JSON
{
|
|
"criteria": {
|
|
"offhand_placed_fix": {
|
|
"trigger": "minecraft:placed_block",
|
|
"conditions": {
|
|
"player": [
|
|
{
|
|
"condition": "minecraft:alternative",
|
|
"terms": [
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:iron_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:golden_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:wooden_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:stone_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:diamond_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:netherite_shovel"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:iron_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:golden_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:wooden_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:stone_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:diamond_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:netherite_hoe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:iron_axe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:golden_axe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:wooden_axe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:stone_axe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:diamond_axe"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"mainhand": {
|
|
"item": "minecraft:netherite_axe"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"rewards": {
|
|
"function": "fz:scoreboards/digcounter/toolsfix2"
|
|
}
|
|
} |