How to make item and mob dissapear when player right clicks with an item on mob?

Started by Bronze on

Topic category: Help with modding (Java Edition)

Last seen on 13:36, 6. May 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make item and mob dissapear when player right clicks with an item on mob?

I already made procedure for that but only mob despawns, item doesn't dissapear, can someone help?

Also, for some reason 2 mobs spawn instead of 1

 

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no reason to have …
Mon, 05/18/2020 - 15:21

There is no reason to have "is entity subtype of player" because mobs cant right click on each other :)

That's probably why. Also it is probably trying to remove the item from the entity, I'm not sure how to fix that.

 

 

Last seen on 13:36, 6. May 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I wouldn't make "is…
Tue, 05/19/2020 - 07:50

If I wouldn't make "is entity subtype of player" it wouldn't detect if players right clicks with item, this is a global procedure so I needed to do that

Last seen on 13:36, 6. May 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait, it doesn't detect…
Tue, 05/19/2020 - 10:00

Oh wait, it doesn't detect if I right click with good item, it just detects if I right click.

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can just trigger it from…
Tue, 05/19/2020 - 11:55

You can just trigger it from inside the mob itself btw.

Last seen on 13:36, 6. May 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But it won't help me remove…
Tue, 05/19/2020 - 12:54

But it won't help me remove the item from player.

Last seen on 21:55, 16. Oct 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wouldn't the "=" mess up…
Wed, 06/10/2020 - 00:06

Wouldn't the "=" mess up everything. I would think it would be an "and"?

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wouldn't the "=" mess up…
Wed, 06/10/2020 - 00:09

Wouldn't the "=" mess up everything. I would think it would be an "and"?

You are a genius. 

Last seen on 04:13, 19. Jun 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You are not using 2020.3 are…
Wed, 06/10/2020 - 18:31

You are not using 2020.3 are you? It does much better at creating events

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, that too, I forgot to…
Wed, 06/10/2020 - 18:33

Yes, that too, I forgot to mention that. This post was made before 2020.3 was released though.

You can now specify the source entity, and event entity.

Last seen on 10:46, 20. Aug 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wartedwrathvillage not and…
Thu, 07/13/2023 - 13:52

wartedwrathvillage not and wartedwrathvillage what exactly??