Jump to content

[1.7.10] - SMP Custom Particle Effect Problem


Recommended Posts

Posted

Dear reader,

First of all let me start off by saying I know that 1.7.10 is heavily outdated and not supported here anymore, so if you refuse to help me for this reason then I accept that.
However, I'm still in 1.7.10 since my mod has over the years turned out to become quite large, and I don't have a lot of time on my hands to mod, let alone update it all the way to the newest version.

This being said, I'm having an issue concerning the spawning of a custom particle and just can't find the solution.

This particle is supposed to be linked to a custom potionEffect, the potion effects works as intended, and the particle seems to aswell.
However, when I cast world.isRemote to spawn the particle within the potionEvent, it doesn't show the particle on other entities unless I relog into the game, this goes for both players aswell as regular entities.

If I don't use the world.isRemote it spawns the particles in but they glitch and seem to get dragged to a faraway corner from time to time, also they seem to be placed about a block in size above the location of the last situation.

The way I have set it up is the following: (I have cleaned up the bigger classes)

particle class:
https://github.com/mathioks/ParticleEffect/blob/master/Particle

ServerProxy class:
https://github.com/mathioks/ParticleEffect/blob/master/ServerProxy

ClientProxy class: has the same function as ServerProxy but here it actually does something.
https://github.com/mathioks/ParticleEffect/blob/master/ClientProxy

PotionEvent class: does all the things the potion is supposed to do (spawn the particle and damage the entity if the potion is active) called from the proxy.
https://github.com/mathioks/ParticleEffect/blob/master/PotionEvent

 

Main mod class: (removed most things to just show the ones affected in this case)
https://github.com/mathioks/ParticleEffect/blob/master/Main


I can spawn the particle in other (custom) entities using their onUpdate this way, which makes me think it has to do with nearby entities not being notified of the particle's existence either because of the LivingUpdateEvent, or because I'll have to send a packet.

I have a packetdispatcher setup and use packets throughout my mod, however I can't figure out how to send a packet with particle info.

Many thanks to anyone for taking their time to read this.

Posted
  On 3/5/2019 at 12:33 AM, Sagu said:

First of all let me start off by saying I know that 1.7.10 is heavily outdated and not supported here anymore

Expand  

So you post a support request anyway... LOCKED

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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