[Tutorial] Create and import a schematic file (.mts)

Post Reply
User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

[Tutorial] Create and import a schematic file (.mts)

by jp » Post

A schematic file (.mts) is used to import building(s) into a world with WorldEdit.
This file can be found into the “worlds/<my_world>/schems” folder.
  • How to create a schematic file :

    1. Enter in your world (with WorldEdit enabled).
    2. Grant yourself all privileges : /grant singleplayer all¹.
    3. Press F5 to display the coordinates.
    4. Select the area to export with : //pos1 and //pos2.
    5. Create your schematic file with : //mtschemcreate <name of your schematic file>.

    Your schematic will appears into the “worlds/<my_world>/schems" folder.
  • How to import a schematic file :

    1. Enter in your world (with WorldEdit enabled).
    2. Grant yourself all privileges : /grant singleplayer all¹.
    3. Move a schematic file into the “worlds/<my_world>/schems” folder.
    4. Press F5 to display the coordinates.
    5. Select a position with : //pos1
    6. Import your schematic file from the chosen position with : //mtschemplace <name of your schematic file>
¹ (name “singleplayer” by default)
Last edited by jp on Fri May 29, 2015 11:56, edited 7 times in total.

User avatar
minermoder27
Member
Posts: 138
Joined: Wed Nov 20, 2013 23:24
GitHub: ZNixian
In-game: minermoder27

Re: [Tutorial] How do I create / import schem file ?

by minermoder27 » Post

You only have to type the grant command the first time.
Maybe you should say that?

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Tutorial] How do I create / import schem file ?

by jp » Post

minermoder27 wrote:You only have to type the grant command the first time.
Maybe you should say that?
If these are different worlds, no. This tutorial explain in this case. Export / import a schem is often in this case.

User avatar
swordpaint12
Member
Posts: 191
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]
Location: Foobass, isle of Atlantis, castle of Bardvendelle

Re: [Tutorial] Create and import a schematic file (.mts)

by swordpaint12 » Post

Unless you've already been on the second world before.
God's not dead; remember that!
Yay for MT! No MC here!
I am a human. I'm younger than 100 years old.
I've been playing Minetest since December 2014.

I'm amazed that I haven't been on here in so long! My latest minetest accomplishment was mining by hand (well, as close as you can get in a computer game) a circle 30 blocks in diameter. It took forever but it's pretty cool.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Tutorial] Create and import a schematic file (.mts)

by Sokomine » Post

You can also use my handle_schematics mod for saving and importing schematics. Just install it and type /giveme handle_schematics:build 99 and put the chest somewhere.
A list of my mods can be found here.

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by hajo » Post

jp wrote: * How to create a schematic file :
* How to import a schematic file :
Maybe you should add instructions on how to undo the import,
e.g. when the placement was wrong, or it damaged something.

User avatar
Onyx
Member
Posts: 132
Joined: Fri Sep 25, 2015 08:36
In-game: Onyx
Location: On your planet

Re: [Tutorial] Create and import a schematic file (.mts)

by Onyx » Post

Hi,

To avoid accidents of import, I got used to test above ground (in altitude) beforehand.
This will mark import sense, once that's done, I remove the import test and I can proceed to import at ground safely.
"One chunk, two chunks, three chunks..."

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Tutorial] Create and import a schematic file (.mts)

by Sokomine » Post

hajo wrote: Maybe you should add instructions on how to undo the import,
e.g. when the placement was wrong, or it damaged something.
That's where the build chest from my handle_schematics mod comes in really handy. Not only does it rotate the building the way you expect it (i.e. you'll always face the same side and don't have to manually rotate it) - it will also create a backup of the landscape so that placement of schematics can be undone.
A list of my mods can be found here.

Brian Gaucher
Member
Posts: 77
Joined: Wed Jan 10, 2018 01:56
GitHub: BrianGaucher
In-game: Camasia

Re: [Tutorial] Create and import a schematic file (.mts)

by Brian Gaucher » Post

Another simple fool-proof way to avoid ruining your world with a wrong schematic import. Simply quit the game, make a backup of the world, try it in the backup. Anytime I need to do schematics, or world-edit files, I always make a simple backup first. Just 2 minutes to make it, and it can save so much trouble.
Current projects: Making a CTF map, Learning C++, Learning Programmer's Dvorak

User avatar
Wuzzy
Member
Posts: 4780
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Schematic Editor

by Wuzzy » Post

There is also a decicated mod to edit and save schematics which is a bit simpler to use than WorldEdit (I hope):
Schematic Editor

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Tutorial] Create and import a schematic file (.mts)

by Gael de Sailly » Post

