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.

Featured Replies

Posted

Hello, guys. I've created a new dimension for my server extending from WorldProvider, but no blocks are being generated. So I noticed I need a ChunkGenerator for generate anything I want, such like blocks and structures.

 

I'd like to have a simple example of code that generates a simple map just like SuperFlat World in Minecraft (like on the attachment picture) or some tip on how to start placing blocks or structures.

 

My Dimension and Biome are already registered and works, but most of time I teleported to the dimension it won't load the map, I guess because there's no content.

 

My code: https://pastebin.com/Yt1mEUdL

 

flatworld.png

  • Author

Thank you, now it's a little better to understand.

 

But I'm getting an error while generating chunks.

 

The Code + Exception are on this link:  https://pastebin.com/cNuKjyE0

 

java.lang.NullPointerException: null

    at net.minecraft.world.Teleporter.placeInExistingPortal(Teleporter.java:136) ~[Teleporter.class:?]

    at net.minecraft.world.Teleporter.placeInPortal(Teleporter.java:39) ~[Teleporter.class:?]

    at net.minecraft.world.Teleporter.placeEntity(Teleporter.java:443) ~[Teleporter.class:?]

    at net.minecraft.server.management.PlayerList.transferEntityToWorld(PlayerList.java:762) ~[PlayerList.class:?]

    at net.minecraft.server.management.PlayerList.transferPlayerToDimension(PlayerList.java:662) ~[PlayerList.class:?]

    at net.minecraft.entity.player.EntityPlayerMP.changeDimension(EntityPlayerMP.java:745) ~[EntityPlayerMP.class:?]

    at net.minecraft.entity.Entity.changeDimension(Entity.java:2911) ~[Entity.class:?]

    at com.felzend.commands.SwitchWorldCommand.execute(SwitchWorldCommand.java:32) ~[SwitchWorldCommand.class:?]

    at net.minecraft.command.CommandHandler.tryExecute(CommandHandler.java:126) [CommandHandler.class:?]

    at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:98) [CommandHandler.class:?]

    at net.minecraft.network.NetHandlerPlayServer.handleSlashCommand(NetHandlerPlayServer.java:1003) [NetHandlerPlayServer.class:?]

    at net.minecraft.network.NetHandlerPlayServer.processChatMessage(NetHandlerPlayServer.java:979) [NetHandlerPlayServer.class:?]

    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(CPacketChatMessage.java:47) [CPacketChatMessage.class:?]

    at net.minecraft.network.play.client.CPacketChatMessage.processPacket(CPacketChatMessage.java:8) [CPacketChatMessage.class:?]

    at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) [PacketThreadUtil$1.class:?]

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_251]

Edited by Fel486

Guest
This topic is now closed to further replies.

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.