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

Hi, I have a mana that's not syncing to client, it has registries and packets, I'm stumped that the mana value is not calling on the client

 

The essence files

The rendering

The overlay registry

Capability registrys

network registry

I am able to call the value fine with an item right clicking but not with the client rendering

Can someone please tell me what im doing wrong

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

`RegisterCapabilitiesEvent` is listened to on the mod event bus, not the forge event bus.

Additionally, you're enqueuing work to enqueue work in your packet; this should only be done once. You are probably thinking of `DistExecutor#unsafeRunWhenOn` for the inner supplier.

If using `LazyOptional#orElseThrow`, supply an actual exception to throw on failure, not `null`. You should prefer using `#ifPresent` or anything that doesn't force resolution.

2 hours ago, ChampionAsh5357 said:

`RegisterCapabilitiesEvent` is listened to on the mod event bus, not the forge event bus.

Forge 43.1.1 or above (which is the case here) adds support for the @AutoRegisterCapability annotation which should be used.

2 hours ago, ChampionAsh5357 said:

If using `LazyOptional#orElseThrow`, supply an actual exception to throw on failure, not `null`. You should prefer using `#ifPresent` or anything that doesn't force resolution.

LazyOptional#ifPresent should only be used if the Capability is written to be not always preset.

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.