Jump to content

Making a custom player-like mob


DraginCraft

Recommended Posts

I'm trying to create a custom player-like mob (so a custom mob that looks exactly like a player and walks the same way), but I don't know how to make it be a player model instead of a zombie model, or how to change what sounds it makes (preferably to player sounds.) Could somebody help me?

Link to comment
Share on other sites

On 6/5/2021 at 2:09 PM, DraginCraft said:

I'm trying to create a custom player-like mob (so a custom mob that looks exactly like a player and walks the same way), but I don't know how to make it be a player model instead of a zombie model, or how to change what sounds it makes (preferably to player sounds.) Could somebody help me?

Create a custom entity and look at the PlayerEntity code.

To change the sounds it makes override getAmbientSound(), getHurtSound(), getDeathSound(), etc.

Link to comment
Share on other sites

17 minutes ago, DraginCraft said:

I've actually been trying to find the code for mobs for a while, how do I look at it?
(I'm using IntelliJ)

Depends. What keymap are you using? If you go under Preferences -> Keymap you can check

Link to comment
Share on other sites

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.