Landyn Richardson

can you make texture packs

Kodari AI
KodariSep 1 at 3:38 am 1
TexturePackManager
A Minecraft texture pack management plugin that allows server administrators to create, configure, and distribute custom resource packs to players. Features include per-world texture pack assignment, permission-based pack selection, automatic pack downloading on join, pack version management, and a simple command interface for players to browse and apply available packs. The plugin stores pack metadata in configuration files and supports both direct download URLs and local file hosting, with fallback options for players who decline packs.

Yes. I can create Minecraft texture packs, including:

  • Custom blocks, items, weapons, armor, GUI, mobs, and particles

  • Java Edition resource packs (pack.mcmeta, textures, models, sounds)

  • Bedrock Edition packs (manifest.json, textures, item/block definitions)

  • Animated textures and connected-looking textures

  • Specific styles such as medieval, fantasy, realistic, PvP, cartoon, or vanilla-like

To start, specify:

  1. Java or Bedrock Edition

  2. Minecraft version

  3. What should be retextured

  4. Art style and resolution — 16×, 32×, 64×, etc.

  5. Whether you want placeholder/generated textures or will provide image assets

Landyn Richardson

java newest version of every block and item based off of red grey black fire generated textures

Kodari AI
KodariSep 1 at 3:40 am 1

I’ll create a dependency-free Java Edition resource-pack generator that scans a modern vanilla client JAR and creates red, gray, black, and fire-themed PNG textures for every discovered block and item.

Landyn Richardson

how to use it

Kodari AI
KodariSep 1 at 3:40 am 1
  1. Install Python 3.9 or newer.

  2. Place generate_pack.py somewhere convenient.

  3. Obtain the matching Minecraft Java client JAR from your official launcher installation. Do not use the launcher .json file.

  4. Run the generator from the folder containing the script.

Windows

Open PowerShell in that folder:

Powershell
python .\generate_pack.py `
  --client-jar "C:\path\to\client.jar" `
  --output "redfire-pack" `
  --zip

Example:

Powershell
python .\generate_pack.py `
  --client-jar "$env:APPDATA\.minecraft\versions\1.21.9\1.21.9.jar" `
  --output "redfire-pack" `
  --zip

Linux/macOS

Shell
python3 generate_pack.py \
  --client-jar "$HOME/.minecraft/versions/1.21.9/1.21.9.jar" \
  --output "redfire-pack" \
  --zip

The generator creates:

Plain Text
redfire-pack/
redfire-pack.zip

The ZIP file is the one you install.

Install in Minecraft

Copy redfire-pack.zip into:

Windows

Plain Text
%APPDATA%\.minecraft\resourcepacks\

Linux

Plain Text
~/.minecraft/resourcepacks/

macOS

Plain Text
~/Library/Application Support/minecraft/resourcepacks/

Then:

  1. Launch Minecraft.

  2. Open Options → Resource Packs.

  3. Move REDFIRE // Blackened Ashes to the active-packs column.

  4. Click Done.

Optional settings

Generate larger 32×32 textures:

Shell
python generate_pack.py \
  --client-jar "/path/to/client.jar" \
  --output "redfire-pack-32" \
  --size 32 \
  --zip

Use a custom pack description:

Shell
python generate_pack.py \
  --client-jar "/path/to/client.jar" \
  --output "redfire-pack" \
  --description "Ashen Inferno" \
  --zip

The current script defaults to resource-pack format 69, intended for Minecraft 1.21.9. Use a matching client.jar and adjust --pack-format if you are generating for another version. The script deletes and recreates the output directory if it already exists.

Landyn Richardson

make it for fabric

Kodari AI
KodariSep 1 at 3:41 am 1
  1. Update the generator for Fabric-compatible resource-pack metadata and loading.

  2. Add Fabric installation/use instructions, including the optional Fabric resource-pack loading mod path.

  3. Preserve the existing texture-generation behavior.

Added Fabric support.

Generate a Fabric mod JAR with:

Shell
python generate_pack.py \
  --client-jar "/path/to/client.jar" \
  --output "redfire-fabric" \
  --fabric-mod

This creates:

Plain Text
redfire-fabric.jar

Place it in:

Plain Text
.minecraft/mods/

The Fabric Loader must be installed. Fabric API is not required for this resource-only mod.

You can also use it as a normal resource pack with:

Shell
python generate_pack.py \
  --client-jar "/path/to/client.jar" \
  --output "redfire-pack" \
  --zip

