Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] modx = new byte[] { 1,0,-1,0 };
- byte[] modz = new byte[] { 0,1,0,-1 };
- float f = 0.7F;
- for(byte q = 0; q<4; q++)
- {
- float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
- float f2 = 1.2F;
- float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
- f1 *= modx[q];
- f3 *= modz[q];
- EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.appleRed, 3));
- entityitem.delayBeforeCanPickup = 10;
- world.spawnEntityInWorld(entityitem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement