How do i make my mob sit?

Started by Cyb3r on

Topic category: Help with modding (Java Edition)

Last seen on 00:18, 28. Aug 2022
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 

Last seen on 19:23, 5. Oct 2023
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.