Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void updateTick(World world, int i, int j, int k, Random random)
- {
- super.updateTick(world, i, j, k, random);
- if(world.getBlockLightValue(i, j + 1, k) >= 9)
- {
- int l = world.getBlockMetadata(i, j, k);
- if(l < 4)
- {
- float f = getGrowthRate(world, i, j, k);
- if(random.nextInt((int)(100F / f)) == 0)
- {
- l++;
- world.setBlockMetadataWithNotify(i, j, k, l + 1);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment