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

Previously, I posted about adding spawn eggs for vanilla mobs that do not already have them. The solution I ended up finding was to add them manually. For instance, here is the code I used to add an EnderDragon egg:

 

cpw.mods.fml.common.registry.EntityList.entityEggs.put(Integer.valueOf(63), new EntityList.EntityEggInfo(63, 0x000000, 0x660066))

 

This works excellently when I launch the project from eclipse, but after copying out the mod files, compressing them, and placing them into my mods folder, I get an error:

 

java.lang.NoSuchFieldError: entityEggs

 

Why would the entityEggs ArrayList exist only when launching the project from eclipse?

Hi

 

the vanilla minecraft files are obfuscated (all the class and field names are meaningless).  In your development environment, they are all deobfuscated to something meaningful.

 

That means that you need to reobfuscate your code when putting into your mods folder, i.e. you can't just copy the files.

 

Use the gradle build  command instead, the properly packaged jar with reobfuscated names will be in build/libs

 

-TGG

  • Author

Thanks! That fixed it. I forgot the code was obfuscated. It must have been a pain to go through and change everything originally.

 

I'll lock the topic 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.