Guest User

Untitled

a guest
Dec 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public void updateTick(World world, int i, int j, int k, Random random)
  2. {
  3. super.updateTick(world, i, j, k, random);
  4. if(world.getBlockLightValue(i, j + 1, k) >= 9)
  5. {
  6. int l = world.getBlockMetadata(i, j, k);
  7. if(l < 4)
  8. {
  9. float f = getGrowthRate(world, i, j, k);
  10. if(random.nextInt((int)(100F / f)) == 0)
  11. {
  12. l++;
  13. world.setBlockMetadataWithNotify(i, j, k, l + 1);
  14. }
  15. }
  16. }
  17. }
Add Comment
Please, Sign In to add comment