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

I've been trying to make a structure using the nbt files from the structure block but I don't know where to start, are there any guides, tutorials, or original minecraft code that I could look at? I'd look at the igloo code but I haven't been able to find it

 

EDIT: I found it. It just happened to be in the only one I somehow missed: ComponentScatteredFeaturePieces.java

Edited by GooberGunter

As I said in the other thread, you need to create a Template variable. It takes a TemplateManager (which you can get from WorldServer) and a ResourceLocation for your NBT file (and maybe a couple other parameters). Once you have this, just call the addBlocksToWorld method when you want to generate the structure.

 

I have an example here, though this is kinda complicated code. Just look for Templates in it and it should give you an idea.

Edited by TheXFactor117

Developer of Levels and Lost Eclipse

  • Author

Yeah, I looked at your code and I get the concept completely, I got the results I wanted. Thanks! I completely forgot that you had linked the example

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.