Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TheAwesomeGem

Members
  • 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. I still can't find a way to prevent generation of a block when ChunkLoad. How do you override a vanilla minecraft class?
  3. How do I prevent them from spawning? and/or how do I remove a block?
  4. 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(); } } } } }
  5. How can you alter the vanilla WorldGeneration?
  6. How can I make it so that chest and spawner doesn't generate when chunk loads?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.