Then place the generated ZIP in:

Plain Text
.minecraft/resourcepacks/
Landyn Richardson

just give me a single file to download for it to work

Kodari AI
KodariSep 1 at 3:43 am 1

I’ll turn generate_pack.py into a single-file Fabric pack builder: it will auto-detect the newest installed Minecraft client JAR, generate the Fabric mod JAR, and leave only one installable file.

Download the single file generate_pack.py and run it with Python:

Shell
python generate_pack.py

It automatically finds your newest installed Minecraft Java version and creates:

Plain Text
redfire-fabric.jar

Place that one file in:

Plain Text
.minecraft/mods/

You need Fabric Loader installed. Fabric API is not required.

Landyn Richardson

what is python and how do i get it

Kodari AI
KodariSep 1 at 3:44 am 1

Python is a free programming tool that runs the texture-pack generator. It is not Minecraft, Fabric, or a mod.

Windows

  1. Go to the official website: https://www.python.org/downloads/

  2. Click Download Python.

  3. Open the installer.

  4. Important: check “Add Python.exe to PATH” at the bottom.

  5. Click Install Now.

To check that it installed:

  1. Open Command Prompt.

  2. Run:

Shell
python --version

You should see something like:

Plain Text
Python 3.12.4

Then put generate_pack.py in a folder, open Command Prompt in that folder, and run:

Shell
python generate_pack.py

The script should create:

Plain Text
redfire-fabric.jar

Place that JAR in:

Plain Text
%APPDATA%\.minecraft\mods

Fabric Loader still needs to be installed.

If you want no Python and no commands at all, you need a prebuilt redfire-fabric.jar instead of the generator script.

Landyn Richardson

said this when i put it into python File "<python-input-1>", line 1 "C:\Users\Marcus\OneDrive\Desktop\New folder"python generate_pack.py ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape >>>

Kodari AI
KodariSep 1 at 3:54 am 1

You entered a Command Prompt command inside Python’s interactive console. The >>> means Python is waiting for Python code, not Windows commands.

1. Exit Python

At the >>> prompt, type:

Python
exit()

Press Enter.

2. Open Command Prompt in the script’s folder

If the file is in:

Plain Text
C:\Users\Marcus\OneDrive\Desktop\New folder

Open Command Prompt, then run:

Shell
cd /d "C:\Users\Marcus\OneDrive\Desktop\New folder"
python generate_pack.py

The quotes are important because New folder contains a space.

Easier method

  1. Open the New folder folder in File Explorer.

  2. Click the address bar.

  3. Type:

Plain Text
cmd
  1. Press Enter.

  2. In the Command Prompt window, run:

Shell
python generate_pack.py

Do not type this at the >>> prompt. After it finishes, look in that folder for:

Plain Text
redfire-fabric.jar

Then place the JAR in:

Plain Text
%APPDATA%\.minecraft\mods
Landyn Richardson

what is the comand promt or scripts folder

Kodari AI
KodariSep 1 at 3:55 am 1

What is Command Prompt?

Command Prompt is a Windows window where you type commands. It usually looks like a black box with text such as:

Plain Text
C:\Users\Marcus>

It is not the Python window showing:

Plain Text
>>>

What is the scripts folder?

The script’s folder is simply the folder where you saved generate_pack.py.

For you, it sounds like that folder is:

Plain Text
C:\Users\Marcus\OneDrive\Desktop\New folder

It is not Python’s internal Scripts folder.

Easiest way to open Command Prompt in the correct folder

  1. Open File Explorer — the yellow folder icon.

  2. Open:

    Plain Text
    Desktop → New folder
    
  3. Confirm that you can see:

    Plain Text
    generate_pack.py
    
  4. Click the address bar at the top of File Explorer.

  5. Type:

    Plain Text
    cmd
    
  6. Press Enter.

A black Command Prompt window should open. It should already be set to the correct folder.

Type this into the black window:

Shell
python generate_pack.py

Then press Enter.

If Windows says that Python is not recognized, try:

Shell
py generate_pack.py

When it finishes, redfire-fabric.jar should appear in the same New folder.

Landyn Richardson

it says cannot find cd

Kodari AI
KodariSep 1 at 3:57 am 1

cd is a Command Prompt command that changes to a folder. Use it in the black Command Prompt window, not the Python window showing >>>.

