Small changes
This commit is contained in:
parent
9fc9370adc
commit
15a1a7a668
14 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
package ru.betterend.world.features;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.StructureWorldAccess;
|
||||
import ru.betterend.blocks.basis.BlockPlantWithAge;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
||||
public class GlowPillarFeature extends ScatterFeature {
|
||||
public GlowPillarFeature() {
|
||||
super(9);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
|
||||
return EndBlocks.GLOWING_PILLAR_SEED.canPlaceAt(AIR, world, blockPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||
BlockPlantWithAge seed = ((BlockPlantWithAge) EndBlocks.GLOWING_PILLAR_SEED);
|
||||
seed.growAdult(world, random, blockPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getChance() {
|
||||
return 10;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue