We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c2157 commit a52b35fCopy full SHA for a52b35f
1 file changed
.github/scripts/generate_showcase.py
@@ -9,7 +9,7 @@
9
OUTPUT_PATH = "../images/showcase_output.png"
10
CUSTOM_ASSETS_DIR = "../images/showcase_assets"
11
12
-MC_ASSETS_BASE = "https://raw.githubusercontent.com/Owen1212055/mc-assets/master/assets/minecraft/textures/"
+MC_ASSETS_BASE = "https://raw.githubusercontent.com/Owen1212055/mc-assets/master/item-assets/"
13
14
GRID_COLS = 9
15
GRID_ROWS = 3
@@ -34,7 +34,9 @@ def get_texture(path, is_block):
34
if os.path.exists(local_path):
35
img = Image.open(local_path).convert("RGBA")
36
else:
37
- url = f"{MC_ASSETS_BASE}{path}.png"
+ # Convert "block/oak_log" to "OAK_LOG.png"
38
+ item_name = path.split("/")[-1].upper()
39
+ url = f"{MC_ASSETS_BASE}{item_name}.png"
40
img = download_image(url)
41
42
# Scale from 256x256 to 144x144
0 commit comments