Commit a237abe5 authored by Bailey's avatar Bailey 🚟

updated to 1.15.2, getting ready to change things for an alpha

parent 6b0d6467
......@@ -12,14 +12,14 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.1.2'
version = '0.0.1'
group = 'com.legacy.rediscovered'
archivesBaseName = 'rediscovered-1.15.1'
archivesBaseName = 'rediscovered-1.15.2'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'snapshot', version: '20200123-1.15.1'
mappings channel: 'snapshot', version: '20200225-1.15.1'
runs {
client {
workingDirectory project.file('run')
......@@ -68,7 +68,7 @@ minecraft {
}
dependencies {
minecraft 'net.minecraftforge:forge:1.15.2-31.0.0'
minecraft 'net.minecraftforge:forge:1.15.2-31.1.0'
}
jar {
......
......@@ -16,6 +16,7 @@ import net.minecraft.world.gen.feature.OreFeatureConfig.FillerBlockType;
import net.minecraft.world.gen.placement.CountRangeConfig;
import net.minecraft.world.gen.placement.Placement;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.common.BiomeDictionary;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.ModLoadingContext;
......@@ -59,11 +60,14 @@ public class RediscoveredMod
{
for (Biome biome : ForgeRegistries.BIOMES.getValues())
{
if (biome.getRegistryName().getNamespace().equalsIgnoreCase("minecraft") && !biome.getRegistryName().toString().contains("end") && biome != Biomes.NETHER && biome != Biomes.THE_VOID)
if (biome.getRegistryName().getNamespace().equalsIgnoreCase("minecraft") && !BiomeDictionary.hasType(biome, BiomeDictionary.Type.NETHER) && !BiomeDictionary.hasType(biome, BiomeDictionary.Type.END) && !BiomeDictionary.hasType(biome, BiomeDictionary.Type.VOID))
{
biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.func_225566_b_(new OreFeatureConfig(FillerBlockType.NATURAL_STONE, RediscoveredBlocks.ruby_ore.getDefaultState(), 4)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(2, 0, 0, 32))));
biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(FillerBlockType.NATURAL_STONE, RediscoveredBlocks.ruby_ore.getDefaultState(), 4)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(2, 0, 0, 32))));
if (RediscoveredConfig.undeadHorsesAgressive && !biome.getRegistryName().toString().contains("ocean"))
if (BiomeDictionary.hasType(biome, BiomeDictionary.Type.OCEAN) || BiomeDictionary.hasType(biome, BiomeDictionary.Type.RIVER))
biome.getSpawns(EntityClassification.WATER_CREATURE).add(new Biome.SpawnListEntry(RediscoveredEntityTypes.FISH, 10, 3, 6));
if (RediscoveredConfig.undeadHorsesAgressive && !BiomeDictionary.hasType(biome, BiomeDictionary.Type.OCEAN))
biome.getSpawns(EntityClassification.MONSTER).add(new Biome.SpawnListEntry(RediscoveredEntityTypes.VANILLA_SPAWNER, 1, 1, 2));
}
......
package com.legacy.rediscovered.block;
import java.util.List;
import com.legacy.rediscovered.entity.util.MountableBlockEntity;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.HorizontalBlock;
import net.minecraft.block.IWaterLoggable;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.fluid.Fluids;
import net.minecraft.fluid.IFluidState;
import net.minecraft.item.BlockItemUseContext;
......@@ -11,13 +16,18 @@ import net.minecraft.state.BooleanProperty;
import net.minecraft.state.DirectionProperty;
import net.minecraft.state.StateContainer;
import net.minecraft.state.properties.BlockStateProperties;
import net.minecraft.util.ActionResultType;
import net.minecraft.util.Direction;
import net.minecraft.util.Hand;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.util.math.shapes.VoxelShapes;
import net.minecraft.world.IBlockReader;
import net.minecraft.world.IWorld;
import net.minecraft.world.World;
public class ChairBlock extends HorizontalBlock implements IWaterLoggable
{
......@@ -41,6 +51,36 @@ public class ChairBlock extends HorizontalBlock implements IWaterLoggable
return state.get(FACING) == Direction.SOUTH ? SOUTH_SHAPE : state.get(FACING) == Direction.EAST ? EAST_SHAPE : state.get(FACING) == Direction.WEST ? WEST_SHAPE : NORTH_SHAPE;
}
@Override
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
{
if (!worldIn.isRemote)
{
List<MountableBlockEntity> listEMB = worldIn.getEntitiesWithinAABB(MountableBlockEntity.class, new AxisAlignedBB(pos.getX(), pos.getY(), pos.getZ(), pos.getX() + 1.0D, pos.getY() + 1.0D, pos.getZ() + 1.0D).expand(1D, 1D, 1D));
for (MountableBlockEntity entitytocheck : listEMB)
{
if (entitytocheck.orgBlockPosX == pos.getX() && entitytocheck.orgBlockPosY == pos.getY() && entitytocheck.orgBlockPosZ == pos.getZ())
{
entitytocheck.interact(player);
return ActionResultType.SUCCESS;
}
}
float mountingX = pos.getX() + 0.5F;
float mountingY = pos.getY();
float mountingZ = pos.getZ() + 0.5F;
MountableBlockEntity nemb = new MountableBlockEntity(worldIn, player, pos.getX(), pos.getY(), pos.getZ(), mountingX, mountingY, mountingZ);
worldIn.addEntity(nemb);
nemb.interact(player);
return ActionResultType.SUCCESS;
}
else
{
return ActionResultType.SUCCESS;
}
}
@Override
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos)
{
......
......@@ -16,9 +16,8 @@ public class CherryTree extends Tree
}*/
@Override
protected ConfiguredFeature<TreeFeatureConfig, ?> func_225546_b_(Random p_225546_1_, boolean p_225546_2_)
protected ConfiguredFeature<TreeFeatureConfig, ?> getTreeFeature(Random randomIn, boolean p_225546_2_)
{
// TODO Auto-generated method stub
return null;
}
}
\ No newline at end of file
......@@ -67,20 +67,20 @@ public class BeastBoyRenderer extends EntityRenderer<BeastBoyEntity>
z = y - (float) entity.getYOffset();
y = x;*/
matrix.push();
RenderSystem.pushMatrix();
//RenderSystem.pushMatrix();
//float f5 = entity.prevRenderYawOffset + (entity.renderYawOffset - entity.prevRenderYawOffset) * ticks;
RenderSystem.translated(0, 0, -10.0);
//RenderSystem.translated(0, 0, -10.0);
float scale = 0.05f;
RenderSystem.scalef(scale, scale, scale);
RenderSystem.translatef(0, -50, 0);
RenderSystem.rotatef(-90, 1, 0, 0);
RenderSystem.rotatef(entity.prevRotationYawHead, 0, 0, 1);
//RenderSystem.scalef(scale, scale, scale);
//RenderSystem.translatef(0, -50, 0);
//RenderSystem.rotatef(-90, 1, 0, 0);
//RenderSystem.rotatef(entity.prevRotationYawHead, 0, 0, 1);
//RenderSystem.rotatef(0, 0, 0, 0);
//matrix.translate(x, y, z);
matrix.translate(x, y, z);
Minecraft.getInstance().textureManager.bindTexture(RediscoveredMod.locate("textures/entity/beast_boy.png"));
//matrix.rotate(Vector3f.field_229181_d_.func_229187_a_(-f5 + 180F));
//matrix.rotate(Vector3f.field_229179_b_.func_229187_a_(-90.0F));
matrix.rotate(Vector3f.XP.rotation(-yaw + 180F));
matrix.rotate(Vector3f.XP.rotation(-90.0F));
//matrix.scale(0.02F, -0.02F, 0.02F);
float rotation = entity.ticksExisted + ticks * getSpeedMultiplier(entity);
......@@ -90,15 +90,18 @@ public class BeastBoyRenderer extends EntityRenderer<BeastBoyEntity>
int frame2 = (frame1 + 1) % renderer.getAnimFrames();
//GL11.glShadeModel(GL11.GL_SMOOTH);
GL11.glEnable(GL11.GL_NORMALIZE);
RenderSystem.shadeModel(GL11.GL_SMOOTH);
//GL11.glEnable(GL11.GL_NORMALIZE);
RenderSystem.enableRescaleNormal();
renderer.render(frame1, frame2, 0);
GL11.glDisable(GL11.GL_NORMALIZE);
RenderSystem.disableRescaleNormal();
//GL11.glDisable(GL11.GL_NORMALIZE);
}
catch (Exception e)
{
e.printStackTrace();
}
RenderSystem.popMatrix();
//RenderSystem.popMatrix();
matrix.pop();
}
}
\ No newline at end of file
......@@ -67,7 +67,7 @@ public class BlackSteveRenderer extends EntityRenderer<BlackSteveEntity>
matrix.push();
float f5 = entity.prevRenderYawOffset + (entity.renderYawOffset - entity.prevRenderYawOffset) * ticks;
matrix.translate(f1, f2, yaw);
RenderType.entityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
RenderType.getEntityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
matrix.rotate(Vector3f.YP.rotationDegrees(-f5 + 180F));
matrix.rotate(Vector3f.YP.rotationDegrees(-90.0F));
matrix.scale(0.02F, -0.02F, 0.02F);
......
......@@ -66,7 +66,7 @@ public class RanaRenderer extends EntityRenderer<RanaEntity>
matrix.push();
float f5 = entity.prevRenderYawOffset + (entity.renderYawOffset - entity.prevRenderYawOffset) * ticks;
matrix.translate(f1, f2, yaw);
RenderType.entityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
RenderType.getEntityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
matrix.rotate(Vector3f.YP.rotationDegrees(-f5 + 180F));
matrix.rotate(Vector3f.YP.rotationDegrees(-90.0F));
matrix.scale(0.02F, -0.02F, 0.02F);
......
......@@ -61,7 +61,7 @@ public class SteveRenderer extends EntityRenderer<SteveEntity>
matrix.push();
float f5 = entity.prevRenderYawOffset + (entity.renderYawOffset - entity.prevRenderYawOffset) * ticks;
matrix.translate(f1, f2, yaw);
RenderType.entityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
RenderType.getEntityCutout(RediscoveredMod.locate("textures/entity/steve.png"));
matrix.rotate(Vector3f.YP.rotationDegrees(-f5 + 180F));
matrix.rotate(Vector3f.YP.rotationDegrees(-90.0F));
matrix.scale(0.02F, -0.02F, 0.02F);
......
......@@ -52,7 +52,7 @@ public class FishModel<T extends LivingEntity> extends SegmentedModel<T>
}
@Override
public void render(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
public void setRotationAngles(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
{
float a = 1.0F;
if (!entityIn.isInWater())
......
......@@ -60,7 +60,7 @@ public class ScarecrowModel<T extends Entity> extends SegmentedModel<T>
}
@Override
public void render(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_)
public void setRotationAngles(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_)
{
}
}
......@@ -7,6 +7,7 @@ import com.legacy.rediscovered.RediscoveredRegistry;
import com.legacy.rediscovered.entity.pigman.MeleePigmanEntity;
import com.legacy.rediscovered.entity.pigman.PigmanEntity;
import com.legacy.rediscovered.entity.pigman.RangedPigmanEntity;
import com.legacy.rediscovered.entity.util.MountableBlockEntity;
import com.legacy.rediscovered.entity.util.SpawnerEntity;
import com.legacy.rediscovered.world.dimension.RediscoveredDimensions;
......@@ -27,7 +28,7 @@ import net.minecraftforge.registries.ObjectHolder;
@ObjectHolder(RediscoveredMod.MODID)
public class RediscoveredEntityTypes
{
public static final EntityType<FishEntity> FISH = buildEntity("fish", EntityType.Builder.create(FishEntity::new, EntityClassification.CREATURE).size(0.5F, 0.3F));
public static final EntityType<FishEntity> FISH = buildEntity("fish", EntityType.Builder.create(FishEntity::new, EntityClassification.WATER_CREATURE).size(0.5F, 0.3F));
public static final EntityType<PigmanEntity> PIGMAN = buildEntity("pigman", EntityType.Builder.create(PigmanEntity::new, EntityClassification.CREATURE).size(0.6F, 1.9F));
public static final EntityType<MeleePigmanEntity> MELEE_PIGMAN = buildEntity("melee_pigman", EntityType.Builder.create(MeleePigmanEntity::new, EntityClassification.CREATURE).size(0.6F, 1.9F));
public static final EntityType<RangedPigmanEntity> RANGED_PIGMAN = buildEntity("ranged_pigman", EntityType.Builder.create(RangedPigmanEntity::new, EntityClassification.CREATURE).size(0.6F, 1.9F));
......@@ -42,6 +43,7 @@ public class RediscoveredEntityTypes
public static final EntityType<ScarecrowEntity> SCARECROW = buildEntity("scarecrow", EntityType.Builder.<ScarecrowEntity>create(ScarecrowEntity::new, EntityClassification.MISC).size(0.3F, 1.975F));
public static final EntityType<SpawnerEntity> VANILLA_SPAWNER = buildEntity("spawner", EntityType.Builder.create(SpawnerEntity::new, EntityClassification.CREATURE).size(1.0F, 2.0F));
public static final EntityType<PurpleArrowEntity> PURPLE_ARROW = buildEntity("purple_arrow", EntityType.Builder.<PurpleArrowEntity>create(PurpleArrowEntity::new, EntityClassification.MISC).setCustomClientFactory(PurpleArrowEntity::new).setShouldReceiveVelocityUpdates(true).size(0.5F, 0.5F));
public static final EntityType<MountableBlockEntity> MOUNTABLE_BLOCK = buildEntity("mountable_block", EntityType.Builder.<MountableBlockEntity>create(MountableBlockEntity::new, EntityClassification.MISC).setCustomClientFactory(MountableBlockEntity::new).size(1.0F, 1.0F));
public static void init(Register<EntityType<?>> event)
{
......@@ -49,16 +51,17 @@ public class RediscoveredEntityTypes
RediscoveredRegistry.register(event.getRegistry(), "pigman", PIGMAN);
RediscoveredRegistry.register(event.getRegistry(), "melee_pigman", MELEE_PIGMAN);
RediscoveredRegistry.register(event.getRegistry(), "ranged_pigman", RANGED_PIGMAN);
RediscoveredRegistry.register(event.getRegistry(), "steve", STEVE);
RediscoveredRegistry.register(event.getRegistry(), "rana", RANA);
RediscoveredRegistry.register(event.getRegistry(), "black_steve", BLACK_STEVE);
RediscoveredRegistry.register(event.getRegistry(), "beast_boy", BEAST_BOY);
RediscoveredRegistry.register(event.getRegistry(), "red_dragon", RED_DRAGON);
RediscoveredRegistry.register(event.getRegistry(), "scarecrow", SCARECROW);
//RediscoveredRegistry.register(event.getRegistry(), "spawner", VANILLA_SPAWNER);
// RediscoveredRegistry.register(event.getRegistry(), "spawner",
// VANILLA_SPAWNER);
RediscoveredRegistry.register(event.getRegistry(), "purple_arrow", PURPLE_ARROW);
registerSpawnConditions();
......
package com.legacy.rediscovered.entity.util;
import com.legacy.rediscovered.entity.RediscoveredEntityTypes;
import net.minecraft.block.BlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.network.IPacket;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.network.FMLPlayMessages;
import net.minecraftforge.fml.network.NetworkHooks;
public class MountableBlockEntity extends Entity
{
public int orgBlockPosX;
public int orgBlockPosY;
public int orgBlockPosZ;
public BlockState orgBlockID;
public float blahx, blahy, blahz;
public MountableBlockEntity(EntityType<? extends MountableBlockEntity> type, World world)
{
super(type, world);
noClip = true;
preventEntitySpawning = true;
}
public MountableBlockEntity(World world, double d, double d1, double d2)
{
super(RediscoveredEntityTypes.MOUNTABLE_BLOCK, world);
noClip = true;
preventEntitySpawning = true;
setPosition(d, d1, d2);
}
public MountableBlockEntity(World world, PlayerEntity PlayerEntity, int i, int j, int k, float mountingX, float mountingY, float mountingZ)
{
super(RediscoveredEntityTypes.MOUNTABLE_BLOCK, world);
noClip = true;
preventEntitySpawning = true;
orgBlockPosX = i;
orgBlockPosY = j;
orgBlockPosZ = k;
orgBlockID = world.getBlockState(new BlockPos(i, j, k));
blahx = mountingX;
blahy = mountingY;
blahz = mountingZ;
setPosition(mountingX, mountingY, mountingZ);
}
public MountableBlockEntity(FMLPlayMessages.SpawnEntity spawnEntity, World world)
{
this(RediscoveredEntityTypes.MOUNTABLE_BLOCK, world);
}
public boolean interact(PlayerEntity playerIn)
{
if (this.getRidingEntity() != null && this.getRidingEntity() instanceof PlayerEntity && this.getRidingEntity() != playerIn)
{
return true;
}
else
{
if (!this.world.isRemote)
{
playerIn.startRiding(this);
}
return true;
}
}
@SuppressWarnings("deprecation")
@Override
public void tick()
{
super.tick();
if (this.getPassengers().isEmpty() || !this.getPassengers().isEmpty() && !this.getPassengers().get(0).isAlive() || this.ticksExisted > 20 && this.world.getBlockState(this.getPosition().up()).isAir())
{
this.remove();
}
if ((this.getPosY() == Math.floor(this.getPosY())) && !Double.isInfinite(this.getPosY()))
{
float yLevel = 0;
yLevel -= 0.5F;
this.setPosition(this.getPosX(), yLevel, this.getPosZ()); ;
}
}
@Override
public boolean canBePushed()
{
return false;
}
@Override
public void registerData()
{
}
@Override
public void readAdditional(CompoundNBT nbttagcompound)
{
}
@Override
public void writeAdditional(CompoundNBT nbttagcompound)
{
}
@Override
public IPacket<?> createSpawnPacket()
{
return NetworkHooks.getEntitySpawningPacket(this);
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ import net.minecraftforge.api.distmarker.OnlyIn;
public final class SkylandsBiome extends Biome
{
public static final BlockClusterFeatureConfig CLASSIC_FLOWER_CONFIG = (new BlockClusterFeatureConfig.Builder((new WeightedBlockStateProvider()).func_227407_a_(RediscoveredBlocks.rose.getDefaultState(), 2).func_227407_a_(Blocks.DANDELION.getDefaultState(), 1), new SimpleBlockPlacer())).func_227315_a_(64).func_227322_d_();
public static final BlockClusterFeatureConfig CLASSIC_FLOWER_CONFIG = (new BlockClusterFeatureConfig.Builder((new WeightedBlockStateProvider()).func_227407_a_(RediscoveredBlocks.rose.getDefaultState(), 2).func_227407_a_(Blocks.DANDELION.getDefaultState(), 1), new SimpleBlockPlacer())).tries(64).build();
public SkylandsBiome()
{
......@@ -41,14 +41,15 @@ public final class SkylandsBiome extends Biome
//this.addFeature(GenerationStage.Decoration.SURFACE_STRUCTURES, Biome.createDecoratedFeature(RediscoveredFeatures.SMALL_PIGMAN_VILLAGE, new SmallPigmanVillageConfig(), Placement.NOPE, IPlacementConfig.NO_PLACEMENT_CONFIG));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, RediscoveredFeatures.CHERRY_TREE.func_225566_b_(DefaultBiomeFeatures.field_226810_e_).func_227228_a_(Placement.COUNT_EXTRA_HEIGHTMAP.func_227446_a_(new AtSurfaceWithExtraConfig(0, 0.7F, 1))));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.field_227247_y_.func_225566_b_(CLASSIC_FLOWER_CONFIG).func_227228_a_(Placement.COUNT_HEIGHTMAP_32.func_227446_a_(new FrequencyConfig(2))));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, RediscoveredFeatures.CHERRY_TREE.withConfiguration(DefaultBiomeFeatures.OAK_TREE_CONFIG).withPlacement(Placement.COUNT_EXTRA_HEIGHTMAP.configure(new AtSurfaceWithExtraConfig(0, 0.7F, 1))));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(CLASSIC_FLOWER_CONFIG).withPlacement(Placement.COUNT_HEIGHTMAP_32.configure(new FrequencyConfig(2))));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.field_227248_z_.func_225566_b_(DefaultBiomeFeatures.field_226826_u_).func_227228_a_(Placement.COUNT_HEIGHTMAP_DOUBLE.func_227446_a_(new FrequencyConfig(1))));
this.addFeature(GenerationStage.Decoration.TOP_LAYER_MODIFICATION, new IceAndSnowSkyFeature(NoFeatureConfig::deserialize).func_225566_b_(IFeatureConfig.NO_FEATURE_CONFIG).func_227228_a_(Placement.NOPE.func_227446_a_(IPlacementConfig.NO_PLACEMENT_CONFIG)));
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(DefaultBiomeFeatures.GRASS_CONFIG).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1))));
this.addFeature(GenerationStage.Decoration.TOP_LAYER_MODIFICATION, new IceAndSnowSkyFeature(NoFeatureConfig::deserialize).withConfiguration(IFeatureConfig.NO_FEATURE_CONFIG).withPlacement(Placement.NOPE.configure(IPlacementConfig.NO_PLACEMENT_CONFIG)));
DefaultBiomeFeatures.addOres(this);
this.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.func_225566_b_(new OreFeatureConfig(FillerBlockType.NATURAL_STONE, RediscoveredBlocks.ruby_ore.getDefaultState(), 4)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(2, 0, 0, 32))));
this.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(FillerBlockType.NATURAL_STONE, RediscoveredBlocks.ruby_ore.getDefaultState(), 4)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(2, 0, 0, 32))));
this.addSpawn(EntityClassification.CREATURE, new Biome.SpawnListEntry(EntityType.CHICKEN, 150, 2, 4));
this.addSpawn(EntityClassification.CREATURE, new Biome.SpawnListEntry(EntityType.COW, 110, 2, 4));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment