Grass, moss, fixes
This commit is contained in:
parent
eb1ae97c50
commit
2c2757ba8e
12 changed files with 43 additions and 6 deletions
|
@ -115,7 +115,6 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
||||||
sphere = new SDFTranslate().setTranslate(0, offsetY, 0).setSource(sphere);
|
sphere = new SDFTranslate().setTranslate(0, offsetY, 0).setSource(sphere);
|
||||||
|
|
||||||
int leafCount = (int) (radius * 0.5F) + 2;
|
int leafCount = (int) (radius * 0.5F) + 2;
|
||||||
System.out.println("Origin " + pos);
|
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
float angle = (float) i / 4 * MHelper.PI2;
|
float angle = (float) i / 4 * MHelper.PI2;
|
||||||
List<Vector3f> spline = SplineHelper.copySpline(LEAF);
|
List<Vector3f> spline = SplineHelper.copySpline(LEAF);
|
||||||
|
|
|
@ -194,6 +194,7 @@ public class EndBlocks {
|
||||||
public static final Block AMBER_GRASS = registerBlock("amber_grass", new BlockTerrainPlant(AMBER_MOSS));
|
public static final Block AMBER_GRASS = registerBlock("amber_grass", new BlockTerrainPlant(AMBER_MOSS));
|
||||||
public static final Block TWISTED_UMBRELLA_MOSS = registerBlock("twisted_umbrella_moss", new BlockTwistedUmbrellaMoss());
|
public static final Block TWISTED_UMBRELLA_MOSS = registerBlock("twisted_umbrella_moss", new BlockTwistedUmbrellaMoss());
|
||||||
public static final Block TWISTED_UMBRELLA_MOSS_TALL = registerBlock("twisted_umbrella_moss_tall", new BlockTwistedUmbrellaMossTall());
|
public static final Block TWISTED_UMBRELLA_MOSS_TALL = registerBlock("twisted_umbrella_moss_tall", new BlockTwistedUmbrellaMossTall());
|
||||||
|
public static final Block JUNGLE_GRASS = registerBlock("jungle_grass", new BlockTerrainPlant(JUNGLE_MOSS));
|
||||||
|
|
||||||
public static final Block BLUE_VINE_SEED = registerBlock("blue_vine_seed", new BlockBlueVineSeed());
|
public static final Block BLUE_VINE_SEED = registerBlock("blue_vine_seed", new BlockBlueVineSeed());
|
||||||
public static final Block BLUE_VINE = registerBlockNI("blue_vine", new BlockBlueVine());
|
public static final Block BLUE_VINE = registerBlockNI("blue_vine", new BlockBlueVine());
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class EndFeatures {
|
||||||
public static final EndFeature LANCELEAF = new EndFeature("lanceleaf", new LanceleafFeature(), 3);
|
public static final EndFeature LANCELEAF = new EndFeature("lanceleaf", new LanceleafFeature(), 3);
|
||||||
public static final EndFeature GLOW_PILLAR = new EndFeature("glow_pillar", new GlowPillarFeature(), 1);
|
public static final EndFeature GLOW_PILLAR = new EndFeature("glow_pillar", new GlowPillarFeature(), 1);
|
||||||
public static final EndFeature TWISTED_UMBRELLA_MOSS = new EndFeature("twisted_umbrella_moss", new DoublePlantFeature(EndBlocks.TWISTED_UMBRELLA_MOSS, EndBlocks.TWISTED_UMBRELLA_MOSS_TALL, 6), 5);
|
public static final EndFeature TWISTED_UMBRELLA_MOSS = new EndFeature("twisted_umbrella_moss", new DoublePlantFeature(EndBlocks.TWISTED_UMBRELLA_MOSS, EndBlocks.TWISTED_UMBRELLA_MOSS_TALL, 6), 5);
|
||||||
|
public static final EndFeature JUNGLE_GRASS = new EndFeature("jungle_grass", new CavePlantFeature(EndBlocks.JUNGLE_GRASS, 7), 8);
|
||||||
|
|
||||||
// Vines //
|
// Vines //
|
||||||
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
||||||
|
|
|
@ -13,6 +13,7 @@ public class BiomeUmbrellaJungle extends EndBiome {
|
||||||
.setSurface(EndBlocks.JUNGLE_MOSS)
|
.setSurface(EndBlocks.JUNGLE_MOSS)
|
||||||
.addFeature(EndFeatures.UMBRELLA_TREE)
|
.addFeature(EndFeatures.UMBRELLA_TREE)
|
||||||
.addFeature(EndFeatures.TWISTED_UMBRELLA_MOSS)
|
.addFeature(EndFeatures.TWISTED_UMBRELLA_MOSS)
|
||||||
|
.addFeature(EndFeatures.JUNGLE_GRASS)
|
||||||
.addFeature(EndFeatures.END_LAKE));
|
.addFeature(EndFeatures.END_LAKE));
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -180,11 +180,6 @@ public class UmbrellaTreeFeature extends DefaultFeature {
|
||||||
int length = MHelper.floor(MHelper.randRange(1F, 5F, random) * scale + 0.5F);
|
int length = MHelper.floor(MHelper.randRange(1F, 5F, random) * scale + 0.5F);
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
mut.setY(MHelper.floor(py - i));
|
mut.setY(MHelper.floor(py - i));
|
||||||
//mut.setX(MHelper.floor(px));
|
|
||||||
//mut.setZ(MHelper.floor(pz));
|
|
||||||
/*if (world.isAir(mut)) {
|
|
||||||
BlocksHelper.setWithoutUpdate(world, mut, fruit);
|
|
||||||
}*/
|
|
||||||
double radius = (1 - (double) i / length) * 0.5;
|
double radius = (1 - (double) i / length) * 0.5;
|
||||||
for (int j = 0; j < 2; j++) {
|
for (int j = 0; j < 2; j++) {
|
||||||
mut.setX(MHelper.floor(random.nextGaussian() * radius + px + 0.5));
|
mut.setX(MHelper.floor(random.nextGaussian() * radius + px + 0.5));
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{ "model": "betterend:block/jungle_grass_01" },
|
||||||
|
{ "model": "betterend:block/jungle_grass_02" },
|
||||||
|
{ "model": "betterend:block/jungle_grass_03" },
|
||||||
|
{ "model": "betterend:block/jungle_grass_04" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "block/cross",
|
||||||
|
"textures": {
|
||||||
|
"cross": "betterend:block/jungle_grass"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/crop_block",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_grass"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/cross_inverted",
|
||||||
|
"textures": {
|
||||||
|
"cross": "betterend:block/jungle_grass"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "betterend:block/crop_block_inverted",
|
||||||
|
"textures": {
|
||||||
|
"texture": "betterend:block/jungle_grass"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "betterend:block/jungle_grass"
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 471 B |
Loading…
Add table
Add a link
Reference in a new issue