Making a tameable mob that isn't an animal

Started by thecatlover on

Topic category: Help with MCreator software

Last seen on 22:02, 23. Jan 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a tameable mob that isn't an animal
Mon, 04/18/2022 - 17:55 (edited)

To specify, I am making a mod that allows you to create a droid army (star wars mod) and want to make mobs that can be tamed while not being bred, I have tried three procedures to try this but I can't seem to get them to be tamed to the player.

what I am trying is (OnMobRightClicked) (Tame event target entity to source entity)

this however does not seem to work, perhaps it is with my ai goals and it is tamed but isn't reacting, however it seems like I did those correctly.

if anyone has an idea of why this isn't working, it could really help me out, thank you in advance.

Edit: I got it working

Edited by thecatlover on Mon, 04/18/2022 - 17:55
Last seen on 12:31, 22. Jan 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i would think that the mob…
Thu, 05/12/2022 - 15:26

i would think that the mob has to be set to tameable for it to be tamed

you can probably simulate taming by making it set an NBT variable to true when you right click it with an item, and then use conditions that check if the NBT variable is true to make the mob do stuff