HHGames/data/herohost/advancements/tnt/give_tnt.json
HeroChris f8951522bb Init
2023-09-15 19:52:54 +02:00

58 lines
1.4 KiB
JSON

{
"criteria": {
"requirement": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"head": {
"items": [
"minecraft:tnt"
]
}
}
}
}
],
"entity": [
{
"condition": "minecraft:all_of",
"terms": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"head": {
"items": [
"minecraft:tnt"
]
}
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:player"
}
}
]
}
]
}
}
},
"rewards": {
"function": "herohost:tnt/give_tnt"
}
}