6667686970717273747576
// Try 10 times to spawn tree boolean success = false; for (int i = 0; i < 10; i++) { if (sapling.growSapling(world, new Random(), location.getBlockX(), location.getBlockY(), location.getBlockZ())) { success = true; break; } }
199200201202203204205206207208209
// Try ten times to grow sapling boolean saplingGrown = false; for (int i = 0; i < 10; i++) { if (saplingGen.growSapling(localWorld, new Random(), saplingGrower.x, saplingGrower.y, saplingGrower.z)) { saplingGrown = true; break; } }
256257258259260261262263264265266
boolean mushroomGrown = false; Random random = new Random(); for (int i = 0; i < 10; i++) { if (gen.growSapling(localWorld, random, event.x, event.y, event.z)) { mushroomGrown = true; break; } }