Detect when player click on entity with an special item

Started by Teyko on Mon, 03/01/2021 - 12:57

Topic category: Help with MCreator software

Last seen on 21:06, 19. Jun 2022
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect when player click on entity with an special item
Mon, 03/01/2021 - 12:57

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

Last seen on 07:26, 3. Jun 2023
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.

 

Last seen on 06:54, 3. Jun 2023
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

Last seen on 21:06, 19. Jun 2022
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 ;)