Jump to content

Recommended Posts

Posted

For my mod im adding some mobs, so the first i wanted to add was the simplest, a mummy.

Basically this mummy is the same as a zombie, just with different spawn rules and changed attack/speed attributes.

 

so i've tried this 2 ways so far:

 

one was to make entity, model and render classes extend the zombie's counterparts; this kinda worked, but even if i override the getResourceLocation() methodS to return the custom texture, it would still spawn with a zombie texture.

 

The other was to make the three classes practically the same as the zombie classes, but with some  refactored methods (obviously not the ones that were overriding their super counterparts), the problem here is this:

jrkHucu.png

so now the texture is loading properly (only changed the head so far), but as you can see the model's not rendering as it should at all...

 

here's my repo:

https://github.com/jokekid/DungeonMod

 

the files are in the mobs/mummy folder.

(the commented part in the model's setRotationAngles() wasn't commented before and i had the same issue)

Posted

The texture file mummy.png is 64x64, but you have it so the model uses a 64x32 texture. To use a 64x64 file with the mummy, change this line (line 11):

 

        this(0.0F, 0.0F, 64, 32);

 

to:

 

        this(0.0F, 0.0F, 64, 64);

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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