Replace equipment enchant predicate with slots
This should be more compact and versatile https://minecraft.wiki/w/Predicate#JSON_format https://minecraft.wiki/w/Slot
This commit is contained in:
parent
5ca1344ede
commit
562981cc2e
|
|
@ -35,31 +35,15 @@
|
|||
"factor": 4
|
||||
},
|
||||
"requirements": {
|
||||
"condition": "minecraft:any_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"slots": {
|
||||
"weapon.*": {
|
||||
"items": "#mc_rebalance:exploit_items"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"items": "#mc_rebalance:exploit_items"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@
|
|||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"legs": {
|
||||
"slots": {
|
||||
"armor.*": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [{"enchantments": "minecraft:frost_walker"}]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue