#Apply effect with item
1 messages ยท Page 1 of 1 (latest)
whitout using scripts
Why no scripts?
I want to know if there is a component or something...
There is not
I was using "minecraft:damage_sensor", but the way I'm doing it isn't working:
"minecraft:damage_sensor": {
"triggers": [
{
"cause": "entity_attack",
"deals_damage": true,
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_component",
"subject": "other",
"operator": "equals",
"value": "fh:foice"
}
]
},
"target": "self",
"event": "fh:hunter.attack_effect"
}
}
]
}
It was a recommendation from @sharp ore , but I don't know how to do it
You can easily do this with an entityHitEntity scripting event
If you're modifying the player file then it is a question for #1067869022273667152