MCPcopy Index your code
hub / github.com/Bloxdy/texture-packs

github.com/Bloxdy/texture-packs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
9 symbols 22 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bloxd Texture Packs

A repository containing texture packs for bloxd.io. Bellow you will find instructions on how to create your own custom texture pack.

Updating the JSON encodings

Each texture pack folder has a matching JSON encoding in _json/ (with assets base64 encoded) that the game fetches. After changing the files in a pack folder, regenerate its JSON with:

npm run update-pack -- <packName> [--bump]
  • <packName> is the name of the texture pack folder (e.g. h4des).
  • --bump (or -b) increments metaData.version by 1. Bump the version whenever you want existing players' saved packs to auto-update to the new encoding (the version must also be raised in knownTexturePackLatestVersion in the game's TexturePackUtils.ts).

Existing metaData (name, author, previewImage, version) is preserved from the current JSON, since those values are not stored in the folder.

Tools to help make Texture Packs

  • https://www.piskelapp.com/
  • https://nimadez.github.io/voxel-builder/
  • https://skybox-generator.vercel.app/

Structure of a Texture Pack

A texture pack is a folder that has the following structure:

└── 📁<texturePackName>
    └── 📁textures
        └── <textureName>.png
    └── 📁skyBoxes
        └── 📁<skyBoxName>
            └── nx.jpg
            └── ny.jpg
            └── nz.jpg
            └── px.jpg
            └── py.jpg
            └── pz.jpg
    └── 📁models
        └── <modelName>.glb
    └── 📁css
        └── <cssFileName>.css

To see a very simple example of a texture pack, see the exampleTexturePack folder.

Textures

You can overwrite a texture by adding png image to the textures folder that has the same name as one of the available textures names.

Textures are used for blocks, but also for items that you see in your inventory.

See the default texture pack to see which textures can be overwritten.

Models

You can overwrite a model by adding a glb model file to the models folder that has the same name as the one of the available model names. You can read more about glb model files here: https://en.wikipedia.org/wiki/GlTF.

See the default texture pack to see which models can be overwritten.

SkyBoxes

You can overwrite a skyBox by adding a folder in the skyBoxes folder that has the same name as one of the available skyboxes.

Available skyBox names are:

default
interstellar
space_blue
space_lightblue
space_red

All games on bloxd currently only use the default skybox, BloxdHop is the only game that makes use of the other ones.

Css

You can insert custom css styling into bloxd by adding css files in the css folder. These css files can contain class styles, e.g.:

.WholeAppWrapper {
    color: red;
}

The files can also contain @font-face styles, e.g.:

@font-face {
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/pixelifysans/v1/CHylV-3HFUT7aC4iv1TxGDR9JnkEi1lR.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

Core symbols most depended-on inside this repo

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

scripts/update-texture-pack.js9 symbols

For agents

$ claude mcp add texture-packs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page