Jump to content

Sagu

Members
  • Posts

    1
  • Joined

  • Last visited

Sagu's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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.
×
×
  • Create New...

Important Information

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