Easiest method

  1. Open File Explorer.

  2. Go to the folder containing generate_pack.py:

    Plain Text
    C:\Users\Marcus\OneDrive\Desktop\New folder
    
  3. Click the address bar at the top.

  4. Type:

    Plain Text
    cmd
    
  5. Press Enter.

  6. In the black window, type:

    Shell
    py generate_pack.py
    

If you want to use cd

Copy this exactly into Command Prompt:

Shell
cd /d "C:\Users\Marcus\OneDrive\Desktop\New folder"

Then type:

Shell
dir

You should see generate_pack.py listed. Finally run:

Shell
py generate_pack.py

If that folder does not exist, try the version without OneDrive:

Shell
cd /d "C:\Users\Marcus\Desktop\New folder"
py generate_pack.py

Make sure the file is actually named generate_pack.py, not generate_pack.py.txt.

Landyn Richardson

what is the black window and how do i open it

Kodari AI
KodariSep 1 at 3:58 am 1

The “black window” is Command Prompt, a Windows tool for typing commands. It is different from the Python window that shows >>>.

Open it the easy way

  1. Open File Explorer — the yellow folder icon.

  2. Open the folder containing generate_pack.py.

  3. Click the address bar at the top, where the folder path is shown.

  4. Type:

Plain Text
cmd
  1. Press Enter.

A Command Prompt window will open. It may look like:

Plain Text
C:\Users\Marcus\OneDrive\Desktop\New folder>

Now type:

Shell
py generate_pack.py

Press Enter.

Another way

Press the Windows key, type:

Plain Text
Command Prompt

Then click Command Prompt. In the window, type:

Shell
cd /d "C:\Users\Marcus\OneDrive\Desktop\New folder"
py generate_pack.py

Do not type these commands where you see:

Plain Text
>>>

That is the Python console, not Command Prompt.

Landyn Richardson

when i type cnd it opens a new microsoft search tab with cnd and doesn't show anything

Kodari AI
KodariSep 1 at 4:00 am 1

You typed cnd, but the command is cmd — the letters are:

Plain Text
cmd

Also, make sure you are using File Explorer, not a web browser.

Easiest method

  1. Open the yellow File Explorer folder icon.

  2. Open the folder containing generate_pack.py.

  3. Right-click an empty area inside that folder.

  4. Choose Open in Terminal or Open in Windows Terminal.

  5. Type:

Shell
py generate_pack.py
  1. Press Enter.

If you use the address bar

In File Explorer, click the folder path at the very top. It should show something like:

Plain Text
C:\Users\Marcus\OneDrive\Desktop\New folder

Type exactly:

Plain Text
cmd

Then press Enter.

Do not type cmd into Google, Microsoft Edge, or the Windows search box.

Landyn Richardson

then what

Kodari AI
KodariSep 1 at 4:01 am 1

After you choose Open in Terminal, a black or dark window will appear.

  1. Look for a line ending with something like:

Plain Text
C:\Users\Marcus\OneDrive\Desktop\New folder>
  1. Type this command:

Shell
py generate_pack.py
  1. Press Enter and wait.

If it says py is not recognized, try:

Shell
python generate_pack.py

When it finishes, look in the same folder for:

Plain Text
redfire-fabric.jar

That .jar file is the one to put in your Minecraft mods folder.

Kodari can make mistakes. Review important code before using.
Files
generate_pack.py
README.md
Code
2 582
generate_pack.py
#!/usr/bin/env python3

import argparse
import hashlib
import json
import math
import os
import random
import shutil
import struct
import zipfile
import zlib
from pathlib import Path
from typing import List, Sequence, Tuple

Pixel = Tuple[int, int, int, int]

BLACK = (7, 8, 11, 255)
DARK_GREY = (27, 30, 36, 255)
GREY = (72, 77, 86, 255)
LIGHT_GREY = (132, 138, 147, 255)
DARK_RED = (76, 7, 13, 255)
RED = (164, 15, 25, 255)
BRIGHT_RED = (224, 32, 35, 255)
DARK_FIRE = (176, 38, 12, 255)
FIRE = (246, 91, 14, 255)
BRIGHT_FIRE = (255, 184, 37, 255)
PALETTE = (
    DARK_GREY,
    GREY,
    LIGHT_GREY,
    DARK_RED,
    RED,
    BRIGHT_RED,
    DARK_FIRE,
    FIRE,
    BRIGHT_FIRE,
)


def png_chunk(chunk_type: bytes, data: bytes) -> bytes:
    checksum = zlib.crc32(chunk_type + data) & 0xFFFFFFFF
    return (
        struct.pack(">I", len(data))
        + chunk_type
        + data
        + struct.pack(">I", checksum)
    )


