My custom mob can't be tamed?

Started by Axolotl'd on

Topic category: Help with modding (Java Edition)

Last seen on 05:37, 5. Jul 2023
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

Last seen on 14:30, 19. Apr 2024
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

 

Last seen on 06:22, 13. Mar 2023
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

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Tue, 05/03/2022 - 07:16

Example

Last seen on 06:22, 13. Mar 2023
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

Last seen on 06:22, 13. Mar 2023
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