Skip to content

Commit ce86c38

Browse files
committed
feat: 更新版本号并完善README文档
- 将mod版本从1.2.0更新到1.3.0 - 优化README标题和描述文本 - 添加模型物品导入功能的详细说明 - 修正架构名称表述和文档内容 - 移除重复的联系方式字段 - 清理注释代码
1 parent 00d996d commit ce86c38

File tree

9 files changed

+32
-18
lines changed

9 files changed

+32
-18
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# 神奇代码岛方块MC模组
1+
# Box3Blocks(神岛材质包)-- Minecraft Mod
22

33
![Modrinth Downloads](https://img.shields.io/modrinth/dt/iG3hRUix?logo=modrinth)
44
![CurseForge Downloads](https://img.shields.io/curseforge/dt/1456138?logo=curseforge)
55

66
[简体中文](README.md) | [English](README_en.md)
77

8-
导入神奇代码岛的384个方块到我的世界,让你在MC中也能使用熟悉的方块进行创作,还支持将神奇代码岛中的建筑结构完整迁移到Minecraft世界中,保持原汁原味的建造风格。
8+
导入神奇代码岛的384个方块到我的世界,让你在MC中也能使用熟悉的方块进行创作,还支持将神奇代码岛中的建筑/模型结构完整迁移到Minecraft世界中,保持原汁原味的建造风格。
99

1010
## 📦 安装要求
1111

@@ -47,6 +47,14 @@
4747
- `/box3import <fileName> <ignoreBarrier> <useVanillaWater>`
4848
`useVanillaWater = true` 时,所有流体统一替换为 MC 原版水方块。
4949

50+
### 🧩 导入神奇代码岛的模型物品
51+
52+
- **资源文件导入**:支持从 `minecraft/resourcepacks/` 目录文件导入资源包。
53+
- **资源包加载模型**:将模型放入资源包即可自动注册到创造模式。
54+
- **模型物品标签页**`Box3:模型` 标签页用于管理模型物品。
55+
- **模型销毁器**:右键模型可删除(道具名:模型销毁器)。
56+
- **生成模型资源包**:访问 https://box3lab.com/mc-resource-pack 获取适用于本模组的资源包文件。
57+
5058
### 🔍 屏障可见性切换
5159

5260
- **屏障可见性切换 `/box3barrier`**

README_en.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Box3 Blocks Minecraft Mod
1+
# Box3Blocks(神岛材质包)-- Minecraft Mod
22

33
![Modrinth Downloads](https://img.shields.io/modrinth/dt/iG3hRUix?logo=modrinth)
44
![CurseForge Downloads](https://img.shields.io/curseforge/dt/1456138?logo=curseforge)
@@ -49,6 +49,14 @@ You can also migrate structures from Box3 directly into your Minecraft world, pr
4949
- `/box3import <fileName> <ignoreBarrier> <useVanillaWater>`
5050
When `useVanillaWater = true`, all fluids are replaced with vanilla Minecraft water blocks.
5151

52+
### 🧩 Importing Box3 Model Items
53+
54+
- **Resource file import**: Supports importing resource packs from the `minecraft/resourcepacks/` directory.
55+
- **Resource pack model loading**: Put models into a resource pack to auto-register them in Creative.
56+
- **Model creative tab**: `Box3:Models` tab for model items.
57+
- **Model Destroyer**: Right-click a model to delete it (item name: Model Destroyer).
58+
- **Generate model resource pack**: Visit https://box3lab.com/mc-resource-pack to get a pack compatible with this mod.
59+
5260
### 🔍 Barrier Visibility Toggle
5361

5462
- **Barrier visibility command `/box3barrier`**:
@@ -68,7 +76,7 @@ This project is licensed under the [Apache License 2.0](LICENSE).
6876

6977
## 🙏 Acknowledgements
7078

71-
- Blocks provided by Box3 (Magic Code Island), and the mod developed by Box3 Lab
79+
- Blocks provided by Box3, and the mod developed by Box3Lab
7280
- FabricMC team for the Fabric mod loader
7381

7482
## Star History

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.2.0
15+
mod_version=1.3.0
1616
maven_group=com.box3lab
1717
archives_base_name=box3mod
1818

src/client/java/com/box3lab/Box3ModClient.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
public class Box3ModClient implements ClientModInitializer {
1616
@Override
1717
public void onInitializeClient() {
18-
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
18+
19+
//
1920
for (var entry : ModBlocks.VOXEL_BLOCKS.entrySet()) {
2021
String registryName = entry.getKey();
2122
Block block = entry.getValue();
2223

23-
String texturePart = registryName.startsWith("voxel_") ? registryName.substring("voxel_".length()) : registryName;
24+
String texturePart = registryName.startsWith("voxel_") ? registryName.substring("voxel_".length())
25+
: registryName;
2426
Integer id = BlockIndexUtil.getIdByName(texturePart);
2527
if (id != null && !BlockIndexUtil.isSolid(id)) {
2628
BlockRenderLayerMap.putBlock(block, ChunkSectionLayer.TRANSLUCENT);
@@ -32,8 +34,7 @@ public void onInitializeClient() {
3234
FluidRenderHandlerRegistry.INSTANCE.register(
3335
info.still,
3436
info.flowing,
35-
new VoxelFluidRenderHandler(stillTex, flowTex, info.tint, info.fluidExtinction)
36-
);
37+
new VoxelFluidRenderHandler(stillTex, flowTex, info.tint, info.fluidExtinction));
3738
}
3839
}
3940
}

src/client/java/com/box3lab/client/VoxelFluidRenderHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
public class VoxelFluidRenderHandler extends SimpleFluidRenderHandler {
1010
private final double fluidExtinction;
1111

12-
public VoxelFluidRenderHandler(Identifier stillTexture, Identifier flowingTexture, int tint, double fluidExtinction) {
12+
public VoxelFluidRenderHandler(Identifier stillTexture, Identifier flowingTexture, int tint,
13+
double fluidExtinction) {
1314
super(stillTexture, flowingTexture, tint);
1415
this.fluidExtinction = fluidExtinction;
1516
}
1617

1718
@Override
1819
public int getFluidColor(BlockAndTintGetter view, BlockPos pos, FluidState state) {
1920
int baseColor = super.getFluidColor(view, pos, state);
20-
// Apply extinction by reducing alpha (higher extinction = more transparent)
2121
int alpha = (int) (255 * (1.0 - Math.min(1.0, Math.max(0.0, fluidExtinction))));
2222
return (baseColor & 0x00FFFFFF) | ((alpha & 0xFF) << 24);
2323
}

src/client/java/com/box3lab/mixin/client/ExampleClientMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
public class ExampleClientMixin {
1111
@Inject(at = @At("HEAD"), method = "run")
1212
private void init(CallbackInfo info) {
13-
// This code is injected into the start of Minecraft.run()V
13+
1414
}
1515
}

src/main/java/com/box3lab/item/ModelDestroyerItem.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public ModelDestroyerItem(Properties properties) {
2323
public InteractionResult useOn(UseOnContext context) {
2424
Level level = context.getLevel();
2525
if (!(level instanceof ServerLevel serverLevel)) {
26-
// 客户端或非服务端世界,直接视为成功但不执行删除逻辑
2726
return InteractionResult.SUCCESS;
2827
}
2928

src/main/java/com/box3lab/mixin/ExampleMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
public class ExampleMixin {
1111
@Inject(at = @At("HEAD"), method = "loadLevel")
1212
private void init(CallbackInfo info) {
13-
// This code is injected into the start of MinecraftServer.loadLevel()V
13+
1414
}
1515
}

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
"id": "box3mod",
44
"version": "${version}",
55
"name": "Box3Blocks(神岛材质包)",
6-
"description": "Box3 方块模组为 Minecraft 添加 384 款独特装饰方块,涵盖字母、符号、色块与发光方块,并统一整理至创造模式标签页。同时支持将神奇代码岛中的建筑一键迁移到 Minecraft 中。",
6+
"description": "Box3 方块模组为 Minecraft 添加 384 款独特装饰方块,涵盖字母、符号、色块与发光方块,并统一整理至创造模式标签页。同时支持将神奇代码岛中的建筑/模型一键迁移到 Minecraft 中。",
77
"authors": ["神岛实验室"],
88
"contact": {
99
"homepage": "https://box3lab.com/",
10-
"curseforge": "https://curseforge.com/minecraft/mc-mods/box3-blocks-mod",
11-
"sources": "https://github.com/box3lab/Fabric-mcMod",
12-
"issues": "https://github.com/box3lab/Fabric-mcMod/issues/new"
10+
"sources": "https://github.com/box3lab/Fabric-mcMod"
1311
},
1412
"license": "Apache License 2.0",
1513
"icon": "assets/box3mod/icon.png",

0 commit comments

Comments
 (0)