Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void animateTick(BlockState state, Level level, BlockPos pos, Random random) {
- super.animateTick(state, level, pos, random);
- if (random.nextInt(80) == 0) {
- BlockPos belowPos = pos.below();
- if (level.isEmptyBlock(belowPos)) {
- double d0 = random.nextGaussian() * 0.02D;
- double d1 = random.nextGaussian() * 0.02D;
- double d2 = random.nextGaussian() * 0.02D;
- double d3 = (float)pos.getX() + random.nextFloat();
- double d4 = (double)pos.getY() - 0.05D;
- double d6 = (float)pos.getZ() + random.nextFloat();
- level.addParticle(MysticParticles.FALLING_JACARANDA.get(), d3, d4, d6, d0, d1, d2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement