MCprep Addon
MCprep is an addon dedicated to speeding up the workflow of Minecraft animators in Blender by automatically fixing up materials and providing other tools such as mob spawing, effects spawning, etc.
Installing MCprep
Click the link below and download the .zip file (re-zip if auto-unzipped into a folder necessary), install into blender (2.80 through 4.0 supported)
Note: To use MCprep with assets, you must have a valid, legal copy of Minecraft to comply with Mojang's terms of service. No support is provided for anyone using MCprep without a valid Minecraft license Versions of MCprep without the assets are not bound to this requirement
By downloading and installing, you agree to the following privacy policy. Watch this video on how to install if running into troubles.
It should remain a zip folder. In blender, go to preferences, then the addons tab, and at the bottom of the window install from file. Select the .zip file. NOTE: Blender may not automatically enable the addon. If the MCprep addon is not already shown in the window after installing, search for it at left and then ensure the check box is enabled. Save user preferences to keep it enabled next time blender opens.
Again, please download from the link above or the releases page, not by clicking download zip button above.
If you like the addon, please consider donating for the continued quality development! Share this addon so others can benefit from it! Or help by taking this quick survey!
Learn how to use MCprep
Short, 1-minute videos showcasing how to use Blender+MCprep features
Additional Playlist of MCprep videos/demos
About MCprep
This is a blender python addon to improve and automate many aspects of creating Minecraft renders and animations. It can help you import world's exported from Minecraft, set up better materials, importing mobs and items, and set up proxy characters for animation, and even includes default animations for common blocks/mobs like tall grass, torches, and mobs like the bat or blaze. This addon assumes you have already exported a Minecraft world to an OBJ file. While the script should work for any world importer, it has been tested and developed based on the jmc2obj and Mineways tools for exporting Minecraft worlds to obj files.
This addon is made to work with an asset library directory, from which models and groups are linked or imported from. This library blend file is included, but does not have all types of blocks generated yet. This will be improved in the future.
This addon is compatible officially down to 2.72 official builds, and up to blender 3.00. Not all features are available in all versions, try to use the latest available blender. Run into any problems? Submit bugs/issues here.
Feature list
| World Imports | Description |
|---|---|
| Prep Materials | Improves materials from world imports, and allows one-click switching from cycles & blender internal materials. Note, this does not create materials, only modifies existing ones. |
| Swap Texture Pack | Initial support only for jmc2obj world exports. Using a valid Minecraft resource pack, you can now completely replace the textures of the imported world with another pack - you can even changed individual blocks at a time. |
| Animate textures | Initial support only for jmc2obj world exports. With a valid (or the MCprep default) resource pack selected, you can replace still images with their animated versions. Works great to put motion back into lava, water, portals and other blocks for any kind of resource pack. |
| Combine materials/images | Consolidates duplicate materials and images down to the smallest number of unique datablocks. Note: combine images is only available on blender 2.78+ |
| Improve UI | A shortcut to quickly improve viewport settings for Minecraft sets. Sets textured solid mode & turns off mipmaps |
| Mesh Swap | Allows you to replace simple models from 3D exported worlds with more intricate 3D models |
| Scale UV Faces | Allows you to scale all UV faces of a mesh about their origin. Must be in edit mode of a mesh. |
| Select Alpha Faces | Allows you to select or delete mesh faces that are transparent in the applied image texture. Must be in edit mode of a mesh. |
| Sync Materials | Search for the materials.blend file within the active texture pack, and for any matching materials found in this file, import and overwrite the current file's version of that same material. Found under the World Exporter > Advanced section or in prep materials popup. |
| World Tools | Description |
|---|---|
| Create MC World | Operator which allows user to create either a static or dynamic sky. Options exist to also add clouds, remove existing sun lamps, and define how the Sun/Moon is imported (either as a shader, mesh, or neither). If a dynamic sky is created, a time-control slider will also be displayed below. |
| Prep World | This operator makes several updates to either Blender Internal, Cycles, or Eevee scenes that are optimal and in most cases will notably improve render times (particularly for cycles) and increase overall aesthetic. |
| Skin Swapper | Description |
|---|---|
| Apply [skin] | Applies the currently list-selected skin to the actively selected rigs. |
| Skin from file | Loads in a skin texture from file and applies to the actively selected rigs. Note: Also gets added to skin list |
| Skin from username | Downloads a skin based on a play name and applies to the actively selected rigs. Note: Also gets added to skin list |
| + sign | Install a custom skin into the list without applying to a rig |
Note: only 1.8 skin layouts are supported at this time, in the future an auto-conversion feature will likely be implemented
| Spawner | Description |
|---|---|
| Spawn: [rig] | Based on the actively selected rig, from an according spawning rig category, add the mob/character into the scene. These are fully rigged characters. Using the plus sign, you can even install your own rigs (rig must be part of a group). For quicker mapping, you can even set an entire folder and it will auto-create subcategories of rigs based on folders. |
| Spawn: meshswap block | Place a block from the meshswap file into the 3D scene. Currently is limited to only having meshswap groups (e.g. torches and fire) and not objects (e.g. not supporting grass and flowers yet). |
| Spawn: items | Convert any image icon into a 3D mesh, with faces per each pixel and transparent faces already removed. Defaults to loading Minecraft items. |
| Material Library | Description |
|---|---|
| Load material | Generate the selected material and apply it to the selected material slot of the active object. Follows convention of the active resource pack and general Prep Materials operator. |
Spawner mobs included in the current version of MCprep
CREDIT
While this addon is released as open source software under the GNU GPL license, the assets are being released as Creative Commons Attributions, CC-BY. If you use MeshSwap, please credit the creators by linking to this page wherever your project may appear: http://github.com/TheDuckCow/MCprep. In addition, different parts of MCprep are under different GPL compatible licenses (see LICENSE-3RD-PARTY.txt).
Meshswap Block models developed by Patrick W. Crawford, SilverC16, and Nils Söderman (rymdnisse).
| Player Rigs | Creator |
|---|---|
| Fancy Feet Player | Patrick W. Crawford (Rig link) |
| Fancy Feet Slim Player | Modified by Jeremy Putnam (MCprep exclusive) |
| Fancy Feet Armor Player | Modified by zNightlord (MCprep exclusive) |
| Simple Player (modified) | BoxScape Studios (Pack link) |
| Simple Slim Player (modified) | BoxScape Studios + TheDuckCow (MCprep exclusive) |
| Shapekey Player | Derived from BoxScape Studios, shapekeys and animation by Patrick W. Crawford (MCprep exclusive) |
| Story Mode Rig | Trainguy9512 (No direct link yet) |
| VMcomix Steve (rounded) | VMcomix (Rig link) |
| Passive Rigs | Creator |
|---|---|
| Allay | zNightlord |
| Axolotl | Breadcrumb |
| Bat | Patrick W. Crawford (MCprep exclusive) |
| Cat | TRPHB Animation |
| Cod fish | BoxScape Studios (Pack link) |
| Chicken | Trainguy9512 (No direct link yet) |
| Cow | Nils Söderman (rymdnisse) (Rig link) |
| Dolphin | BoxScape Studios (Pack link) |
| Fox | BoxScape Studios (Pack link) |
| Frog | zNightlord |
| Glow squid | TRPHB Animation |
| Goat | TRPHB Animation |
| Mooshroom (red/brown) | BoxScape Studios (Pack link) |
| Parrot | BoxScape Studios (Pack link) |
| Pig | Trainguy9512 (No direct link yet) |
| Panda | BoxScape Studios (Pack link) |
| Pufferfish | BoxScape Studios (Pack link) |
| Rabbit | HissingCreeper (No direct link yet) |
| Salmon | BoxScape Studios (Pack link) |
| Sheep | HissingCreeper (No direct link yet) |
| Squid | Nils Söderman (rymdnisse) (Rig link) |
| Tropical Fish | BoxScape Studios (Pack link) |
| Cod fish | BoxScape Studios (Pack link) |
| Turtle | BoxScape Studios (Pack link) |
| Friendly/Utility Rigs | Creator |
|---|---|
| Horse | Patrick W. Crawford (Rig link) |
| Iron Golem | Trainguy9512 (Rig link) |
| Llama | BoxScape Studios (Pack link) |
| Ocelot | HissingCreeper (No direct link yet) |
| Simple Villager (Dynamic skin) | Th3pooka |
| Snow Golem | Nils Söderman (rymdnisse) (Rig link) |
| Villager | BoxScape Studios (Pack link) |
| Wandering Trader | BoxScape Studios (Pack link) |
| Wolf | Trainguy9512 (Rig link, outdated) |
| Entities | Creator |
|---|---|
| Arrow | TRPHB Animation |
| Boat | TRPHB Animation |
| Bow | TRPHB Animation |
| Crossbow | TRPHB Animation |
| Minecart | BoxScape Studios (Pack link) |
| Shield | Ageofherosmedia |
| Spyglass | Banana-Blu |
| Effects | Creator |
|---|---|
| Geo node effects | Th3pooka |
| TNT effects (both) | TheDuckCow |
| Rain + Snow particles | TheDuckCow |
| Meshswap Blocks | Creator |
|---|---|
| Campfire | BoxScape Studios (Pack link) |
| All others | TheDuckCow |
If you use any of these rigs in your animation, give credit to the according creator or by directly referring back to this readme file which contains all the credits. Models have been slightly modified to function best and consistently with the MCprep addon.
Thank you to all the contributors to this project! It will continue to grow and cover more assets in the near future.
How to use this addon
Prep materials:
- Purpose: To automatically setup better, crisp materials for rendering Minecraft, low resolution textures. It works for both Blender internal as well as cycles, and more recently the cycles Principled shader. It will even selectively turn 'shiny' materials into reflecting materials, as well as 'bright' materials into emitting materials. Currently, the list of these materials is hard-coded into a json file, with names matching the material names for both jmc2obj and Mineways. You can modify this file for your own needs, but largely should be fine with the default, and will be updated (overwritten) as new updates are added.
- Step 1: Export your world to an OBJ or other general 3D formats. I use jmc2obj, but Mineways or other such formats should be fine as well.
- Step 2: Import the world into blender (e.g. via file > import > obj, or whatever according format)
- Step 3: Select all, or select the objects that have the material you want to fix. Materials can be all separate objects or the same object, it does not matter.
- Step 4: Under the MCprep panel, press "Prep Materials".
- Step 5: Change settings (optional, defaults are good!) and press ok - and wait a moment while the addon does the rest! Settings
Settings popup for prep materials.
Setting options:
- Use principled shader: Cycles only and 2.79 and up, use the more physically accurate Principled shader node. If disabled, it will default back to previous material setups. The principled shader is, however, preferred.
- Use reflections: Add extra settings to make material more reflective. For Blender Internal, enable reflections. For cycles materials, increase reflection alpha so that even fully transparent sections of image (e.g. in glass) will show some reflections.
- Animate textures: See the section below, this performs the same operation after prepping materials, with the default behavior of "save to next to current source image", which is likely in the texture pack itself
- Find missing images: Look to replace any missing images with their counterparts in the active resource pack, which by default is vanilla Minecraft textures as ship with MCprep
- Use extra maps: If extra passes like normal and specular maps are available with the selected resource pack, load them into the material (note: the default MCprep texture pack will not have these passes)
- Improve UI: Does not impact existing materials, but just sets the viewport to a nice minimum default to see the result of prepping materials - but always checked rendered mode to see how they truly look in the end
- Combine materials: This will go through the entire blend file and attempt to merge together same-named materials (e.g. grass and grass.001 and grass.002 will all be consolidated down into one shared material, though something like grass-edit would be left alone)
- Sync materials: Look for any matching material names (after casting to Minecraft canonical names) in the materials.blend file (if presnet) under the active resource pack. If found, replace this local material with that from the materials.blend file.
Swap texture pack
- Purpose: Replace the images in a blend file with those from another Minecraft resource pack. Operates on selected objects and their respective materials, so you can mix and match different resource packs on a per-material basis this way.
- Step 1: Select all materials you wish to swap texture packs for
- Step 2: Prep materials on these objects if you haven't already (prepping a second time will do no harm); not doing this could have mixed results.
- Step 3: Press on the swap texture pack button in the 3D view > MCprep tab > World Imports panel
- Step 4: In this popup, the folder will default to the MCprep resource pack (ie default Vanilla Minecraft); navigate to an extracted zip folder of a valid resource pack. You can select any sub-folder, but to be safe, select the folder level such that the the "pack.png" and "assets" sub-folder are visible as rows.
- Step 5: Decide if you want to enable/disable pulling in extra passes (e.g. normal and specular, if they exist) and whether to animate textures upon swapping. Both of these tickboxes, on by default, are in the left-hand sidebar.
Using Mineways? Use the following world export settings to use this feature:
Note: Use tiles for exporting to create individual files per block instead of one combined texture file. This is what allows swap texturepack and animate textures to work.
Meshswap:
- Purpose: To automatically swap in extra assets such as 3D grass, light emitting torches and lamps, and so forth. Note that all the objects to be swapped in are in the blend file part of this download. Also note that swapping is done based on the name of the material. If you are unsure why your object is not swapping in, check the material name matches the counterpart object/material in the meshSwap.blend file. Note it can search for both append-able objects as well as groups, containing particles and so forth. Modifiers on the mesh in the original file will be brought over, so notice for example how the tall grass when replaced will be "pre-simulated" as it has displacement modifiers setup already with animation.
- Step 0: By default this is already done for you; set the MeshSwap blend path to the "mcprep_meshSwap.blend" or custom blend file, and make sure the world export has blocks of size 1m (100cm).
- Step 1: Select the objects that you wish to be meshSwapped. Swappable objects are determined automatically based on the contents of the blend file selected above. If an object is not found or swappable, it will just be skipped - no harm done by "over selecting" (so select all objects to make sure everything that can be swapped gets swapped!)
- Step 2: Press Mesh Swap (there will be a small delay, meshswapping large areas such as fields of grass may take awhile).
Setup your Mineways worlds in this fashion for best results.
Setup your jmc2obj worlds in this fashion for best results.
Note: You can now also directly add meshswap blocks into the scene from the shift-A menu or the spawner:meshswap panel.
To add your own objects to meshswap (or groupswap):
- Step 1: Check your imported world object and see the name of the material for the object you want to setup. You might think it is "glass plane", but if the importer names the material "glass_plane", you need to note this name down for step 3.
- Step 2: Model you object in the mcprep_meshSwap.blend file, or append it.
- Step 3: Rename your object to exactly match the previously noted material name. If you want to have a group swappable, then name the group to match the name above.
- So the MATERIAL name found in the 3D imported world should match the OBJECT name of the model in the meshswap file to work
- Note if both a group and an object have matching names, the script will prefer the group and meshswap that over the object.
- Step 4: Add necessary properties to special blocks as needed. See the meshSwap file included for examples, but the properties to add are:
- "variance": Objects with this property when meshswapped will have some x/y variance added. If the property is set to 1, it will also have (only negative) z variance. If it is set to 0, it will only have xy variance. For instance, tall_grass is given a value of 1 so some grass is shorter than others, but flowers are given a value of 0 so they always have the same height but still have some variance in placement.
- "edgeFloat": objects like vines, ladders, and lillypads which float off the edge of other blocks.
- "torchlike": objects that can have rotations like a torch on a wall. Objects with this property will be determined to be either on top of a block or placed on the side of another block according to the mesh.
- Note: there is no UI for adding properties to a group, so if you want to add a property to a group (say a torch which has a pre-animated light and particle system, as the included blend file does) you must go into the python console and add the property like so:
bpy.data.groups['groupName']['propertyName'] = 1(the value only matters for the variance property) - Example:
bpy.data.groups['torch']['torchlike'] = 1will add the torchlike property to the torch group, allowing it to have correct rotations when meshSwapped in.