# [1.7.10] Rotated cloud Particles from block

## Recommended Posts

Hello! I need help with how to Rotate particles spawned from block?

Code:

public void randomDisplayTick(World world, int i, int j, int k, Random random){

EntityPlayer entity = Minecraft.getMinecraft().thePlayer;

World par1World = world;

int par2 = i;

int par3 = j;

int par4 = k;

Random par5Random = random;

if(true)

for (int la = 0; la < 61; ++la)

{

int l = par1World.getBlockMetadata(par2, par3, par4);

double d0 = (double)((float)par2 + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 1.9D;

double d1 = ((double)((float)par3 + 0.7F) + (double)(par5Random.nextFloat() - 0.5F) * 1.9D*100)+0.5D;

double d2 = (double)((float)par4 + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 1.9D;

double d3 = 0.2199999988079071D;

double d4 = 0.27000001072883606D;

if (l == 1)

{

par1World.spawnParticle("cloud", d0 - d4, d1 + d3, d2, 0.0D, 0.0D, 0.0D);

}

else if (l == 2)

{

par1World.spawnParticle("cloud", d0 + d4, d1 + d3, d2, 0.0D, 0.0D, 0.0D);

}

else if (l == 3)

{

par1World.spawnParticle("cloud", d0, d1 + d3, d2 - d4, 0.0D, 0.0D, 0.0D);

}

else if (l == 4)

{

par1World.spawnParticle("cloud", d0, d1 + d3, d2 + d4, 0.0D, 0.0D, 0.0D);

}

else

{

par1World.spawnParticle("cloud", d0, d1, d2, 0.0D, 0.0D, 0.0D);

}

}

}

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

### Announcements

×

• #### Activity

×
• Create New...