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

Started by OverOne on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2021
Points:
581

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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?
 
Active 2 years ago
Joined Mar 2021
Points:
581

User statistics:

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

Here is the procedure I did
Active 2 years ago
Joined Jul 2023
Points:
201

User statistics:

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