Skip to content
NP Editor Docs
This is not the latest version — view the latest

Paint and materials

This page covers three things.

  • Custom blocks from textures: make a new block np:<id> from a texture chosen in the Texture tab or from your own PNG, together with variant blocks such as slabs, stairs and walls.
  • Materials (LabPBR): apply material values such as smoothness, metal, emission and normals to custom block textures. These are extra images for people who use shaders (Iris · OptiFine); the game plays fine without shaders.
  • Paint: paint the textures of custom block and prop models directly in 3D in the central Paint tab. It has layers, selection and symmetry.
  1. Click Window > Texture. The Texture tab opens in the bottom area and shows the textures of the target version jar as a grid.

    The Window menu and the Texture tab in the bottom area

  2. Type mossy_stone in the search field and click “mossy_stone_bricks”. The right side shows a large view and the list of blocks that use this texture, and Create custom block becomes enabled.

    The search field · chosen texture and the Create custom block button

  3. Click Create custom block. The “Create a custom block from textures” window opens, with top · side (4 faces) · bottom all filled with the chosen texture (vanilla).

    The Create a custom block from textures window

  4. Use “PNG…” in the Side (4 faces) row to add your own image (16 · 32 · 64px), type White marble wall in Name and mossy_wall_stone in the “id (np:)” field, then check Also create variants. The preview on the right updates right away.

    Side face PNG · Name · id fields and Also create variants

  5. Click Create. The block and its variants are added to the project registry, and the status bar shows “Texture block: Created: np:mossy_wall_stone (White marble wall, light 0, Solid) + variants slab·stairs·wall”. The button changes to “Update (np:mossy_wall_stone)”.

    The Update button and the status line showing Ready

    Known issue in 0.10.2: right after you create the block, the status line under the button goes back to “Ready”. The result appears only in the status bar notification.

  1. In the same window, click Material…. The “Texture block material (LabPBR)” window opens. Texture slot is the face image to apply the material to (vanilla faces are excluded).

    The Texture block material window

    Known issue in 0.10.2: the face names in Texture slot are shown in untranslated Korean, for example “1: 북·남·동·서” (north · south · east · west).

  2. Select “Stone” in Preset. The value sliders below change to the stone values.

    The Preset field

  3. Click Auto-generate, then click Save material. Auto-generate estimates height · normal · emission candidates · smoothness · crevice AO from brightness. The material is saved as new versions of the _n · _s images next to the texture, and with Same material for variants (on by default) it is saved for the variant blocks too.

    The Auto-generate · Save material buttons and the sphere preview

  1. Right-click a block in the Content Browser and select Paint. The central area switches to the Paint tab: the 3D model on the left, the 2D texture in the middle and the tool panel on the right.

    The 3D model · 2D texture · tool panel of the Paint tab

  2. Press B to choose Brush, set Size to 3 and the “Hex” field to 1E88E5, then drag over the 3D model. The 2D texture is painted at the same time.

    The Hex field and the model painted blue

  3. Click Save layers. The layers are saved as a new version in the project’s assets/<id>/layers/. The original model file is not changed.

    The Save layers button in the view · save section

  4. Press Ctrl+Tab to go back to the world tab. The painted result also shows on the blocks and props placed in the world.

  • You cannot make materials for faces made from vanilla textures. Add your own image with “PNG…” only to the faces that need a material: the other faces stay vanilla and only those faces get the material (demo: PNG on side (4 faces) only, 2 entries in Texture slot).
  • If you need variants, turn on Also create variants when you first create the block. With Same material for variants, the material is also saved for the variants in one go (demo: slab · stairs · wall).
  • In the Paint tab, press Ctrl+Tab to switch to and from the world tab (same as Tools > Switch Paint tab / World tab).
  • Typing a value in the “Hex” field is faster and more precise than the color picker.
