Detect when player click on entity with an special item

Started by Teyko on

Topic category: Help with MCreator software

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect when player click on entity with an special item

Hi ! i would like to detect when player click on my frog with an cage to put the frog on the cage but it's didn't work...
My procedure

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why don't you go on your…
Tue, 03/02/2021 - 07:56

Why don't you go on your frog's triggers?
When the player clicks on the frog.
And in condition, check that the player has the cage in hand.
Then you despawn your frog and you place your cage with your frog.

 

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need to check if source…
Tue, 03/02/2021 - 08:30

you need to check if source entity has item not the frog

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi Doo89, thanks for your…
Tue, 03/02/2021 - 11:48

Hi Doo89, thanks for your response. Yep it's a very good idea, i go test it ;)