How do i make my mob sit?

Started by Cyb3r on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make my mob sit?

I want to make it so my mob stops moving and teleporting to me 

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's maybe too late, but I…
Thu, 10/05/2023 - 19:23

It's maybe too late, but I know how to make that.

 

In minecraft, every entity has "Sitting" NBT, but in MCreator is no option to edit this NBT without custom code.

So, you need to create custom one. in OnRightClick procedure, add: "set custom NBT tag (Sitting) to:" "not" "get custom NBT tag (Sitting)".

And then, create new emty procedure, and put "return:" "not" "get custom NBT tag (Sitting)". And finally add this procedure as condition to every blocks in mob AI. Thats everything. But without custom code, U can't make custom model/animation when sitting.

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Many thanks to the friend…
Sat, 04/27/2024 - 01:37

Many thanks to the friend who passed on this "Sitting" tip with NBT tag. worked perfectly.