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

Started by Bronze on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Mar 2018
Points:
824

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 142
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

 

Active 3 years ago
Joined Mar 2020
Points:
1202

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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.

 

 

Active 4 years ago
Joined Mar 2018
Points:
824

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 142
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

Active 4 years ago
Joined Mar 2018
Points:
824

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 142
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.

Active 3 years ago
Joined Mar 2020
Points:
1202

User statistics:

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

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

Active 4 years ago
Joined Mar 2018
Points:
824

User statistics:

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

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

Active 2 months ago
Joined Aug 2017
Points:
927

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 122
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"?

Active 3 years ago
Joined Mar 2020
Points:
1202

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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. 

Active 2 years ago
Joined May 2020
Points:
689

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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

Active 3 years ago
Joined Mar 2020
Points:
1202

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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.

Active 2 years ago
Joined Jul 2023
Points:
231

User statistics:

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

wartedwrathvillage not and wartedwrathvillage what exactly??