Jump to content

Recommended Posts

Posted

Hi!
I wandering if there is a way to change the behavior of the minecraft vanilla mob.

My idea is to add a bed for the cat, and when the cat is damaged or he simply wants to sleep, goes into the bed.
There is a way to add this behavior to the vanilla cat?  

Posted
9 hours ago, Yurim64 said:

There is a way to add this behavior to the vanilla cat?

Sure! What I would do is create a new Goal (there are a lot of similar vanilla goals that you can draw inspiration from or even extend, such as CatSitOnBlockGoal and MoveToBlockGoal) that implements the cat behavior you want. Then you can add the goal to the goalSelector of the cat in the EntityJoinWorldEvent event.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.