Lotus generation
This commit is contained in:
parent
d3c279bf53
commit
cac7be60b1
18 changed files with 469 additions and 11 deletions
|
@ -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.BlockEndLotusSeed;
|
||||
import ru.betterend.registry.BlockRegistry;
|
||||
|
||||
public class EndLotusFeature extends UnderwaterPlantScatter {
|
||||
public EndLotusFeature(int radius) {
|
||||
super(radius);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||
BlockEndLotusSeed seed = (BlockEndLotusSeed) BlockRegistry.END_LOTUS_SEED;
|
||||
seed.grow(world, random, blockPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getChance() {
|
||||
return 15;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue