Tag: schematics

Navigate

  • ,

    BatchSchemEdit

    Edit the block types of many schematic files at once

    Details

    Batch Schem Edit

    View and download directly on github
    With this python program, you can load many .schem files at once, replace block types in all of them and save the changes back to schem.

    How to use

    Download the .exe from latest release

    1. load .schem files
    2. select which blocks to replace. empty replacements will be ignored
      • copy paste with ctrl+c ctrl+v
      • save and load settings to/from file to be able to reuse the exact replacements
    3. run “replace blocks” to edit loaded schematics
    4. save to original or as a copy

    Additional:

    The list of suggested blocks is updated from the loaded schematics when using “replace” and saved to minecraft_blocks.txt. Restart program to get updated suggestions.

    Supported schematics

    • sponge v2 (default worldedit)

    Run from source

    Requirements

    python installed on system python dependecy manager like pip

    Start program

    pip install -r requirements.txt
    python SchemBlockReplacer.py
    

    Schematic Preview

    Schematic Preview will bulk-generate preview images for every .schem file in a folder , including subfolders with a single click. All images are saved to the scripts directory inside the search folders name. Use it to quickly get a visual overview over a schematics pack. Run the app:

    pip install -r requirements.txt
    python SchematicPreview.py
    
    1. Select a directory to search for schematics:
    2. Renders are saved into the folder name you searched in:
      img.png
    3. Additionally, a combined.png is generated which combines all schematic renders into on file:

    Additional: Unknown blocks use purple color. The block colors are based on worldpainter color information in mc-materials.csv

    Notes: The renders shown in this documentation come from:

    1. https://www.planetminecraft.com/project/small-structure-pack/
    2. https://www.planetminecraft.com/project/vanilla-house-pack-schematics-axiom-blueprints-and-world-file/
    3. https://www.planetminecraft.com/project/oreforge-trees-schems-bundle-350-1-20-4/

  • Aepplestan LootPainter

    create your own custom loot tables and inject them into schematics for automatically filled lootchests

    Details

    View and download directly on github

    LootPainter V1 (Beta)

    LootPainter is a lightweight Python tool designed to create, modify, and inject loot tables into target container blocks within Minecraft schematic files (.schem, .schematic, .nbt), primarily for use in WorldPainter. It allows users to create their own custom loot tables and inject those loot tables into schematics, as well as creates an appropriate datapack for the map folder.

    Features

    1. Loot Table Generator

    • Visual Interface: Create and modify simple loot pools without writing JSON.
    • Preset System: Includes preset tables for generic Dungeons, Shipwrecks, Villages, and more.
    • Items: Contains an incomplete list of common loot items, but you can type in any item ID manually.
    • NBT Editor: Add enchantments, names, colors, and potion effects to items.
    • Export: Generates a ready-to-use datapack folder structure.

    2. Schematic Injector

    • Batch Processing: Select a folder of .schematic .schem or .nbt files.
    • Targeting: Automatically finds containers (Chests, Barrels, Shulkers, etc.) inside the schematic.
    • Injection: Replaces the target container’s contents with your custom LootTable path string (e.g., custom:chests/dungeon_tier_1).

    Installation & Use

    For Users

    Download the latest executable from the Releases tab. No Python installation required.

    Loot tables

    • Select a preset or import an existing .json loot table.
    • From there you can type in an item ID or select one from the drop-down.
    • “W” is your weight or probability, while “Min” and “Max” refer to minimum and maximum stack size.
    • To edit an item’s nbt data, you can select it from the list, click “edit nbt”, and from there add what tags you like.
    • “Simulate Chest” opens a new window that simulates a chest so you can get a good idea for how the weight and stacks work.
    • Click “generate datapack” and keep this datapack to be placed in your map folder after exporting in WorldPainter. The “Filename” here will be needed in the “Injector” tab under “Loot Table String”

    Injector

    • Select the folder of schematics you’d like to inject
    • Create an output folder and select it, this will place new edited copies of your schematics and keep the originals untouched for backups
    • Target containers require the loot table string, which is “custom.[container]/[filename]”
    • The loot table string points to the datapack created on the first tab

    Known Issues & Warnings

    Loot Table Generator

    • Duplicate IDs: The generator currently does not prevent you from adding the same item ID twice. If you do, the last one entered will overwrite the previous ones in the final JSON.
    • Generate Chest: Sometimes item icons don’t get displayed, and show as a yellow “!”. Hovering over the items shows its details however.
    • Import .json: Currently this is a “lossy” import as LootPainter doesn’t mess with certain nbt tags that might appear in other loot tables. If you import a complex loot table containing conditions, predicates, or advanced functions, those extra features will be stripped out upon import.

    Schematic Injector

    • Supported Containers: Currently supports Chests, Barrels, Shulkers, Dispensers, Droppers, and Hoppers. Modded containers are not supported.

    Coordinator (Experimental)

    • The “Coordinator” tab is currently disabled in this beta build as it undergoes a rewrite.

    For Developers

    1. Clone the repository.
    2. Install dependencies:
      pip install nbtlib

  • Why aren’t my schematics made with WorldEdit working?

    If you’re using WorldEdit version 7.3 or higher, when saving schematics use this format://schem save [filename] sponge.2.This is because WorldEdit 7.3+ uses the latest .schem format, which WorldPainter does not yet support.

    Details

    If you’re using WorldEdit version 7.3 or higher, when saving schematics use this format:
    //schem save [filename] sponge.2.
    This is because WorldEdit 7.3+ uses the latest .schem format, which WorldPainter does not yet support.

  • Why are there no structures in my map?

    Structures only generate in WorldPainter-created areas in some versions of Minecraft. If you check the box, they will still generate in Minecraft-generated areas. If structures do not generate, you will need to add them yourself either with schematics or the `/place` command (1.19 or later). //TODO: needs verification if villages actually spawn on export pre-1.19

    Details

    Structures only generate in WorldPainter-created areas in some versions of Minecraft. If you check the box, they will still generate in Minecraft-generated areas. If structures do not generate, you will need to add them yourself either with schematics or the `/place` command (1.19 or later).

    //TODO: needs verification if villages actually spawn on export pre-1.19

  • My schematics seem to be floating in the air. How can I fix this?

    Within your custom object layer, double click your schematics and tick “extend foundation to ground”

    Details

    Within your custom object layer, double click your schematics and tick “extend foundation to ground”