Mojira Archive
MCPE-172530

Event definitions do not work on projectiles

I am trying to create a custom projectile, I want the entity that hit the projectile to have the tag "hit" added, but when I tried to do it and put "affect_target": true, "affect_projectile": false, "affect_shooter": false. the event was still executed to the entity and not to the one that hit.

"on_hit": {
    "impact_damage":

{         "damage": 4,         "knockback": true     }

,
    "remove_on_hit": {},
    "definition_event": {
        "affect_target": true,
        "affect_projectile": false,
        "affect_shooter": false,
        "event_trigger":

{             "event": "spell",             "target": "self"         }

    }
}

Incomplete

SnowBerry

2023-07-02, 02:51 AM

2024-12-30, 11:42 AM

2024-12-30, 11:42 AM

0

1

Unconfirmed

1.20.1 Hotfix

-