fz-survival-datapack/data/fzsd/predicates/axe_in_hand_effective.json

51 lines
1.6 KiB
JSON
Raw Normal View History

{
"condition": "minecraft:alternative",
"terms": [
{
"__comment": "主手==斧子",
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"tag": "fzsd:tool/axes"
}
}
}
},
{
"__comment": "主手!=工具&&副手==斧子",
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"tag": "fzsd:tools"
}
}
}
},
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"offhand": {
"tag": "fzsd:tool/axes"
}
}
}
}
}
]
}
}
]
}