Jump to content

Blue_Atlas

Members
  • Posts

    132
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Will probably be making mistakes please be patient with me

Recent Profile Visitors

113443 profile views

Blue_Atlas's Achievements

Creeper Killer

Creeper Killer (4/8)

3

Reputation

  1. I don't know exactly what you need to do but I think it needs to be something along the lines of Blocks.WOOL.getDefaultState().withProperty(); Thing is I have not messed with wool so I don't know what properties it has or what you need to put inside the withProperty() part
  2. I'm using this method to set the sky color in my biome class and I'm trying to make it a dark green, does anyone know of a value that does that? @SideOnly(Side.CLIENT) public int getSkyColorByTemp(float currentTemperature) { return 0; }
  3. I'm still trying to figure this out if anyone could help
  4. I'm following this tutorial for creating a dimension but I don't know how to make biomesForGeneration my own list of biomes. Here is my code: public class FelChunkGenerator implements IChunkGenerator { private final World worldObj; private Random random; private Biome[] biomesForGeneration; private List<Biome.SpawnListEntry> mobs = Lists.newArrayList(new Biome.SpawnListEntry(EntityZombie.class, 100, 2, 2)); private MapGenBase caveGenerator = new MapGenCaves(); private NormalTerrainGenerator terraingen = new NormalTerrainGenerator(); public FelChunkGenerator(World worldObj) { this.worldObj = worldObj; long seed = worldObj.getSeed(); this.random = new Random((seed + 516) * 314); terraingen.setup(worldObj, random); caveGenerator = TerrainGen.getModdedMapGen(caveGenerator, InitMapGenEvent.EventType.CAVE); } @Override public Chunk generateChunk(int x, int z) { ChunkPrimer chunkprimer = new ChunkPrimer(); // Setup biomes for terraingen this.biomesForGeneration = this.worldObj.getBiomeProvider().getBiomesForGeneration(this.biomesForGeneration, x * 4 - 2, z * 4 - 2, 10, 10); terraingen.setBiomesForGeneration(biomesForGeneration); terraingen.generate(x, z, chunkprimer); // Setup biomes again for actual biome decoration this.biomesForGeneration = this.worldObj.getBiomeProvider().getBiomes(this.biomesForGeneration, x * 16, z * 16, 16, 16); // This will replace stone with the biome specific stones terraingen.replaceBiomeBlocks(x, z, chunkprimer, this, biomesForGeneration); // Generate caves this.caveGenerator.generate(this.worldObj, x, z, chunkprimer); Chunk chunk = new Chunk(this.worldObj, chunkprimer, x, z); byte[] biomeArray = chunk.getBiomeArray(); for (int i = 0; i < biomeArray.length; ++i) { biomeArray[i] = (byte)Biome.getIdForBiome(this.biomesForGeneration[i]); } chunk.generateSkylightMap(); return chunk; } @Override public void populate(int x, int z) { int i = x * 16; int j = z * 16; BlockPos blockpos = new BlockPos(i, 0, j); Biome biome = this.worldObj.getBiome(blockpos.add(16, 0, 16)); // Add biome decorations (like flowers, grass, trees, ...) biome.decorate(this.worldObj, this.random, blockpos); // Make sure animals appropriate to the biome spawn here when the chunk is generated WorldEntitySpawner.performWorldGenSpawning(this.worldObj, biome, i + 8, j + 8, 16, 16, this.random); } @Override public boolean generateStructures(Chunk chunkIn, int x, int z) { return false; } @Override public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) { // If you want normal creatures appropriate for this biome then uncomment the // following two lines: // Biome biome = this.worldObj.getBiome(pos); // return biome.getSpawnableList(creatureType); if (creatureType == EnumCreatureType.MONSTER){ return mobs; } return ImmutableList.of(); } @Nullable @Override public BlockPos getNearestStructurePos(World worldIn, String structureName, BlockPos position, boolean findUnexplored) { return null; } @Override public boolean isInsideStructure(World worldIn, String structureName, BlockPos pos) { return false; } @Override public void recreateStructures(Chunk chunkIn, int x, int z) { } } can anyone help me?
  5. I think in a previous version of forge it was assigned somewhere in TerrainGen as InitMapGenEvent.EventType.CAVE but got changed. however I managed to find that so I'm all good now
  6. I'm running on the newest recommended version of forge and this line of code has an error that CAVE cannot be resolved to a variable caveGenerator = TerrainGen.getModdedMapGen(caveGenerator, CAVE); I think it is something that does not exist in that code anymore but I don't know what I need to change it to to get the error to go away
  7. I already saw that but it looks like it would create something like the aether dimension from how it talks about what you are going to do in the tutorial
  8. could anyone point me in the direction of a good tutorial for creating a multi biome overworld style dimension?
  9. sorry really should have looked at code before posting here, thanks for the help!
  10. BlockBase: package com.atlas.thelostportal.objects.blocks; import com.atlas.thelostportal.objects.init.ModBlocksInit; import com.atlas.thelostportal.objects.init.ModItemsInit; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemBlock; public class BlockBase extends Block { public BlockBase(String name, Material material, CreativeTabs tab, float hardness, float resistence, String tool, int harvestLevel) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); setHardness(hardness); setResistance(resistence); setHarvestLevel(tool, harvestLevel); ModBlocksInit.BLOCKS.add(this); ModItemsInit.ITEMS.add(new ItemBlock(this).setRegistryName(name)); } }
  11. this block: public static final Block CHORUS_STONE = new BlockBase("chorus_stone", Material.ROCK, Main.lostportaltab, 2.5F, 45.0F, "pickaxe", 1); does not explode when i detonate tnt next to it yet endstone does
  12. I have some values for my blocks blast resistances but vanilla blocks that apparently have the same values explode when my blocks don't. are the actual values different from those on the wiki for vanilla blocks?
  13. I have a few recipes and none of them are working here is one of them { "type": "minecraft:crafting_shaped", "pattern": [ "SSS", "SFS", "SCS" ], "key": { "S": { "item": "minecraft:stone" }, "C": { "item": "thelostportal:catalyst" }, "F": { "item": "minecraft:furnace" } }, "result": { "item": "thelostportal:non_energy_forge", "count": 1 } } I think I wrote the recipe right but it isn't working. Is there something I forgot to do?
  14. nvm looked and found .withRotation(Rotation.CLOCKWISE_90) function
  15. I am currently messing with having a block place the portal block from the nether portal and am trying to change which axis it is on here is my current code for setting a block to portal world.setBlockState(pos.up(), Blocks.PORTAL.getDefaultState().withProperty(BlockPortal.AXIS, value)); what value do I need for value to make it face along the x and z axis?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.