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

EDIT: Yep, MC doesn't seem to have any way to automatically notify other clients of particles. Too bad, but no big deal. Writing a custom packet or two solves the problem just as easily.

 

Ok, I know I can send packets to spawn the particles (though Packet63WorldParticles doesn't seem to have a usable constructor?), but my question is why is it that particles told to spawn on the server don't show up for clients? Looking at the method:

public void spawnParticle(String par1Str, double par2, double par4, double par6, double par8, double par10, double par12)
{
for (int i = 0; i < this.worldAccesses.size(); ++i)
{
((IWorldAccess)this.worldAccesses.get(i)).spawnParticle(par1Str, par2, par4, par6, par8, par10, par12);
}
}

It looks like it should run through all the client worlds to spawn the particles, no? For example, if I have spawned an entity, such as an arrow, everyone can see particles that it generates. But if I run a method from onItemRightClick that spawns particles, only the player clicking the item can see them, even though the method runs on both sides.

 

I understand that a shell entity is spawned on every client, so that's obviously how those particles are visible, but I'm wondering if there isn't a good method already available for informing other clients of particles spawned, or if I must write it myself.

 

Cheers.

Hi

 

spawnParticle does nothing on the server

 

WorldManager::
    public void spawnParticle(String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) {}

I'm pretty sure that particle effects are always triggered on the client in response to something else, and there is no packet to say "draw particle effects".  Packet63 appears to be unused anywhere in the vanilla.

 

I think you're probably stuck with writing your own "spawn particles here" packet from the server to client.

 

-TGG

 

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.