Lanceleaf, more moss variation, translations
This commit is contained in:
parent
5bd4abebfb
commit
2183fe5829
43 changed files with 480 additions and 35 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.basis.BlockPlantWithAge;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
||||
public class LanceleafFeature extends ScatterFeature {
|
||||
public LanceleafFeature() {
|
||||
super(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
|
||||
return EndBlocks.LANCELEAF_SEED.canPlaceAt(AIR, world, blockPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||
BlockPlantWithAge seed = ((BlockPlantWithAge) EndBlocks.LANCELEAF_SEED);
|
||||
seed.growAdult(world, random, blockPos);
|
||||
}
|
||||
}
|
|
@ -74,10 +74,10 @@ public class HelixTreeFeature extends DefaultFeature {
|
|||
for (int i = 0; i <= 20; i++) {
|
||||
float radius = i * 0.1F - 1;
|
||||
radius *= radius;
|
||||
radius = (1 - radius) * 4F * scale;
|
||||
radius = (1 - radius) * 8F * scale;
|
||||
dx = (float) Math.sin(i * 0.25F + angle) * radius;
|
||||
dz = (float) Math.cos(i * 0.25F + angle) * radius;
|
||||
spline.add(new Vector3f(dx, i * scale, dz));
|
||||
spline.add(new Vector3f(dx, i * scale * 1.2F, dz));
|
||||
}
|
||||
|
||||
Vector3f start = new Vector3f();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue