Advertisement
riking

blah

Jan 30th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. byte[] modx = new byte[] { 1,0,-1,0 };
  2. byte[] modz = new byte[] { 0,1,0,-1 };
  3. float f = 0.7F;
  4. for(byte q = 0; q<4; q++)
  5. {
  6. float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
  7. float f2 = 1.2F;
  8. float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
  9. f1 *= modx[q];
  10. f3 *= modz[q];
  11. EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.appleRed, 3));
  12. entityitem.delayBeforeCanPickup = 10;
  13. world.spawnEntityInWorld(entityitem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement