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 need to know how to add armor effects for my mod im working on like breathing under water or fire resistance. i know how with modloader using the simple onTickInGame function but with Forge im completely lost so anyone know how???

yeah, create the method onArmorTickUpdate

 

inside it, do whatever you want to do with the item or whatever :D

If you guys dont get it.. then well ya.. try harder...

No, learning java with making a mod, does not work

It worked for me pretty well :).

, especially if you have never programmed before.

but yep, it's not my first programming language. Going from C# to Java was sometimes unpleasant, but feasible.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

No, learning java with making a mod, does not work

It worked for me pretty well :).

, especially if you have never programmed before.

but yep, it's not my first programming language. Going from C# to Java was sometimes unpleasant, but feasible.

 

ya same, except I started with C++ before going to java

  • Author

i never say i haven't programmed before or that i don't know how to override the method. im just unfimilar with it and am looking for some help with it thats all

If you don't know how to override methods you should not be making a mod, but be learning java instead.

No, learning java with making a mod, does not work, especially if you have never programmed before.

please don't assume.

he may be asking the methods to add the effects

Also, I should have you know that you are reading my signature.

based on the fact that 90% of the questions seen on this side of the forum is about basic programming and that he did say hes not familiar with overriding methods. I'd say it's not to far a stretch for someone to say that he is unfamiliar to these principles, meaning he should read up on them.

 

please don't assume.

he may be asking the methods to add the effects

Well then he needs to specify his question if he does know OOP principles, beacuse:

could you be more specific??? i know i have to use the function but i don't know how

Seems like he is asking about how to override which is basic OOP knowledge.

 

i never say i haven't programmed before or that i don't know how to override the method.

And there the OP said he didn't know about Overriding a method, meaning he should go look it up before making a mod inn an OOP language :)

 

 

So to the OP:

Read up on inheritance and overriding and you should be able to figure out how to override a method of a base class.

If you guys dont get it.. then well ya.. try harder...

  • Author

i already know the basics of OOP i have most of it set up i just cant figure out this one error i have

this line in my main class is what gives me the error. i got the function registerServerTickHandler set up and ready to go. also the commonProxy class has all of its needs for this.

proxy.registerServerTickHandler();

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.