Page 1 of 1

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

Posted: Sat May 31, 2014 09:43
by jp
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)

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

Posted: Fri Jun 20, 2014 03:51
by minermoder27
You only have to type the grant command the first time.
Maybe you should say that?

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

Posted: Fri Jun 20, 2014 06:01
by jp
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.

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

Posted: Tue Oct 27, 2015 21:44
by swordpaint12
Unless you've already been on the second world before.

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

Posted: Sun Nov 01, 2015 18:03
by Sokomine
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.

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

Posted: Mon Oct 17, 2016 13:19
by hajo
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.

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

Posted: Mon Oct 17, 2016 17:28
by Onyx
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.

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

Posted: Mon Nov 28, 2016 23:58
by Sokomine
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.

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

Posted: Fri Jan 25, 2019 03:16
by Brian Gaucher
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.

Schematic Editor

Posted: Tue Jan 29, 2019 23:15
by Wuzzy
There is also a decicated mod to edit and save schematics which is a bit simpler to use than WorldEdit (I hope):
Schematic Editor

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

Posted: Wed Jan 30, 2019 18:15
by Gael de Sailly
If anyone is interested, I have a small Python library to load/save/edit schematics: viewtopic.php?f=14&t=21444.

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

Posted: Tue Feb 18, 2020 02:04
by Segmented Worm
Whenever I attempt to do this it says: "failed to place Minetest schematic." Could there possibly be a video on how to do this?

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

Posted: Tue Oct 13, 2020 16:45
by bzt
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

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

Posted: Thu Sep 16, 2021 06:35
by Gabby_123
Do you use .mts file to make, like sapllings to trees?

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

Posted: Mon Aug 08, 2022 14:55
by ghobson
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.

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

Posted: Sun Aug 14, 2022 17:29
by W3RQ01
How can i make schematics generate automatically in the world?

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

Posted: Sun Jul 30, 2023 14:05
by Futuray-pgm
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 🙂

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

Posted: Sun Jul 30, 2023 15:27
by Blockhead
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.

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

Posted: Sun Jul 30, 2023 17:02
by Futuray-pgm
Thanks, it work's good! 👌

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

Posted: Sat Dec 23, 2023 19:01
by Wuzzy
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.