Making Tameable Mobs in 2021.3

Started by phillipw1954 on

Topic category: Help with modding (Java Edition)

Last seen on 03:07, 26. Jan 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making Tameable Mobs in 2021.3

Okay so I'm trying to make a tameable mob and I've set its AI to these parameters.

When I load up Minecraft I can successfully spawn the mob, but when I right-click on it nothing happens. I always have a bone in my hand and I've tried right clicking in both survival and creative mod. Ideally, the mob would work just like a wolf, where if I were to hit it, it would attack be, but I could tame it as well. 

https://ibb.co/yyc6wsV

Last seen on 03:07, 26. Jan 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simply put, when I try to…
Fri, 12/17/2021 - 21:28

Simply put, when I try to tame my mob, nothing happens. 

 

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The way I fixed this was by…
Mon, 12/20/2021 - 00:47

The way I fixed this was by changing a part of the code in (name of entity)Entity.Java for you it'd likely be called VelociraptorEntity.Java

Try changing

@Override
    public boolean isFood(ItemStack stack) {
        return List.of(Items.BONE).contains(stack);
    }

and replacing it with

@Override
        public boolean isBreedingItem(ItemStack stack) {
            if (stack == null)
                return false;
            if (Items.BONE == stack.getItem())
                return true;
            return false;
        }

Last seen on 21:58, 27. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could you fix that …
Tue, 02/01/2022 - 03:01

How could you fix that @vGravity? I've got the same problem, and I tried replacing that part of the code, and it says "error: method does not override or implement a method from a supertype"

Last seen on 11:17, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Man, you placed the bone…
Tue, 02/01/2022 - 09:46

Man,

you placed the bone under breed items.

 

Last seen on 21:58, 27. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, I placed the item I…
Tue, 02/01/2022 - 12:51

No, I placed the item I wanted to use for breeding. Still - that's not the problem XD. The problem is that taming in this mcr version is broken and no one fixes it

Last seen on 11:17, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What are you talking about ?…
Tue, 02/01/2022 - 13:54

What are you talking about ?

Which version you  use ? 1.17.1 ?

Taming procedures perfectly works, I have plenty in my mod

 

Last seen on 21:58, 27. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you provide me with some…
Tue, 02/01/2022 - 14:13

Can you provide me with some then? I can't make a tamable mob, cuz it's bugged in mcreator 2021.3.

Just simple taming

Last seen on 21:58, 27. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem as…
Tue, 02/01/2022 - 14:15

I have the same problem as phillipw1954 has on top of the conversation

Last seen on 20:33, 28. May 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you are right, no taming…
Thu, 03/31/2022 - 16:29

you are right, no taming procedure works if don't set the mob as a wolf based AI

Last seen on 20:33, 28. May 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but I'm making a maid and it…
Thu, 03/31/2022 - 16:32

but I'm making a maid and it's weird when she starts barking and automatically load the best friends forever advancement

Last seen on 20:33, 28. May 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so is there a way to make…
Thu, 03/31/2022 - 16:41

so is there a way to make the entity tamable without making it a wolf based AI @woodcreatures?

Last seen on 20:33, 28. May 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oke, I fixed the fact she…
Fri, 04/01/2022 - 00:44

oke, I fixed the fact she barks by adding a living sound, but I'm ready if there is another way that's not the dog

Last seen on 16:27, 6. Apr 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when I replace the code with…
Fri, 04/01/2022 - 02:07

when I replace the code with the other set, like @vgravity said it just shows an error message?

Last seen on 20:33, 28. May 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I canìt belive it...I need…
Fri, 04/01/2022 - 02:49

I canìt belive it...I need new glasses, I haven't seen the can tame check box...I have no words