Skip to content

Instantly share code, notes, and snippets.

View catdogmat's full-sized avatar
🌏
Working on MCE stuff

Finn catdogmat

🌏
Working on MCE stuff
  • 04:56 (UTC +12:00)
View GitHub Profile
@ZaneMCXVII
ZaneMCXVII / Custom-Blocks-Without-ResourcePacks.md
Last active March 15, 2025 22:46
It's possible to make custom blocks without resource packs in Minecraft using item displays

Custom Blocks without Resource Packs (Minecraft 1.21.4)

It's possible to make Player Heads the size of full blocks by putting them into an item display,
then changing the scale of the item display to 2 on every axis.

This is useful because Player Heads are the only block that you can change the texture of without a resource pack,
as the texture is stored in the item components as one (or both) of the following:

  1. The username of the player whose skin should be used. (as seen in the example command)
  2. A Base64-encoded link to a skin texture on Minecraft's servers.
@scivision
scivision / extract_zst.py
Last active December 13, 2024 12:20
Extract a .zst file in Python
from pathlib import Path
import tempfile
import tarfile
import zstandard
# pip install zstandard
def extract_zst(archive: Path, out_path: Path):
"""extract .zst file
@dorneanu
dorneanu / plugin_architecture.md
Last active April 9, 2025 16:18
Python: Implement basic plugin architecture with Python and importlib

Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).

This is my solution:

Basic project structure

$ tree