Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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)

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);

  • Author

well, that was an easy fix, thanks a lot, working as it should now :)

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.