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

I am making a mod that has its on custom armour set which works fine in Client. but when starting up a server it throws a http://pastebin.com/1nbV0bgt error.

 

When I try and use proxies like this

 

public static Item MoonHelmet = new MoonArmor(1000, MOON, proxy.addArmor("MOON"), 0).setIconCoord(0,0).setItemName("moonhelm") ;

 

CommonProxy.java(only part of it)

public int addArmor(String armor)
        {
            return 0; 
        }

 

ClientProxy.java(only part of it)

public int addArmor(String armor) {
            return RenderingRegistry.addNewArmourRendererPrefix(armor);
        }

to make sure it only runs RenderingRegistry.addNewArmourRendererPrefix("MOON") in the client and otherwise returns 0. I get a http://pastebin.com/BhBgpz1J even when running client.

 

When I try and use hardcoded numbers like this

 

public static Item MoonHelmet = new MoonArmor(1000, MOON, 5 , 0).setIconCoord(0,0).setItemName("moonhelm") ;

 

Its all fine on both client and server(actually my armor isn't being rendered) untill i open my inventory when i see that armor is not rendered and i get this error in console.

 

http://pastebin.com/t1qkgEVF

 

Hopefully Someone will know what they are doing as I have searched through hundreds of pages and not found an answer.

 

If you need more of my code to fix then feel free to ask

 

Thanks,

MrMishboy

why u just use "3" instead of proxy.addArmor and then in your armor item file u just use public String getArmorTextureFile() ?

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

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.