Jump to content

TheAwesomeGem

Members
  • Posts

    82
  • Joined

  • Last visited

Everything posted by TheAwesomeGem

  1. What is a proper way to modify block when loading new chunks? The purpose for this is for me to remove spawners and chest when new chunks load(set it to air).
  2. Thank you! Your tips are really helpful.
  3. I still can't find a way to prevent generation of a block when ChunkLoad. How do you override a vanilla minecraft class?
  4. How do I prevent them from spawning? and/or how do I remove a block?
  5. Really specific. On Topic: Is this an efficient way of doing it? I can't find any other way yet. public class CustomWorldGenerator implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ); Map<ChunkPosition, TileEntity> chunktiles = chunk.chunkTileEntityMap; for(Map.Entry<ChunkPosition, TileEntity> map : chunktiles.entrySet()){ if(map.getValue().blockType.equals(Block.chest)){ TileEntity tileentity = map.getValue(); chunk.chunkTileEntityMap.remove(tileentity); if(tileentity != null){ tileentity.invalidate(); } } } } }
  6. How can you alter the vanilla WorldGeneration?
  7. How can I make it so that chest and spawner doesn't generate when chunk loads?
×
×
  • Create New...

Important Information

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