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.

 

Is there an tutorial or someone who can explain me, how Structure Components are working, because I didn't find a tutorial?  ???

 

Bektor

Developer of Primeval Forest.

  • Author

Noob question: what are those? Never heard of those and google isn't helping..

Its a big structure that spawns in parts, like there is spawning randomly the corridor and then there is spawning a room by the corridor and the room is spawned random, too.

(The only thing I found is this: https://github.com/NightKosh/GraveStone-mod/tree/master/structures and this: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/1430173-forge-1-4-7-help-structure-generation?comment=8 )

But well, this didn't helped me that much, because I didn't understood how it works (in Code) so that I can make my own structure.

Developer of Primeval Forest.

Well, every structure is different, so you pretty much have to figure out a way that makes sense for you.

 

A structure is simply just setting a bunch of blocks in the world.  They can get large fast though, because even a 20 x 20 x 20 structure is 8000 possible block locations!

 

If your structures are regular then you can use loops.  Like a wall can just be a loop of setting blocks in the correct positions.

 

If your structures are not regular, then you need some sort of map or template.  I use text files with information that is basically a 3-d array of blocks.  I read in the file into an array and then loop through that, placing each block indicated in the file.

 

Randomness is just a matter of Java programming.  In your generation code just test random number and build different things.

 

If you're trying to make a dungeon or something, there are some open source programs (not necessarily Minecraft, just need any dungeon map code) and you can convert that to Java and Minecraft.

 

Overall though your structures are different than other peoples so there is no good way to generalize a tutorial.  Making a fleet of viking boats (I saw one guy doing this, it was cool) is different than generating a maze.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

But there could be an tutorial that is explaining this things with an example building, because from that what I saw, there is one Structure code and based on this code all structures with there pieces are done.

So there could be a tutorial that is explaining how you can produce a building with and entrance, an corridor and an room. If this would be explained then it would be enough, because then I would know how I can create such basic things and I could make bigger things and could change the code in an way I need it, but if there is no tutorial that will explain the basics of this, I can't use this system, because I have no idea what I need to do that its working.

And for normal structures there are tutorials, but the structures are different from people to people, too.

Developer of Primeval Forest.

AAhh, like worldgen of dungeons or caves.. Try looking at vanilla code: to me a cave seems quite a good example (random and complex enough). Nether fortress might be another option.

Check out my blog!

http://www.whov.altervista.org

I need help with this sort of thing too,

mainly knowing how to add them so they will be built  when a village is created and built

  • Author

AAhh, like worldgen of dungeons or caves.. Try looking at vanilla code: to me a cave seems quite a good example (random and complex enough). Nether fortress might be another option.

Well, looking at code, thats something I did and it didn't helped really much. But yeah, I found after 1 more day of searching an forum post on minecraftforum.net where the creator of the Gravestone mod is trying to explain it. Well, he is more showing the code, so not really helpfull, but this few words that he had written there, from this few words I understand more then reading and looking hours into the code.

Only problem, I need more words that are explaining this, because this few words, well not enough words to create an Structure with this system.

 

So could anyone explain me and all other people that have problems with this, how this system is working (with an example, like an tutorial on how to create a small temple with a corridor, an room and an entrance with this system -> this would be more helpfull for me then looking into the code... and don't come me with look into the mojang code, I understand more code from an mod then from Mojang)

Developer of Primeval Forest.

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.