def encode_png(pixels: Sequence[Sequence[Pixel]]) -> bytes:
    height = len(pixels)
    width = len(pixels[0])
    raw = bytearray()

    for row in pixels:
        raw.append(0)
        for red, green, blue, alpha in row:
            raw.extend((red, green, blue, alpha))

    header = struct.pack(">IIBBBBB", width, height, 8, 6, 0, 0, 0)

    return (
        b"\x89PNG\r\n\x1a\n"
        + png_chunk(b"IHDR", header)
        + png_chunk(b"IDAT", zlib.compress(bytes(raw), 9))
        + png_chunk(b"IEND", b"")
    )


def rng_for(texture_name: str) -> random.Random:
    digest = hashlib.sha256(texture_name.encode("utf-8")).digest()
    return random.Random(int.from_bytes(digest[:8], "big"))


def set_pixel(
    pixels: List[List[Pixel]],
    x: int,
    y: int,
    color: Pixel,
) -> None:
    height = len(pixels)
    width = len(pixels[0])

    if 0 <= x < width and 0 <= y < height:
        pixels[y][x] = color


def draw_line(
    pixels: List[List[Pixel]],
    start_x: int,
    start_y: int,
    delta_x: int,
    delta_y: int,
    length: int,
    colors: Sequence[Pixel],
    rng: random.Random,
) -> None:
    x = start_x
    y = start_y

    for _ in range(length):
        set_pixel(pixels, x, y, rng.choice(colors))

        if rng.random() < 0.35:
            set_pixel(pixels, x + 1, y, rng.choice(colors))

        if rng.random() < 0.25:
            set_pixel(pixels, x, y + 1, rng.choice(colors))

        x += delta_x
        y += delta_y


def block_texture(texture_name: str, size: int) -> List[List[Pixel]]:
    rng = rng_for(texture_name)
    pixels: List[List[Pixel]] = []

    for y in range(size):
        row: List[Pixel] = []

        for x in range(size):
            edge = x in (0, size - 1) or y in (0, size - 1)
            chance = rng.random()

            if edge:
                color = BLACK
            elif chance < 0.38:
                color = DARK_GREY
            elif chance < 0.63:
                color = GREY
            elif chance < 0.72:
                color = LIGHT_GREY
            elif chance < 0.82:
                color = DARK_RED
            elif chance < 0.91:
                color = RED
            elif chance < 0.97:
                color = DARK_FIRE
            else:
                color = FIRE

            if y < size * 0.4 and rng.random() < 0.055:
                color = BRIGHT_FIRE

            row.append(color)

        pixels.append(row)

    crack_count = max(3, size // 5)

    for _ in range(crack_count):
        start_x = rng.randrange(1, max(2, size - 1))
        start_y = rng.randrange(1, max(2, size - 1))
        delta_x, delta_y = rng.choice(
            ((1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (-1, 1))
        )
        length = rng.randrange(max(2, size // 4), max(3, size // 2))
        colors = (DARK_RED, RED, BRIGHT_RED, FIRE)
        draw_line(
            pixels,
            start_x,
            start_y,
            delta_x,
            delta_y,
            length,
            colors,
            rng,
        )

    return pixels


def item_mask(texture_name: str, x: float, y: float) -> bool:
    lower_name = texture_name.lower()

    if any(
        word in lower_name
        for word in ("sword", "axe", "pickaxe", "shovel", "hoe", "trident")
    ):
        diagonal = abs(y - (0.96 - x * 0.92))
        handle = 0.66 < y < 0.94 and abs(x - 0.72) < 0.08
        return diagonal < 0.10 or handle

    if any(
        word in lower_name
        for word in ("helmet", "chestplate", "leggings", "boots")
    ):
        if "helmet" in lower_name:
            return 0.18 < x < 0.82 and 0.18 < y < 0.65
        if "chestplate" in lower_name:
            return 0.20 < x < 0.80 and 0.18 < y < 0.82
        if "leggings" in lower_name:
            return 0.25 < x < 0.75 and 0.18 < y < 0.86
        return 0.26 < x < 0.74 and 0.45 < y < 0.88

    if any(word in lower_name for word in ("bucket", "bottle", "potion")):
        return 0.28 < x < 0.72 and 0.16 < y < 0.86

    distance = abs(x - 0.5) + abs(y - 0.5)