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 want to spawn some new structures in minecraft but some of them are pretty big so I need a lot of code. With MCEdit you can create .schematic files which contains my structure. And here's the question:

 

How can I read the blocks and metadata from a .schematic file?

 

On the internet I didn't find anything useful for the current version.

 

Sorry for my bad english  :D

 

 

This mod doesn't really help me with READING .schematic files :(

 

Yes it does.  There is code in there, I think the SchematicPrinter class which goes through the file and turns it into blocks.  That code explains how the schematic file is interpreted.

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

I think this could help you:

https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/github/lunatrius/schematica/world/schematic/?at=master

https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/minecolonies/util/Schematic.java?at=master

 

This mod is using Schematica for placing schematics in the world and there are classes that can show you how to read the schematic files and how to scan a building that you can put it into a schematic file.

 

 

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.