My custom mob can't be tamed?

Started by Axolotl'd on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My custom mob can't be tamed?

I have a custom mob but it won't let me tame it with the selected item?

https://www.youtube.com/watch?v=XNClORaru9U

please help

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The item is for breeding not…
Mon, 05/02/2022 - 09:47

The item is for breeding not for taming

 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a new procedure call it…
Tue, 05/03/2022 - 07:14
  1. Make a new procedure call it whatever (TameEntityName)
  2. Set the Trigger to Player right clicks on entity
  3. Make 3 nestled if statements
  4. Set the first one to: If is Event/Target entiy (sub)type of (EntityName) do
  5. Set the second one to: If Item in Main hand = (TamingItem) do
  6. Add a Remove 1 item from source entity main inventory in this If statement
  7. Under the remove item, set the third if statement to: If rand <= (Chance to Tame)
  8. Inside this do statement: Tame event/target entity by source entity

 

I will post an example I made mirroring taming a wolf. In my example I used fractions for the chance to tame but you can use decimals as well, but wolves have a 1/3 chance of being tamed by using a bone.

The same can be done with Item Tags to use multiple items as the taming item.

Optionally you can add particle effects under the Tame Entity line

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I messed up oops do this
Tue, 05/03/2022 - 07:20

I messed up oops do this

Sorry

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also add an if statement…
Tue, 05/03/2022 - 21:46

Also add an if statement that checks if the entity is tamed already