Posted October 27, 201312 yr 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?
October 27, 201312 yr Custom entity spawned and controlked serverside? If you guys dont get it.. then well ya.. try harder...
October 27, 201312 yr Author 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.
October 27, 201312 yr Packet all relevant info -> server recives and creates the effect as needed? If you guys dont get it.. then well ya.. try harder...
October 27, 201312 yr Author 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.
October 27, 201312 yr 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...
October 28, 201312 yr Author 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
October 28, 201312 yr That would entierly depend on what data you would be sending If you guys dont get it.. then well ya.. try harder...
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.