Skip to content

Instantly share code, notes, and snippets.

View catdogmat's full-sized avatar
📚

Finn catdogmat

📚
  • 16:54 (UTC +13: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 August 18, 2025 14:44
Extract a .zst file in Python
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.9"
# dependencies = ["zstandard; python_version < '3.14'"]
# ///
"""
https://docs.python.org/3.14/library/compression.zstd.html#compression.zstd.ZstdFile
"""
@dorneanu
dorneanu / plugin_architecture.md
Last active November 22, 2025 00:19
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