Jump to content

Recommended Posts

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

Posted

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

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.