Jump to content

Recommended Posts

Posted

I'm trying to use particle to perform some magic effect.

And as the particle is only spawn in client, that means other player would not see the particle.

I'm thinking about passing all the parameters through the Packet to the players and render the particle in their own client.

I know this would work, but I'm trying to find some better(easier) way to do this. Or is this the common way to render the particle effects?

Posted

That seems not work as the parameters in the serverside cant be got from client side.

I know datawatcher can do this. But there is no difference with using Packet.

Posted

Dont the effects are rendered in the client side?

I dont know how to create effects in the server.

I'm trying to do this like:

 

                  Packet              Packet

Player magic  ----->  Server  ---------->  Other player would see the magic

      |                                                                |

Render himself                                        render themselves

 

As I said before, the client cant get the entity information from the server directly, I think it's not useful spawning entity in the server side.

Posted

Client -> sends info to server.

Server spawns entity based on that information.

Each client renders the entity as they do for all entities based on the information minecraft sends them about the entity, as entities are synced from server to client by minecraft.

If you guys dont get it.. then well ya.. try harder...

Posted

Okay, I know what you mean. But do all the variable in the class will sync? I don't think so.

The client only sync some "useful" information from the server like the position or something like that.

But the custom information need to sync myself through datawatcher or something, am I right?

And I prefer using datawatcher then packet as it's easier :P

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.