#Right Click Detection(?)

1 messages · Page 1 of 1 (latest)

clever ore
#

I was playing the Minecraft avatar add on pack and noticed that they have right click detection

when you left click(attack button) a certain tameable entity, instead of attacking it, it plays an animation

how could i achieve this? but also, what molang query can be used to trigger than animation?

lapis gazelle
#
"minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "event": "example:animation"
            },
            "deals_damage": false
          }
        ]
      }
#

Use filters to detect when it is hit by a player

clever ore
#

and having “deals_damage” set to false would prevent the mob from turning red and receiving knockback from the hit right?