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

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?

Custom entity spawned and controlked serverside?

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

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

Packet all relevant info -> server recives and creates the effect as needed?

 

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

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

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

  • 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 :P

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.

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.