voxels: add copper and gold ores and the bronze tier between iron and diamond
- Commit
747ea853d7903ef476b17b75c31d8aaa6e336935- Author
- Vayun Mathur <[email protected]>
- When
- 2026-08-05 15:22 UTC (4 months ago)
- Parents
bb79543
Diff
games/voxels/src/main/assets/block/bronze_block.png
diff --git a/games/voxels/src/main/assets/block/bronze_block.png b/games/voxels/src/main/assets/block/bronze_block.pngnew file mode 100644index 0000000000..cd1008759aBinary files /dev/null and b/games/voxels/src/main/assets/block/bronze_block.png differ
games/voxels/src/main/assets/block/bronze_boots.png
diff --git a/games/voxels/src/main/assets/block/bronze_boots.png b/games/voxels/src/main/assets/block/bronze_boots.pngnew file mode 100644index 0000000000..c9cb3a43b6Binary files /dev/null and b/games/voxels/src/main/assets/block/bronze_boots.png differ
games/voxels/src/main/assets/block/bronze_chestplate.png
diff --git a/games/voxels/src/main/assets/block/bronze_chestplate.png b/games/voxels/src/main/assets/block/bronze_chestplate.pngnew file mode 100644index 0000000000..41862f5628Binary files /dev/null and b/games/voxels/src/main/assets/block/bronze_chestplate.png differ
games/voxels/src/main/assets/block/bronze_helmet.png
diff --git a/games/voxels/src/main/assets/block/bronze_helmet.png b/games/voxels/src/main/assets/block/bronze_helmet.pngnew file mode 100644index 0000000000..3da674a32aBinary files /dev/null and b/games/voxels/src/main/assets/block/bronze_helmet.png differ
games/voxels/src/main/assets/block/bronze_ingot.png
diff --git a/games/voxels/src/main/assets/block/bronze_ingot.png b/games/voxels/src/main/assets/block/bronze_ingot.pngnew file mode 100644index 0000000000..cd1008759aBinary files /dev/null and b/games/voxels/src/main/assets/block/bronze_ingot.png differ
games/voxels/src/main/assets/block/bronze_leggings.png
diff --git a/games/voxels/src/main/assets/block/bronze_leggings.png b/games/voxels/src/main/assets/block/bronze_leggings.pngnew file mode 100644index 0000000000..0018e2dac0Binary files /dev/null and b/games/voxels/src/main/assets/block/bronze_leggings.png differ
games/voxels/src/main/assets/block/bronze_pickaxe.png
diff --git a/games/voxels/src/main/assets/block/bronze_pickaxe.png b/games/voxels/src/main/assets/block/bronze_pickaxe.pngnew file mode 100644index 0000000000..47c00ee038Binary files /dev/null and b/games/voxels/src/main/assets/block/bronze_pickaxe.png differ
games/voxels/src/main/assets/block/bronze_sword.png
diff --git a/games/voxels/src/main/assets/block/bronze_sword.png b/games/voxels/src/main/assets/block/bronze_sword.pngnew file mode 100644index 0000000000..166c3c1276Binary files /dev/null and b/games/voxels/src/main/assets/block/bronze_sword.png differ
games/voxels/src/main/assets/block/copper_block.png
diff --git a/games/voxels/src/main/assets/block/copper_block.png b/games/voxels/src/main/assets/block/copper_block.pngnew file mode 100644index 0000000000..165a565fe5Binary files /dev/null and b/games/voxels/src/main/assets/block/copper_block.png differ
games/voxels/src/main/assets/block/copper_ingot.png
diff --git a/games/voxels/src/main/assets/block/copper_ingot.png b/games/voxels/src/main/assets/block/copper_ingot.pngnew file mode 100644index 0000000000..da8ccedcf6Binary files /dev/null and b/games/voxels/src/main/assets/block/copper_ingot.png differ
games/voxels/src/main/assets/block/copper_ore.png
diff --git a/games/voxels/src/main/assets/block/copper_ore.png b/games/voxels/src/main/assets/block/copper_ore.pngnew file mode 100644index 0000000000..a8c0010d7eBinary files /dev/null and b/games/voxels/src/main/assets/block/copper_ore.png differ
games/voxels/src/main/assets/block/gold_block.png
diff --git a/games/voxels/src/main/assets/block/gold_block.png b/games/voxels/src/main/assets/block/gold_block.pngnew file mode 100644index 0000000000..2bfb66cfcfBinary files /dev/null and b/games/voxels/src/main/assets/block/gold_block.png differ
games/voxels/src/main/assets/block/gold_ingot.png
diff --git a/games/voxels/src/main/assets/block/gold_ingot.png b/games/voxels/src/main/assets/block/gold_ingot.pngnew file mode 100644index 0000000000..f672c845c4Binary files /dev/null and b/games/voxels/src/main/assets/block/gold_ingot.png differ
games/voxels/src/main/assets/block/gold_ore.png
diff --git a/games/voxels/src/main/assets/block/gold_ore.png b/games/voxels/src/main/assets/block/gold_ore.pngnew file mode 100644index 0000000000..693f9080ebBinary files /dev/null and b/games/voxels/src/main/assets/block/gold_ore.png differ
games/voxels/src/main/java/com/vayunmathur/games/voxels/ui/Hotbar.kt
diff --git a/games/voxels/src/main/java/com/vayunmathur/games/voxels/ui/Hotbar.kt b/games/voxels/src/main/java/com/vayunmathur/games/voxels/ui/Hotbar.ktindex 43e93cd4e9..dd19275a89 100644--- a/games/voxels/src/main/java/com/vayunmathur/games/voxels/ui/Hotbar.kt+++ b/games/voxels/src/main/java/com/vayunmathur/games/voxels/ui/Hotbar.kt@@ -39,12 +39,13 @@ data class InvSlot(val id: Int, val count: Int) data class InventoryState(val selected: Int = 0, val slots: List<InvSlot> = List(9) { InvSlot(0, 0) }, val armor: List<InvSlot> = emptyList()) // Ids 163..178 and 197..202 are tools/armor whose slot `count` is durability (not a stack size).-fun isDurabilityItem(id: Int) = id in 163..178 || id in 197..202 || id == 186 || id == 188+fun isDurabilityItem(id: Int) = id in 163..178 || id in 197..202 || id in 239..244 || id == 186 || id == 188 val maxDurability = mapOf( 163 to 60, 164 to 60, 165 to 132, 166 to 132, 167 to 250, 168 to 250, 169 to 1562, 170 to 1562, 171 to 240, 172 to 240, 173 to 240, 174 to 240, 175 to 528, 176 to 528, 177 to 528, 178 to 528, 186 to 64, 188 to 432,+ 239 to 700, 240 to 700, 241 to 380, 242 to 380, 243 to 380, 244 to 380, 197 to 2031, 198 to 2031, 199 to 666, 200 to 666, 201 to 666, 202 to 666 ) @@ -94,6 +95,11 @@ val blockNames = mapOf( 226 to "Green Curry", 227 to "Gnocchi", 228 to "Naan", 229 to "Pupusa", 230 to "Latke", 231 to "Bruschetta", 232 to "French Toast", 233 to "Sweet Berry Danish", 234 to "Melon Sorbet", 235 to "Stroganoff",+ // Matcha's bronze tier.+ 97 to "Copper Ore", 98 to "Gold Ore", 99 to "Copper Block", 100 to "Gold Block", 101 to "Bronze Block",+ 236 to "Copper Ingot", 237 to "Gold Ingot", 238 to "Bronze Ingot",+ 239 to "Bronze Pickaxe", 240 to "Bronze Sword",+ 241 to "Bronze Helmet", 242 to "Bronze Chestplate", 243 to "Bronze Leggings", 244 to "Bronze Boots", 163 to "Wood Pickaxe", 164 to "Wood Sword", 165 to "Stone Pickaxe", 166 to "Stone Sword", 167 to "Iron Pickaxe", 168 to "Iron Sword", 169 to "Diamond Pickaxe", 170 to "Diamond Sword", 171 to "Iron Helmet", 172 to "Iron Chestplate", 173 to "Iron Leggings", 174 to "Iron Boots",@@ -154,6 +160,11 @@ val blockIconFile = mapOf( 226 to "green_curry.png", 227 to "gnocchi.png", 228 to "naan.png", 229 to "pupusa.png", 230 to "latke.png", 231 to "bruschetta.png", 232 to "french_toast.png", 233 to "sweet_berry_danish.png", 234 to "melon_sorbet.png", 235 to "stroganoff.png",+ 97 to "copper_ore.png", 98 to "gold_ore.png", 99 to "copper_block.png",+ 100 to "gold_block.png", 101 to "bronze_block.png",+ 236 to "copper_ingot.png", 237 to "gold_ingot.png", 238 to "bronze_ingot.png",+ 239 to "bronze_pickaxe.png", 240 to "bronze_sword.png", 241 to "bronze_helmet.png",+ 242 to "bronze_chestplate.png", 243 to "bronze_leggings.png", 244 to "bronze_boots.png", 163 to "wood_pickaxe.png", 164 to "wood_sword.png", 165 to "stone_pickaxe.png", 166 to "stone_sword.png", 167 to "iron_pickaxe.png", 168 to "iron_sword.png", 169 to "diamond_pickaxe.png", 170 to "diamond_sword.png", 171 to "iron_helmet.png", 172 to "iron_chestplate.png", 173 to "iron_leggings.png", 174 to "iron_boots.png",@@ -173,17 +184,19 @@ val blockIconFile = mapOf( // Creative catalog, split into tabs. val catalogNatural = listOf(3, 2, 40, 46, 60, 39, 41, 71, 1, 6, 38, 36, 37, 14, 16, 17, 15, 45, 79, 75, 70, 4, 5, 26, 28, 29, 31, 47, 48, 50, 51, 80, 11, 42, 43, 44, 32, 84, 85, 13)-val catalogOres = listOf(18, 19, 20, 21, 22, 90, 91, 92, 23, 24, 25, 93, 94, 95, 73)+val catalogOres = listOf(18, 19, 20, 21, 22, 90, 91, 92, 97, 98, 23, 24, 25, 93, 94, 95, 99, 100, 101, 73) val catalogOcean = listOf(61, 62, 63, 64, 65, 66, 67, 68, 69) val catalogItems = listOf(128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 187, 189, 190, 191, 192, 193, 194, 195, 196,- 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235)+ 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235,+ 236, 237, 238) val catalogBlessings = listOf(160, 161, 162, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221) val catalogGear = listOf(163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 186, 188,+ 239, 240, 241, 242, 243, 244, 197, 198, 199, 200, 201, 202) val catalogMusic = listOf(82, 179, 180, 181, 182, 183, 184, 185) val catalogBuilding = listOf(10, 27, 30, 49, 52, 8, 57, 9, 53, 54, 55, 56, 58, 59, 72, 74, 76, 77, 78, 81, 7, 33, 34, 35, 96, 88, 89)
games/voxels/src/main/rust/shaders/atlas.bin
diff --git a/games/voxels/src/main/rust/shaders/atlas.bin b/games/voxels/src/main/rust/shaders/atlas.binindex efe72f1a5e..6c6121aeeb 100644Binary files a/games/voxels/src/main/rust/shaders/atlas.bin and b/games/voxels/src/main/rust/shaders/atlas.bin differ
games/voxels/src/main/rust/src/inventory.rs
diff --git a/games/voxels/src/main/rust/src/inventory.rs b/games/voxels/src/main/rust/src/inventory.rsindex d0e4cb2d46..5356d828e1 100644--- a/games/voxels/src/main/rust/src/inventory.rs+++ b/games/voxels/src/main/rust/src/inventory.rs@@ -24,7 +24,7 @@ pub struct Inventory { // (in1_id, in1_count, in2_id, in2_count, out_id, out_count). in2_id == 0 means a single ingredient. // Item ids 154+ are materials/tools (see item.rs). Ore -> material conversions live in SMELTING // instead, since those need a furnace, fuel and time.-pub const RECIPES: [(u8, i32, u8, i32, u8, i32); 76] = [+pub const RECIPES: [(u8, i32, u8, i32, u8, i32); 85] = [ (154, 1, 157, 1, 186, 1), // iron + coal -> flint & steel (187, 1, Block::Glass as u8, 5, Block::Beacon as u8, 1), // nether star + glass -> beacon (138, 2, 0, 0, 189, 3), // gunpowder -> firework rockets@@ -102,6 +102,14 @@ pub const RECIPES: [(u8, i32, u8, i32, u8, i32); 76] = [ (223, 3, 131, 1, 235, 1), // cooked meat + bread -> stroganoff (130, 2, 131, 1, 151, 1), // apple + bread -> apple empanada (130, 1, Block::Glowstone as u8, 1, 152, 1), // apple + glowstone -> glow berry crumble+ // --- Bronze: Matcha alloys copper with gold, landing between iron and diamond. ---+ // 236 copper ingot, 237 gold ingot, 238 bronze ingot.+ (238, 3, 159, 2, 239, 1), // bronze pickaxe+ (238, 2, 159, 1, 240, 1), // bronze sword+ (238, 5, 0, 0, 241, 1), (238, 8, 0, 0, 242, 1), (238, 7, 0, 0, 243, 1), (238, 4, 0, 0, 244, 1),+ (236, 9, 0, 0, Block::CopperBlock as u8, 1),+ (237, 9, 0, 0, Block::GoldBlock as u8, 1),+ (238, 9, 0, 0, Block::BronzeBlock as u8, 1), ]; // Furnace recipes. Unlike crafting these cost fuel and take `secs` of real time, and the ones marked@@ -117,7 +125,7 @@ pub struct Smelt { const fn smelt(in1: u8, n1: i32, in2: u8, n2: i32, out: u8, out_n: i32, secs: f32, blast: bool) -> Smelt { Smelt { in1, n1, in2, n2, out, out_n, secs, blast } }-pub const SMELTING: [Smelt; 15] = [+pub const SMELTING: [Smelt; 18] = [ smelt(Block::CoalOre as u8, 1, 0, 0, 157, 1, 6.0, false), // coal smelt(Block::IronOre as u8, 1, 0, 0, 154, 1, 8.0, false), // iron ingot smelt(Block::DiamondOre as u8, 1, 0, 0, 155, 1, 10.0, false),@@ -129,6 +137,9 @@ pub const SMELTING: [Smelt; 15] = [ smelt(Block::Clay as u8, 4, 0, 0, Block::Brick as u8, 1, 6.0, false), smelt(222, 1, 0, 0, 223, 1, 6.0, false), // raw meat -> cooked meat smelt(131, 1, 0, 0, 147, 3, 5.0, false), // bread -> cookies (baking)+ smelt(Block::CopperOre as u8, 1, 0, 0, 236, 1, 6.0, false), // copper ingot+ smelt(Block::GoldOre as u8, 1, 0, 0, 237, 1, 8.0, false), // gold ingot+ smelt(236, 6, 237, 1, 238, 1, 14.0, true), // copper + gold -> bronze // Blast furnace only: the alloy line. smelt(Block::SulfurOre as u8, 1, 0, 0, 192, 2, 5.0, true), // sulfur smelt(Block::CinnabarOre as u8, 1, 0, 0, 194, 1, 7.0, true), // quicksilver
games/voxels/src/main/rust/src/item.rs
diff --git a/games/voxels/src/main/rust/src/item.rs b/games/voxels/src/main/rust/src/item.rsindex 7d10752206..76ff6a117f 100644--- a/games/voxels/src/main/rust/src/item.rs+++ b/games/voxels/src/main/rust/src/item.rs@@ -37,25 +37,31 @@ pub fn is_food(id: u8) -> bool { food_effects(id).is_some() } // ---- Tools & armor ---- // Tools 163..170: {wood,stone,iron,diamond} x {pickaxe,sword}. Armor 171..178: {iron,diamond} x-// {helmet,chestplate,leggings,boots}. The Matcha adamant tier sits above diamond at 197..202.-// Durability is stored in the inventory slot's `count`.-pub fn is_tool(id: u8) -> bool { (163..=170).contains(&id) || matches!(id, 197 | 198) }-pub fn is_pickaxe(id: u8) -> bool { matches!(id, 163 | 165 | 167 | 169 | 197) }-pub fn is_sword(id: u8) -> bool { matches!(id, 164 | 166 | 168 | 170 | 198) }+// {helmet,chestplate,leggings,boots}. Matcha's bronze sits between iron and diamond at 239..244,+// and adamant tops the ladder at 197..202. Durability is stored in the inventory slot's `count`.+pub fn is_tool(id: u8) -> bool { (163..=170).contains(&id) || matches!(id, 197 | 198 | 239 | 240) }+pub fn is_pickaxe(id: u8) -> bool { matches!(id, 163 | 165 | 167 | 169 | 197 | 239) }+pub fn is_sword(id: u8) -> bool { matches!(id, 164 | 166 | 168 | 170 | 198 | 240) } pub fn is_elytra(id: u8) -> bool { id == 188 }-pub fn is_armor(id: u8) -> bool { (171..=178).contains(&id) || (199..=202).contains(&id) || id == 188 } // elytra occupies the chest slot+pub fn is_armor(id: u8) -> bool {+ (171..=178).contains(&id) || (199..=202).contains(&id) || (241..=244).contains(&id) || id == 188+} // elytra occupies the chest slot pub fn armor_slot(id: u8) -> usize {- if id == 188 { 1 } else if id >= 199 { (id - 199) as usize } else { ((id - 171) % 4) as usize }+ if id == 188 { 1 }+ else if id >= 241 { (id - 241) as usize }+ else if id >= 199 { (id - 199) as usize }+ else { ((id - 171) % 4) as usize } } // 0 helm, 1 chest, 2 legs, 3 boots pub fn is_flint_steel(id: u8) -> bool { id == 186 } pub fn is_firework(id: u8) -> bool { id == 189 } pub fn has_durability(id: u8) -> bool { is_tool(id) || is_armor(id) || id == 186 } -pub fn sword_damage(id: u8) -> f32 { match id { 164 => 5.0, 166 => 6.0, 168 => 7.0, 170 => 9.0, 198 => 11.0, _ => 0.0 } }-pub fn pick_damage(id: u8) -> f32 { match id { 163 => 2.0, 165 => 3.0, 167 => 4.0, 169 => 5.0, 197 => 6.0, _ => 0.0 } }+pub fn sword_damage(id: u8) -> f32 { match id { 164 => 5.0, 166 => 6.0, 168 => 7.0, 240 => 8.0, 170 => 9.0, 198 => 11.0, _ => 0.0 } }+pub fn pick_damage(id: u8) -> f32 { match id { 163 => 2.0, 165 => 3.0, 167 => 4.0, 239 => 4.5, 169 => 5.0, 197 => 6.0, _ => 0.0 } } pub fn armor_defense(id: u8) -> f32 { match id { 171 => 2.0, 172 => 6.0, 173 => 5.0, 174 => 2.0, // iron helm/chest/legs/boots+ 241 => 2.0, 242 => 7.0, 243 => 5.0, 244 => 3.0, // bronze 175 => 3.0, 176 => 8.0, 177 => 6.0, 178 => 3.0, // diamond 199 => 4.0, 200 => 9.0, 201 => 7.0, 202 => 4.0, // adamant 188 => 1.0, // elytra (mostly for mobility, minor defense)@@ -70,6 +76,8 @@ pub fn max_durability(id: u8) -> i32 { 188 => 432, // elytra 197 | 198 => 2031, // adamant tools 199..=202 => 666, // adamant armor+ 239 | 240 => 700, // bronze tools+ 241..=244 => 380, // bronze armor _ => 0, } }
games/voxels/src/main/rust/src/world/block.rs
diff --git a/games/voxels/src/main/rust/src/world/block.rs b/games/voxels/src/main/rust/src/world/block.rsindex 74c1d5e810..564d598a17 100644--- a/games/voxels/src/main/rust/src/world/block.rs+++ b/games/voxels/src/main/rust/src/world/block.rs@@ -104,9 +104,15 @@ pub enum Block { SteelBlock = 94, AdamantBlock = 95, BlastFurnace = 96,+ // Copper and gold round out Matcha's metals, feeding the bronze alloy.+ CopperOre = 97,+ GoldOre = 98,+ CopperBlock = 99,+ GoldBlock = 100,+ BronzeBlock = 101, } -pub const MAX_BLOCK_ID: u8 = 96;+pub const MAX_BLOCK_ID: u8 = 101; impl Block { pub fn from_id(id: u8) -> Self {@@ -225,6 +231,11 @@ impl Block { Self::SteelBlock => 132, Self::AdamantBlock => 133, Self::BlastFurnace => 134,+ Self::CopperOre => 136,+ Self::GoldOre => 137,+ Self::CopperBlock => 138,+ Self::GoldBlock => 139,+ Self::BronzeBlock => 140, } } pub fn tile_bottom(self) -> u32 {@@ -284,7 +295,8 @@ impl Block { | Self::RedSandstone | Self::Sandstone | Self::GraniteBricks | Self::DeepslateBricks | Self::NetherBricks | Self::EndStoneBricks | Self::CobbledDeepslate | Self::Prismarine | Self::DarkPrismarine | Self::Dripstone | Self::Amethyst | Self::Calcite | Self::Tuff | Self::Magma | Self::Obsidian | Self::PackedIce | Self::BlueIce | Self::Purpur- | Self::SilverOre | Self::SulfurOre | Self::CinnabarOre | Self::SilverBlock | Self::SteelBlock | Self::AdamantBlock | Self::BlastFurnace)+ | Self::SilverOre | Self::SulfurOre | Self::CinnabarOre | Self::SilverBlock | Self::SteelBlock | Self::AdamantBlock | Self::BlastFurnace+ | Self::CopperOre | Self::GoldOre | Self::CopperBlock | Self::GoldBlock | Self::BronzeBlock) } // Block light emitted (0..15) for dynamic lighting. pub fn light_emission(self) -> u8 {
games/voxels/src/main/rust/src/world/generator.rs
diff --git a/games/voxels/src/main/rust/src/world/generator.rs b/games/voxels/src/main/rust/src/world/generator.rsindex a1bfb08982..ad1c2c710a 100644--- a/games/voxels/src/main/rust/src/world/generator.rs+++ b/games/voxels/src/main/rust/src/world/generator.rs@@ -286,12 +286,14 @@ pub struct TerrainGen { // Ore/stone-variant veins, richest first so a rare vein wins where two overlap. // (block id, noise offset, noise scale, threshold, min y, max y) type Vein = (u8, f64, f64, f64, i32, i32);-const OVERWORLD_VEINS: [Vein; 9] = [+const OVERWORLD_VEINS: [Vein; 11] = [ (22, 947.0, 0.115, 0.80, 62, 118), // emerald — mountains only, the rarest surface find (20, 823.0, 0.105, 0.78, 5, 20), // diamond — deepest (90, 179.0, 0.095, 0.76, 5, 58), // silver — rarer than iron, never near the surface (21, 601.0, 0.100, 0.72, 5, 30), // redstone (19, 137.0, 0.090, 0.68, 5, 74), // iron+ (97, 233.0, 0.085, 0.66, 5, 88), // copper — shallow and plentiful+ (98, 389.0, 0.100, 0.76, 5, 40), // gold — deep and scarce (18, 7.0, 0.080, 0.62, 5, 112), // coal — large shallow seams (14, 311.0, 0.060, 0.70, 5, 100), // gravel pockets (16, 419.0, 0.055, 0.66, 5, 96), // diorite blobs@@ -946,6 +948,8 @@ mod tests { (20u8, "diamond", 0.005, 0.3), (22u8, "emerald", 0.002, 0.3), (90u8, "silver", 0.02, 0.8),+ (97u8, "copper", 0.3, 3.0),+ (98u8, "gold", 0.01, 0.5), ] { let p = pct(id); println!("{name}: {p:.4}%");
scripts/voxels/build_atlas.py
diff --git a/scripts/voxels/build_atlas.py b/scripts/voxels/build_atlas.pyindex 409c9c9c75..cae912e4e2 100644--- a/scripts/voxels/build_atlas.py+++ b/scripts/voxels/build_atlas.py@@ -104,6 +104,9 @@ PROC_TILES = { 132: (86, 92, 104), # steel block (blue-gray) 134: (58, 54, 62), # blast furnace top (dark iron) 135: (44, 42, 48), # blast furnace side+ 138: (204, 118, 66), # copper block+ 139: (246, 208, 62), # gold block+ 140: (176, 141, 87), # bronze block } # Ore tiles: a stone/netherrack base with deterministic mineral blobs speckled over it, so new ores@@ -113,6 +116,8 @@ ORE_TILES = { 128: (0, (214, 220, 232), 0x511E), # silver ore in stone 129: (37, (238, 214, 62), 0x5F1F), # sulfur ore in netherrack 130: (37, (196, 40, 44), 0xC14B), # cinnabar ore in netherrack+ 136: (0, (216, 130, 78), 0xC099), # copper ore in stone+ 137: (0, (250, 214, 76), 0x901D), # gold ore in stone } # Blocks and items whose icon comes straight from a pack PNG. dest filename -> (subdir, source).@@ -133,6 +138,12 @@ COPY_ICONS = { "demeter", "eros", "glaucus", "god_king", "hyacinthus", "icarus", "lu_ban", "paris", "prometheus", "talos", "warding", "will", "yama", "yamm", )},+ # Matcha's bronze tier, between iron and diamond.+ "copper_ingot.png": ("item", "copper_ingot.png"),+ "gold_ingot.png": ("item", "gold_ingot.png"),+ **{f"bronze_{n}.png": ("item", f"bronze_{n}.png") for n in (+ "pickaxe", "sword", "helmet", "chestplate", "leggings", "boots",+ )}, # Matcha's cooked dishes. "cooked_meat.png": ("item", "porkchop_classic.png"), **{f"{n}.png": ("item", f"{n}.png") for n in (@@ -146,6 +157,7 @@ PROC_ITEM_ICON = { "sulfur.png": (238, 214, 62), "steel_ingot.png": (118, 126, 140), "raw_meat.png": (214, 108, 116), # the pack leaves raw meat vanilla, so make our own+ "bronze_ingot.png": (176, 141, 87), } @@ -159,6 +171,8 @@ PROC_ICON = { 120: "lava.png", 121: "end_stone.png", 124: "beacon.png", 125: "purpur_block.png", 126: "firework_rocket.png", 127: "snowball.png", 128: "silver_ore.png", 129: "sulfur_ore.png", 130: "cinnabar_ore.png", 131: "silver_block.png", 132: "steel_block.png", 134: "blast_furnace.png",+ 136: "copper_ore.png", 137: "gold_ore.png",+ 138: "copper_block.png", 139: "gold_block.png", 140: "bronze_block.png", }