Modular Castle Kit - Lego compatible V2

A kit to assemble Lego compatible modules into castles and strongholds.


Creative Commons Attribution Noncommercial Share Alike

Commercial use is not allowed, you must attribute the creator, you may remix this work and the remixed work should be made available under this license.

Learn more or download attribution tags


This kit is based on a prior version, originally published on thingiverse


The Modular Castle Kit - Lego Compatible is a kit to assemble Lego compatible modules into castles and strongholds. You can print just one, several or all components and then play at castle construction, mixing in your own Lego. You can hook together modules like in the picture used to advertise this thing (use simple Lego bricks as connectors) or you can create much wilder "mix with any Lego" structures or you could create a village with different buildings. Some modules are designed to be stacked on top of each other.
There are three types of components:

(1) modules with an easy to print base plate,
(2) modules with a Lego-compatible base plate (stackable)
(3 lighter stackable versions (better vertical fit, faster print, but require a solid 1st layer)

I printed most, but not all of the modules. However, I then also made some minor changes to most of the printed ones and there still may be a few minor glitches. Please examine a thing before you print it.

Slicer and printer settings

Tune your settings with the included standard 4x2 calibration brick. Make sure that the first layer sticks well, in particular when printing Lego-compatible bases (nibbles underneath). A few things to to:

  • Make your first layer 125-150% or something that is equivalent. Most platforms are uneven (0.05mm waves do have an impact) and you will have to compensate for that.

  • Add glue to the platform (e.g. Pritt extra strong) or hairspray

  • Add 10 degs or more to standard printing temperature, e.g. PLA at 205

  • Move the print head closer to the platform, e.g. for my self-calibrating printer I add this to the end of the start code: G1 Z-.05 F3000 or sometimes G1 Z-.1 F3000. On a non calibrating printer, place two sheets of paper on the bed and make sure that the print head can move the upper sheet in every position, but without scratching

  • You could use a raft for the modules that have 2x2 Lego feet, but removing these is a pain...


  • Go very slowly for the first layer (about 15% of your normal speed).

  • Go slowly for the second layer (if your slicer allows, e.g. Sli3r does not)

  • Medium speed for the rest, e.g. 50mm/s or faster

Shells and layers:

  • 3 shells

  • 4 top layers (3 also can do)

  • 3 or 4 bottom layers.

One tower takes about 6 hours to print with these settings. I do not recommend printing with lower resolution because wait will be longer. If you print modules with a base plate, you can easily print 4 towers at the same time, in about a day.

Fit with real Lego (TM) and tuning

Fit is about right for printing with 0.25 resolution and medium-fast quality printing. The blocks are maybe a bit too tight for fit with Lego. In that case, heat the piece with a heat gun (or maybe a strong hair dryer), then gently press onto Lego (TM). If the fit is too loose, change the slicer settings (or much better, generate your own version with OpenSCAD, see below).

OpenSCAD code / tuning / creating

This kit was made with an OpenSCAD library called Doblo Factory. I created a first version in 2012 that was refactored by Daniel M. Taub (2012/13). Since then I made a few minor changes. The version you should use (it includes this castle kit) is available as a zip file:

Here, I only included the scad file that generates these blocks. It provides a list of the models. A typical tower includes mostly about 20-30 function calls, generating Lego block elements plus some openScad "hand code".

If you download the full Doblo Factory code (, also see the URL in the scad) file, you can:

  • tune dimensions, e.g. various Lego-compatible nibble and wall thickness parameters (lib/doblo-params.scad)

  • produce DUPLO structures instead (SCALE=1;) (example_castle_kit/castle_generation.scad)

  • create your own castle modules (ext/castle-kit-2-0.scad)

Materials and methods

Any 3d Printer can print this. No support structures are needed.

Since the kit is Lego compatible, you can print any model you like. I suggest starting with a tower that sits on (non-Lego) base plate. Most objects are fairly easy to print.

The models are fairly sturdy, but since PLA is not very tough, you could consider using an expensive enhanced PLA that has the strength of ABS.



Issues are used to track todos, bugs or requests. To get started, you could create an issue.


F085329e02e894320fdf276d681afa1e?default=blank&size=40jthomas3491 added this to the Ideas collection ago
A531cdef4f7baf439ea9742a3e492ef5?default=blank&size=40Hindimied added this to the Interessante Dinge - Interesting Things collection ago
0592e92f50010d5abf34a408bf416747?default=blank&size=40redpaul6t8 added this to the Things to Make collection ago
C36b5561fa69caedb5095320572736ea?default=blank&size=40tibeg added this to the Lego collection ago
Mini liarahelmetsamplecloseup1 zps1362235bJulie added this to the Lego collection ago
A4ace712bce5f42b69d7b0945a5c4783?default=blank&size=40Tillmann Krauss added this to the Kids collection ago
73193fe6a80bb241d2ae01b4a062c6f9?default=blank&size=40cruelprinta added this to the lego collection ago
Fd85a456eb3e97d524fc56bfe2f8a792?default=blank&size=40Daniel K. Schneider published this design ago