Field · buttonDescription
Face mode“Top · side · bottom” or “6 faces separately”
Selected · “PNG…” · To all facesAdd the texture chosen in the Texture tab · import a PNG · put the chosen texture on all 6 faces. Vanilla texture faces do not save an image; they only point to it by id.
Name · “id (np:)”Name shown in the Content Browser · id after np: (lowercase letters · digits · _).
Light0 ~ 15. 0 = no light, 15 = as bright as glowstone.
CollisionWhen on, the whole block is solid (doors: the lower block only).
Also create variantsAlso registers Slabs (<id>_slab) · Stairs (_stairs) · Wall (_wall) · Fence (_fence) · Fence gate (_fence_gate) · Door (_door) with the same texture. The default is slab · stairs · wall. If any variant id already exists, nothing is created.
Preview shape listPreviews how the variants will look. It does not affect the registry.
Create / UpdateCreate the first time, Update after that. Updating also updates the variants as new versions.

A PNG that is a tall strip is an animation. An animation row appears in the window, where you set ticks per frame (20 ticks = 1 second) · Interpolate · order (e.g. 0 1 2:5 3, frame:ticks). If there is a .png.mcmeta next to the PNG, the values are filled in automatically.

FieldDescription
Texture slot · Same material for variantsFace image to apply the material to · whether to save to the same slot of the variant blocks too.
Preset“Stone” · “Wood” · “Metal (iron)” · “Metal (gold)” · “Metal (copper)” · “Glass” · “Cloth” · “Glowstone” · “Foliage” · “Plain (no material)”
Value slidersSmoothness · F0 (non-metal reflectance) · Metal · Emission · Porosity (wet in rain) · SSS (subsurface scattering) · “AO” · Height (uniform) · Normal strength · POM depth
Metal type · Normal blur · Flip normal Y · Wrap edgesMetal type · shape of the normal map · whether to compute with edges wrapped like a block.
Dark = high · Emission threshold · Auto-generateHeight direction for auto-generate · brightness threshold counted as emission · run the estimate.
Channel · Values · Channel paintPaint a single channel by hand. The brightness (gray) of the color is used as the value.
Sun direction · Sun height · No shaderLight direction of the sphere preview · comparison view without the material.
Save materialSaves new versions of _n · _s. Nothing is overwritten.
ToolShortcutAction
PencilPPaints pixel by pixel.
BrushBRound brush with Hardness · Opacity.
EraserEErases the current layer.
FillGFills at once by Mode (Entire UV island · Contiguous same color (within island) · Same color across texture).
EyedropperIPicks a painted color. Alt+click in the 3D view does the same.
Rectangle select · LassoM · LSelects the area to paint in the 2D view. Clicking in the 3D view selects the UV island of that face. Shift = add, Alt = subtract.
MoveVMoves the selected area.
FieldDescription
Size · Hardness · Opacity1 ~ 32px · edge hardness · coverage.
Symmetry > AxisPaints with X · Y · Z symmetry relative to the model.
Clip to face · Sphere brush (O)Keeps paint from spreading outside the face · paints within a distance around the hit point in 3D, continuing across UV seams.
Tolerance · Sample mergedColor difference counted as the same color for Fill · whether Fill and Eyedropper look at the merged image.
“Hex” · Recent colors · PaletteColor value input · recently used colors · saved colors.
Texture · Stretch · Canvas onlyTexture to paint and resizing it. Stretch scales the image; Canvas only extends or crops from the top-left.
LayersAdd · Duplicate · Delete · Up · Down · Merge down · Flatten all, plus visibility and Opacity per layer.
Pixel art · Save layers · Export PNGGrid view without filtering · save a new version to assets/<id>/layers/ · export the merged image as a new _vN file.
ShortcutAction
Ctrl+TabPaint tab ↔ world tab
P · B · E · G · I · M · L · VPaint tools
OToggle the sphere brush
Ctrl+Z · Ctrl+YPaint undo · redo (separate from the world history)
Ctrl+SSave layers (and materials) + save the world
  • Double-clicking a texture in the Texture tab picks the block that uses it as the brush (same as Use as brush).
  • Vanilla textures are only read for display and are not copied into the project folder.
  • Custom block files are saved in <project>/assets/blocks/<id>/.
  • The console commands texblock list · texblock new [texture id] · texblock edit <id> · texblock material <id> open the same windows.