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.
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
[1.7.10] Turtle's world object does not show particles
Started by KnightMiner, 04 April 2016 - 08:05 PMPosted 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.
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.
Posted 05 April 2016 - 05:58 PM
I am not really a forge pro but I think you need to spawn particles client side.
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.
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.
Posted 06 April 2016 - 06:12 AM
I was afraid it would come to that. At least it is better than no particlesParticles 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.
Posted 06 April 2016 - 02:25 PM
It is not that hard than it seems is :)/>I was afraid it would come to that. At least it is better than no particlesParticles 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.
Personal experience :P/>
Posted 07 April 2016 - 12:38 AM
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/>It is not that hard than it seems is :)/>/> Personal experience :P/>/>I was afraid it would come to that. At least it is better than no particlesThe 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.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.
Posted 07 April 2016 - 12:56 PM
But simplenetworkwrapper is the same in both versionsYeah, 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/>/>It is not that hard than it seems is :)/>/>/> Personal experience :P/>/>/>I was afraid it would come to that. At least it is better than no particlesThe 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.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.