43 lines
921 B
JSON
43 lines
921 B
JSON
{
|
|
"criteria": {
|
|
"requirement": {
|
|
"trigger": "minecraft:entity_hurt_player",
|
|
"conditions": {
|
|
"player": [
|
|
{
|
|
"condition": "minecraft:inverted",
|
|
"term": {
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"equipment": {
|
|
"head": {
|
|
"items": [
|
|
"minecraft:tnt"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"damage": {
|
|
"source_entity": {
|
|
"type": "minecraft:player",
|
|
"equipment": {
|
|
"head": {
|
|
"items": [
|
|
"minecraft:tnt"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rewards": {
|
|
"function": "herohost:tnt/get_tnt"
|
|
}
|
|
}
|