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

In my code I'm writing, I'm making a power effect triggered by LivingUpdateEvent, as seen here:

https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/event/UpdatesHandler.java

 

and here:

https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/util/DataWrapper.java#L226

 

The only problem is that when I try to make my power effect use explosion particles, it doesn't display, neither on integrated server or dedicated server.

 

Using this:

https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/network/PowerEffectsClient.java

 

Makes it work on the integrated server, but I can't seem to get it to work on the integrated server.

 

I'm trying to call the effect from this class:

https://github.com/Himself12794/Heroes-Mod/blob/master/src/main/java/com/himself12794/heroesmod/powerfx/Slam.java

 

I'm know it's some sort of networking issue, but because I still have a vague understanding of the difference between server side, client side, integrated server and dedicated server I'm unsure of the solution. Any help I can get is appreciated. Thanks!

 

P.S. As a side note, player NBT data doesn't seem like it's being saved on world exit. Likely related to the above issue, I'm sure.

With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver

Remember, particle effects are client side, so you should probably spawn them on the client.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

  • Author

Remember, particle effects are client side, so you should probably spawn them on the client.

 

I know, but my problem is getting that to happen. It was my understanding that calling it this way IS spawning them on the client.

With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver

  • Author

Perhaps I was overthinking it. Adding this:

https://github.com/Himself12794/Heroes-Mod/blob/additional-powers/src/main/java/com/himself12794/heroesmod/network/SpawnParticlesClient.java

 

Seems to have fixed it. The other things I'd done should have fixed it as well, but I guess I can't be picky since it's working.

With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver

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.