My custom mob can't be tamed?

Started by Axolotl'd on Mon, 05/02/2022 - 01:09

Topic category: Help with modding (Java Edition)

Last seen on 07:15, 19. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
My custom mob can't be tamed?
Mon, 05/02/2022 - 01:09

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 05:13, 29. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

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

Example

Last seen on 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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