The Meaning of Life, the Universe, and Everything.
Join Date:
12/5/2013
Posts:
72
Member Details
Dear reader,
First of all let me start off by saying I know that 1.7.10 is heavily outdated.
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 effect 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. (activating the potioneffect on yourself does show it for that client straightaway, activating it on someone else in multiplayer shows it to the affected client straightaway aswell but not to the other players)
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)
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.
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.
I've been enjoying the mod for almost a year now, and it even inspired me to start modding too! Everyone on Discord was worried about you for a long time because we didn't know what happened to you. Maybe posting some updates from time to time on what's going on would calm everyone, but that's just my opinion. Anyways, if you want to spawn particles that are rendered on all clients, I advise you to take a look at this: http://www.minecraftforge.net/forum/topic/36526-1710-spawning-particles-the-world/ (especially the second-to-last reply)
Keep up the great work, and hopefully you can sort everything out soon!
I've been enjoying the mod for almost a year now, and it even inspired me to start modding too! Everyone on Discord was worried about you for a long time because we didn't know what happened to you. Maybe posting some updates from time to time on what's going on would calm everyone, but that's just my opinion. Anyways, if you want to spawn particles that are rendered on all clients, I advise you to take a look at this: http://www.minecraftforge.net/forum/topic/36526-1710-spawning-particles-the-world/ (especially the second-to-last reply)
Keep up the great work, and hopefully you can sort everything out soon!
P.S.: NickWrecks says hi!
Hey FlashHUN,
Thank you for the kind words and taking the time to reply to my question, I've looked into the thread you linked but it didn't contain the information I am looking for, however I've started figuring it out in the meantime ^^
As for the discord, I'm sorry if I made anyone worry, however, I've explained the current situation I'm in on my twitter, so there's no need to worry, I'll be back with you all as soon as everything has settled down ^^
I'm happy to hear I've been able to inspire you to start modding and would love to check out your mod as soon as you have a version online!
Dear reader,
First of all let me start off by saying I know that 1.7.10 is heavily outdated.
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 effect 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. (activating the potioneffect on yourself does show it for that client straightaway, activating it on someone else in multiplayer shows it to the affected client straightaway aswell but not to the other players)
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.
My very first mod :
Naruto-Anime Mod
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2341656-naruto-anime-mod-wip
Hey Mathioks!
I've been enjoying the mod for almost a year now, and it even inspired me to start modding too! Everyone on Discord was worried about you for a long time because we didn't know what happened to you. Maybe posting some updates from time to time on what's going on would calm everyone, but that's just my opinion. Anyways, if you want to spawn particles that are rendered on all clients, I advise you to take a look at this: http://www.minecraftforge.net/forum/topic/36526-1710-spawning-particles-the-world/ (especially the second-to-last reply)
Keep up the great work, and hopefully you can sort everything out soon!
P.S.: NickWrecks says hi!
Hey FlashHUN,
Thank you for the kind words and taking the time to reply to my question, I've looked into the thread you linked but it didn't contain the information I am looking for, however I've started figuring it out in the meantime ^^
As for the discord, I'm sorry if I made anyone worry, however, I've explained the current situation I'm in on my twitter, so there's no need to worry, I'll be back with you all as soon as everything has settled down ^^
I'm happy to hear I've been able to inspire you to start modding and would love to check out your mod as soon as you have a version online!
My very first mod :
Naruto-Anime Mod
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2341656-naruto-anime-mod-wip
So any idea of when the next update to the mod could possibly be? Everyone on the server I play on is wondering if your ever gonna update it again.