This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KnightMiner's profile picture

[1.7.10] Turtle's world object does not show particles

Started by KnightMiner, 04 April 2016 - 08:05 PM
KnightMiner #1
Posted 04 April 2016 - 10:05 PM
I am currently working on a turtle which upon success is suppose to make a laser beam of particles, though the problem is the particles refuse to show up, despite my debug statements telling me the particles spawn at the proper location. The odd part is I know it is actually spawning the particles, as I have frozen the game from spawning too many particles with the turtle (due to a mistake in my math), though I still never see them. I also am able to spawn particles indirectly, such as by calling a generic function to break a block (with sounds/drops), and with a different turtle have done it using an explosion.

So I am wondering, how do I get a turtle to spawn particles? Here is a link to the code I'm using, note that the velocity is set based on the assumption that "reddust" particles here act the same as 1.8 command (and set the color), though I have also tried it with 0,0,0 velocity and the "explode" particle without anything showing up as well.
Konlab #2
Posted 05 April 2016 - 05:58 PM
I am not really a forge pro but I think you need to spawn particles client side.
KnightMiner #3
Posted 05 April 2016 - 08:04 PM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.
SquidDev #4
Posted 05 April 2016 - 08:23 PM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.

The world on the server side delegates to net.minecraft.world.WorldManager which has an empty spawnParticle method, so nothing happens on the server. You'll need to send a packet to all players telling particles to be spawned at a location instead.
KnightMiner #5
Posted 06 April 2016 - 06:12 AM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.

The world on the server side delegates to net.minecraft.world.WorldManager which has an empty spawnParticle method, so nothing happens on the server. You'll need to send a packet to all players telling particles to be spawned at a location instead.
I was afraid it would come to that. At least it is better than no particles
Konlab #6
Posted 06 April 2016 - 02:25 PM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.

The world on the server side delegates to net.minecraft.world.WorldManager which has an empty spawnParticle method, so nothing happens on the server. You'll need to send a packet to all players telling particles to be spawned at a location instead.
I was afraid it would come to that. At least it is better than no particles
It is not that hard than it seems is :)/>
Personal experience :P/>
KnightMiner #7
Posted 07 April 2016 - 12:38 AM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.
The world on the server side delegates to net.minecraft.world.WorldManager which has an empty spawnParticle method, so nothing happens on the server. You'll need to send a packet to all players telling particles to be spawned at a location instead.
I was afraid it would come to that. At least it is better than no particles
It is not that hard than it seems is :)/>/> Personal experience :P/>/>
Yeah, but it means I still need to learn a bit more in 1.7.10 modding before people move onto 1.8/1.9. :P/>
Konlab #8
Posted 07 April 2016 - 12:56 PM
Particles are spawned on the server, otherwise players who did not trigger the particles won't see them. In either case, I really cannot get a client side version of the turtle world that I know of, as the turtle is stored serverside.
The world on the server side delegates to net.minecraft.world.WorldManager which has an empty spawnParticle method, so nothing happens on the server. You'll need to send a packet to all players telling particles to be spawned at a location instead.
I was afraid it would come to that. At least it is better than no particles
It is not that hard than it seems is :)/>/>/> Personal experience :P/>/>/>
Yeah, but it means I still need to learn a bit more in 1.7.10 modding before people move onto 1.8/1.9. :P/>/>
But simplenetworkwrapper is the same in both versions