Skip to content

Make texture using full or half transparent pixels

Introduction

Minecraft Dungeons is known to use textures with invisible or half-visible pixels. This can be an issue when your software do not allow you to save pixels with their alpha value set to 0. There are a bunch of handy scripts to help you making these tricky textures!

Sources

All scripts are available here. If you find any bugs, please post a new issue on GitHub.

Requirements

  • Pillow is required to use those programs!
sh
 python3 -m pip install --upgrade pip
 python3 -m pip install --upgrade Pillow

Follow this tutorial if you don't know how to use inline commands: YouTube Link

Scripts

  • remove_alpha.py

    remove alpha
    From Alpha to Opaque.

    Set all pixels opaque.

    • Use BASE_remove_alpha.png as base.
    • Return RESULT_remove_alpha.png.

  • get_alpha.py

    get alpha
    From Opaque to Alpha.

    Set all pixels transparent.

    • Use BASE_get_alpha.png as base.
    • Return RESULT_get_alpha.png.

  • merge_alpha_layers.py

    merge alpha layers
    Merge both types easily.

    With this one, you have to set "masks", one with opaque pixels, one with transparent pixels.

    • Use BASE_merge_alpha_layer0.png as base for solid pixels.
    • Use BASE_merge_alpha_layer1.png as base for transparent pixels.
    • Return RESULT_merge_alpha.png.

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT
This website was made using the VitePress framework. View the source here!