Flowers generation

This commit is contained in:
paulevsGitch 2020-12-04 22:54:50 +03:00
parent eb6d36b5dd
commit a54f7d5e6d
5 changed files with 34 additions and 8 deletions

View file

@ -0,0 +1,25 @@
package ru.betterend.world.features;
import java.util.Random;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.StructureWorldAccess;
import ru.betterend.blocks.BlockHydraluxSapling;
import ru.betterend.registry.EndBlocks;
public class HydraluxFeature extends UnderwaterPlantScatter {
public HydraluxFeature(int radius) {
super(radius);
}
@Override
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
BlockHydraluxSapling seed = (BlockHydraluxSapling) EndBlocks.HYDRALUX_SAPLING;
seed.grow(world, random, blockPos);
}
@Override
protected int getChance() {
return 15;
}
}