This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm not able to find anything on adding a redstone particle to something anywhere and the code has updated.
What I'm looking to do is add the particle where the entity is summoned in so that it appears when the entity is in the world.
This is what I have so far, but it doesn't work:
this.world.addParticle(new RedstoneParticleData(ParticleTypes.DUST)),this.getPosX(), this.getPosY(), this.getPosZ(), 0.0, 0.0, 0.0;
There is also RedstoneParticleData.REDSTONE_DUST
All I'm looking to do is port this simple thing to the new version which is one line of code:
this.world.spawnParticle(EnumParticleTypes.REDSTONE, posX + (world.rand.nextFloat() - world.rand.nextFloat()) / 2, posY + (world.rand.nextFloat() / 2 - world.rand.nextFloat()) / 2, posZ + (world.rand.nextFloat() - world.rand.nextFloat()) / 4, -1, -1, 1);
Which should be:
this.world.addParticle(ParticleTypes.DUST, this.getPosX() + (world.rand.nextFloat() - world.rand.nextFloat()) / 2, this.getPosY() + (world.rand.nextFloat() / 2 - world.rand.nextFloat()) / 2, this.getPosZ() + (world.rand.nextFloat() - world.rand.nextFloat()) / 4, -1, -1, 1);
But it's not, and it's something more complicated that way. So, I need help, I can't find any information on how to do this, but yeah.
Got it:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST, 1.0, 1.0, 1.0, 1, 1, 1);
Alright, so I didn't get it.
This will create the redstone dust particle but changing the 1, 1, 1 part does not change the color of it though.
I'm running into a problem where the code works and it's right, but it doesn't work that way though.
This is blue, 0, 0, 1. My particle is not blue, what do I do, hmm though:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST, this.getPosX() + (world.rand.nextFloat() - world.rand.nextFloat()) / 2, this.getPosY() + (world.rand.nextFloat() / 2 - world.rand.nextFloat()) / 2, this.getPosZ() + (world.rand.nextFloat() - world.rand.nextFloat()) / 4, -1, -1, 1);
This should also be blue, but is showing up in the game as red, so I'm not sure:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST, this.getPosX() + (world.rand.nextFloat() - world.rand.nextFloat()) / 2, this.getPosY() + (world.rand.nextFloat() / 2 - world.rand.nextFloat()) / 2, this.getPosZ() + (world.rand.nextFloat() - world.rand.nextFloat()) / 4, 0, 0, 1);
I got the redstone particle to appear, which is something though.
How come it isn't blue though?
How come this isn't blue, or how do I get it to be blue?
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST, this.getPosX() + (world.rand.nextFloat() - world.rand.nextFloat()) / 2, this.getPosY() + (world.rand.nextFloat() / 2 - world.rand.nextFloat()) / 2, this.getPosZ() + (world.rand.nextFloat() - world.rand.nextFloat()) / 4, -1.0, -1.0, 1.0);
This doesn't work either, so there's got to be a way though:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST(ParticleTypes.DUST(RedstoneParticleData.REDSTONE_DUST)), x, y, z, -1.0, -1.0, 1.0);
This is also incorrect though:
this.world.addParticle(new IParticleData(RedstoneParticleData.REDSTONE_DUST(ParticleTypes.DUST)), this.getPosX(), this.getPosY(), this.getPosZ(), 0.0, 0.0, 0.0);
And this doesn't work either:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST(ParticleTypes.DUST)), this.getPosX(), this.getPosY(), this.getPosZ(), 0.0, 0.0, 0.0);
Something about this one doesn't work though that way, although a nice suggestion, how clever:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST(ParticleType<RedstoneParticleData.REDSTONE_DUST>, ParticleTypes.DUST), this.getPosX(), this.getPosY(), this.getPosZ(), 0.0, 0.0, 0.0);
Doesn't work either:
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST(this.addParticle(ParticleTypes.DUST)), this.getPosX(), this.getPosY(), this.getPosZ(), -1.0, -1.0, 1.0);
This one doesn't work:
this.world.addParticle(ParticleTypes.DUST), this.getPosX(), this.getPosY(), this.getPosZ(), 0.0, 0.0, 0.0);
I'm not able to find anything on adding a redstone particle to something anywhere and the code has updated.
What I'm looking to do is add the particle where the entity is summoned in so that it appears when the entity is in the world.
This is what I have so far, but it doesn't work:
There is also RedstoneParticleData.REDSTONE_DUST
All I'm looking to do is port this simple thing to the new version which is one line of code:
Which should be:
But it's not, and it's something more complicated that way. So, I need help, I can't find any information on how to do this, but yeah.
Got it:
Alright, so I didn't get it.
this.world.addParticle(RedstoneParticleData.REDSTONE_DUST, 1.0, 1.0, 1.0, 1, 1, 1);
This will create the redstone dust particle but changing the 1, 1, 1 part does not change the color of it though.
I'm running into a problem where the code works and it's right, but it doesn't work that way though.
This is blue, 0, 0, 1. My particle is not blue, what do I do, hmm though:
This should also be blue, but is showing up in the game as red, so I'm not sure:
I got the redstone particle to appear, which is something though.
How come it isn't blue though?
How come this isn't blue, or how do I get it to be blue?
This doesn't work either, so there's got to be a way though:
This is also incorrect though:
And this doesn't work either:
Something about this one doesn't work though that way, although a nice suggestion, how clever:
Doesn't work either:
This one doesn't work: