This commit is contained in:
HeroChris
2023-09-15 19:52:54 +02:00
commit f8951522bb
17 changed files with 271 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{
"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"
}
}

View File

@ -0,0 +1,57 @@
{
"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"
}
}