I had a similar problem. I think the fix was to make sure you were using world.spawnparticles on the server side only. If you need to create particles on the client side, then create them using their original class (ParticleExplosion, etc). If you create particles on the client side, then other players won't see them. So structure your code so that the server spawns them, or implement your own client to server to all client packet system.
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
The Meaning of Life, the Universe, and Everything.
Join Date:
11/17/2016
Posts:
363
Location:
USA (sadly)
Minecraft:
FavouriteDragon
Member Details
I tried just using the server- it still doesn't work, at all. I literally extended Explosion, overrode the doExplosion methods, and just changed the particle, and removed the damageBlocks requirement. Any idea why it isn't working???
It's just particles; everything else works.
Are you sure you're on the server side? Perhaps it's not that they aren't rendering, but they are rendering where you can't see them (i.e. inside a block). The block furnace uses these particles. Perhaps look at how they offset them.
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
The Meaning of Life, the Universe, and Everything.
Join Date:
11/17/2016
Posts:
363
Location:
USA (sadly)
Minecraft:
FavouriteDragon
Member Details
Ok- Apparently, when I spawn it on the server side,
1) Blocks don't get set on fire even though they're meant to
2) The particle speed+range is tiny
3) Flame Particles do spawn!!! But not in a big enough radius
4) I tested it with explosion particles and they work
I don't think the particle will spawn without specifying that's it meant to be server side though..
xDD I take back what I said
Looks like I was using the wrong upgrade!
It's nice to know that fireballs still work correctly..
The Meaning of Life, the Universe, and Everything.
Join Date:
11/17/2016
Posts:
363
Location:
USA (sadly)
Minecraft:
FavouriteDragon
Member Details
Update- Apparently i have to use a WorldServer, but I can't figure out how to cast it!
If I do
WorldServer world = (WorldServer) entity.getEntityWorld();
It crashes when I use the ability, complaining it can't cast multiplayer.WorldClient to WorldServer.
Can anyone help?
Nevermind!
Got it to work!!!!!!!
I just checked if the World was an instance of a WorldServer!!!!!!!!!
Then I casted the entity's world to a worldserver, and spawned particles! Now I can spawn particles without the explosion!
Anyone here good with explosions?
my explosion spawning code:
My explosion code:
https://pastebin.com/UcWejtri
Basically, everything works except for my particles.
Image Removed
~ Everybody's FavouriteDragon
I had a similar problem. I think the fix was to make sure you were using world.spawnparticles on the server side only. If you need to create particles on the client side, then create them using their original class (ParticleExplosion, etc). If you create particles on the client side, then other players won't see them. So structure your code so that the server spawns them, or implement your own client to server to all client packet system.
My Mods:
- Happy Coding -
I tried just using the server- it still doesn't work, at all. I literally extended Explosion, overrode the doExplosion methods, and just changed the particle, and removed the damageBlocks requirement. Any idea why it isn't working???
It's just particles; everything else works.
Image Removed
~ Everybody's FavouriteDragon
Are you sure you're on the server side? Perhaps it's not that they aren't rendering, but they are rendering where you can't see them (i.e. inside a block). The block furnace uses these particles. Perhaps look at how they offset them.
My Mods:
- Happy Coding -
Ok- Apparently, when I spawn it on the server side,
1) Blocks don't get set on fire even though they're meant to
2) The particle speed+range is tiny
3) Flame Particles do spawn!!! But not in a big enough radius
4) I tested it with explosion particles and they work
I don't think the particle will spawn without specifying that's it meant to be server side though..
xDD I take back what I said
Looks like I was using the wrong upgrade!
It's nice to know that fireballs still work correctly..
Image Removed
~ Everybody's FavouriteDragon
Update- I tried spawning particles in general, and it just didn't work. Particles don't show up at all, for some reason.
Image Removed
~ Everybody's FavouriteDragon
Update- Apparently i have to use a WorldServer, but I can't figure out how to cast it!
If I do
It crashes when I use the ability, complaining it can't cast multiplayer.WorldClient to WorldServer.
Can anyone help?
Nevermind!
Got it to work!!!!!!!
I just checked if the World was an instance of a WorldServer!!!!!!!!!
Then I casted the entity's world to a worldserver, and spawned particles! Now I can spawn particles without the explosion!
Image Removed
~ Everybody's FavouriteDragon