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.

This error is coming when i write my code... please explain as i'm new to forge modding

Featured Replies

Posted

This error was coming whenever i write my minecraft code... I just watched Mr. Pineapple's Modding tutorial for minecraft 1.15 and i followed as he told. Is it because of that i'm coding for 1.16 and the tutorial is for 1.15? or just something else? Here's the screen shot:

error.thumb.png.0a37f0d29755d6624f96791efa7f5688.png

The errors are highlighted in yellow... if anything is wrong tell resp asap

Thanks in advance! 

Simple answer: yes, things changed from 1.15 -> 1.16, that method probably has a different name now (don't know what it is because I do not have a workspace setup currently). If you poke around in the Item class, you can probably find what it was changed to by looking at the type of the method parameters.

If you are not decently familiar with Java, I would suggest learning more basic Java before trying to write a mod, you will be running into problems like this a lot if you do not.

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.