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

If I understand capabilities correctly, their state is supposed to be saved when the world is quit and reload when it's open again, but in my case, the capability just resets to 0 when I reload the world. I've just started getting into modding, so I'm sorry if I made some really simple mistake, but I can't figure out what I'm doing wrong. I based my capability mainly on this tutorial from McJty: https://youtu.be/W3SS7yP4B2s and I also read the page about capabilities on the forge docs, but it seems to be quite outdated. You can find my test mod here: https://github.com/Mikkolek/TestCapabilitiesMod. I also made a simple command called "/devmode" to check the capabilities it's state and change it. 

Edited by Mikkolek

6 hours ago, Mikkolek said:

If I understand capabilities correctly, their state is supposed to be saved when the world is quit and reload when it's open again, but in my case, the capability just resets to 0 when I reload the world. I've just started getting into modding, so I'm sorry if I made some really simple mistake, but I can't figure out what I'm doing wrong. I based my capability mainly on this tutorial from McJty: https://youtu.be/W3SS7yP4B2s and I also read the page about capabilities on the forge docs, but it seems to be quite outdated. You can find my test mod here: https://github.com/Mikkolek/TestCapabilitiesMod. I also made a simple command called "/devmode" to check the capabilities it's state and change it. 

It looks like you are not correctly registering the capability. Add this:

FMLJavaModLoadingContext.get().getModEventBus().addListener(this::init);

to the constructor of your main mod class.

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.