#trying to make multiple entity interaction

4 messages · Page 1 of 1 (latest)

low stratus
#

I'm trying to make it so if you are not watching you pick up the flower and if you crouching you pet the flower, I remember making multiple minecraft:interact before but I deleted the code

#

DM me for the world, I can't uploaded here...

burnt lotus
#

@low stratus The "minecraft:interact" component can take an array of interactions. This is how you would do multiple.

"minecraft:interact": {
  "interactions": [
    {
      "on_interact": {
        // ...
      }
    },
    {
      "on_interact": {
        // ...
      }
    }
  ]
}
#

Make sure that one has filters explicitly testing for not sneaking, then have one that tests if the player is sneaking.