If anyone is interested, I have a small Python library to load/save/edit schematics: viewtopic.php?f=14&t=21444.
Just realize how bored we would be if the world was perfect.

Segmented Worm
Member
Posts: 21
Joined: Mon Oct 07, 2019 23:12

Re: [Tutorial] Create and import a schematic file (.mts)

by Segmented Worm » Post

Whenever I attempt to do this it says: "failed to place Minetest schematic." Could there possibly be a video on how to do this?

bzt
Member
Posts: 217
Joined: Tue Sep 24, 2019 14:26

Re: [Tutorial] Create and import a schematic file (.mts)

by bzt » Post

You could try MTSEdit's mod. It is a very minimal mod to load and save MTS files. It isn't a swiss army knife (you can't edit the schems with it like with Schematic Editor or with WorldEdit), it's rather the simplest tool possible to load structures. Dependency-free, works with all games.

How to use:

Code: Select all

/mtsedit list
will list the mts files in your ~/.minetest/worlds/(current)/schems folder

Code: Select all

/mtsedit load (mts file)
Will load the schematic and will give you the "MTSEdit Magic Placement Wand Tool" (TM)

Now using the wand right click on a node where you want to build the structure. Simple as that. Repeat this as many times you like, it will build the same structure until you issue another "load" command.

Cheers,
bzt

User avatar
Gabby_123
New member
Posts: 3
Joined: Sun May 16, 2021 06:38
In-game: Gabby_321

Re: [Tutorial] Create and import a schematic file (.mts)

by Gabby_123 » Post

Do you use .mts file to make, like sapllings to trees?
I like coding and thats is what I like the most, even though im new to it.

User avatar
ghobson
New member
Posts: 7
Joined: Mon Aug 08, 2022 14:48
In-game: ghobson

Re: [Tutorial] Create and import a schematic file (.mts)

by ghobson » Post

Hi there,

Does your tool preserve the sign text when importing from NBT format ( minecraft 1.16.x worldedit schem file )
I am able to see the signs but they contain no text ?

I am trying to copy over a build with a lot of signs , and so far none of the existing tools seem to be able to preserve the tile_entities stored in chunks. mc2mt doesn't do it, and mcimport doesnt handle anything beyond mc 1.12 .

Any help pointers are appreciated.
Regards,
Gary

edit: I wrote my own solution in the meantime. thanks.

W3RQ01
Member
Posts: 157
Joined: Sat Nov 28, 2020 06:33
GitHub: W3RQ01
In-game: Dario23 or W3RQ01
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by W3RQ01 » Post

How can i make schematics generate automatically in the world?
OneUnitedPower

Futuray-pgm
Member
Posts: 14
Joined: Wed Mar 29, 2023 07:08
GitHub: Futuray-pgm
IRC: Futuray-pgm
In-game: Futuray
Location: France
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by Futuray-pgm » Post

Hey!
I know that this topic is old but I've a question about mts files.
Does they exist a good tool to see it at source (like a description of the content of the file)?
Thank 🙂
Futuray

User avatar
Blockhead
Member
Posts: 1602
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by Blockhead » Post

Futuray-pgm wrote:
Sun Jul 30, 2023 14:05
Hey!
I know that this topic is old but I've a question about mts files.
Does they exist a good tool to see it at source (like a description of the content of the file)?
Thank 🙂
Wuzzy already mentioned his Schematic Editor mod. I would say that is the best tool for the job. Make a copy of any mts file into minetest/worlds/<any_world_name>/schems and you should be able to load it by its name. Then you can view it in-game. The only information I don't think you can view from there is force_place and placement probability - though you can set them.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

Futuray-pgm
Member
Posts: 14
Joined: Wed Mar 29, 2023 07:08
GitHub: Futuray-pgm
IRC: Futuray-pgm
In-game: Futuray
Location: France
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by Futuray-pgm » Post

Thanks, it work's good! 👌
Futuray

User avatar
Wuzzy
Member
Posts: 4780
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Tutorial] Create and import a schematic file (.mts)

by Wuzzy » Post

I can't believe this thread is still sticky and directs people to a vastly inferior tool.
I don't use or recommend WorldEdit to create or import schematic files because I found this tool to be vastly inferior to Schematic Editor.

WorldEdit is unable to set the Y layer probabilities. There is also no convenient method to set "void" nodes (nodes that the schematic won't modify when placed). And the way how you set the probabiliites of individual nodes by having to enter a number for every single node is just horrible, horrible UX. Force-placing nodes also does not work.

Don't get me wrong, WorldEdit is useful for editing worlds, but its schematic handling sucks. As long you only need a quick and dirty schematic exporter, it's "good enough", I guess, but even for trees it already fails because it will export the air with 100% probability, meaning if you place the tree again, it will also place the air.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest