Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Making a custom player-like mob


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 post
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 post
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 post
Share on other sites
Posted (edited)
2 minutes ago, DraginCraft said:

I'm on IntelliJ IDEA 2019.1, where is the Preferences tab at?

IntelliJ -> Preferences -> Keymap

 

Or just go Help and search preferences

Edited by aritod
Link to post
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.

Guest
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.