How can I make my procedurally tamed entity stop consuming item?

Started by OverOne on

Topic category: Help with modding (Java Edition)

Last seen on 23:09, 22. Jan 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make my procedurally tamed entity stop consuming item?
Good morning everyone.
I am making a mod in which I want the reproduction as the taming of entities to be separate.
I did a procedure in which I can tame an entity with three amethysts, but this entity continues to consume amethyst every time I right click.
Could someone help me how to stop consuming amethyst after taming?
 
Last seen on 23:09, 22. Jan 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is the procedure I did
Sun, 01/01/2023 - 03:27

Here is the procedure I did
Last seen on 04:20, 16. Jul 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First, you don't need a…
Sun, 07/02/2023 - 15:43

First, you don't need a procedure to tame something. There is a built in system in mcreator to handle that already.

 

Second, if you still want to define your own procedure, just add an if statement that checks the owner of the entity.