Skip to content

Commit 30b18ae

Browse files
committed
fix(voxel): 修复方块材质名称大小写问题并更新模组版本
- 将模组版本从 1.3.0 更新到 1.3.1 - 为 voxel 方块添加 MapColor.COLOR_CYAN 颜色属性 - 修复 generate_blocks.py 中纹理部分名称转换为小写的问题 - 移除废弃的 model_destroyer 相关资源文件 - 修正 block-id.json 文件格式错误
1 parent 20d34d6 commit 30b18ae

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ loader_version=0.18.4
1212
loom_version=1.15-SNAPSHOT
1313

1414
# Mod Properties
15-
mod_version=1.3.0
15+
mod_version=1.3.1
1616
maven_group=com.box3lab
1717
archives_base_name=box3mod
1818

src/main/java/com/box3lab/register/voxel/VoxelBlockPropertiesFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import net.minecraft.world.level.block.SoundType;
44
import net.minecraft.world.level.block.state.BlockBehaviour;
5+
import net.minecraft.world.level.material.MapColor;
56

67
public final class VoxelBlockPropertiesFactory {
78
private VoxelBlockPropertiesFactory() {
@@ -10,6 +11,7 @@ private VoxelBlockPropertiesFactory() {
1011
public static BlockBehaviour.Properties create(boolean solid, SoundType soundType, int lightLevel) {
1112
BlockBehaviour.Properties props = BlockBehaviour.Properties.of()
1213
.sound(soundType)
14+
.mapColor(MapColor.COLOR_CYAN)
1315
.lightLevel(state -> lightLevel);
1416

1517
if (!solid) {

src/main/resources/block-id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,4 +382,4 @@
382382
"763": "voxel_special_sand_03",
383383
"765": "voxel_special_sand_04",
384384
"767": "voxel_special_sand_05"
385-
}
385+
}

src/main/resources/generate_blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ def scan_texture_parts():
5050
for file_path in TEXTURES_DIR.glob("*.png"):
5151
parts = file_path.stem.split("_")
5252
if len(parts) >= 2 and parts[-1] in FACES:
53-
texture_part = "_".join(parts[:-1])
53+
texture_part = "_".join(parts[:-1]).lower()
5454
if texture_part:
5555
texture_parts.add(texture_part)
5656
continue
5757

5858
if len(parts) >= 3 and parts[-2] in FACES and parts[-1].isdigit():
59-
texture_part = "_".join(parts[:-2])
59+
texture_part = "_".join(parts[:-2]).lower()
6060
if texture_part:
6161
texture_parts.add(texture_part)
6262
return sorted(texture_parts)

0 commit comments

Comments
 (0)