feat:上传mcguide-开发指南部份

This commit is contained in:
Othniel su
2024-12-23 10:57:59 +08:00
parent 7292166c88
commit 0dc59fa4f0
3297 changed files with 63375 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
---
front:
hard: 入门
time: 分钟
---
# 自定义交叉贴图方块
## 概述
自定义交叉贴图方块支持使用引擎预设的交叉贴图模型,自己配置物品贴图和模型贴图,制作出类似于甘蔗、蜘蛛网的模型方块。
![web_reeds.png](../picture/customblock/web_reeds.png)
## model_item_texture
可在model_item_texture中设置使用的物品贴图。
| 类型 | 默认值 | 解释 |
| ------ | ------ | ----------------------------------------------- |
| string | | 使用的物品贴图,必须设置"netease_model"才能生效 |
## model_texture
可在model_texture中设置使用的模型贴图。
| 类型 | 默认值 | 解释 |
| ----- | ------ | ----------------------------------------------- |
| array | | 使用的模型贴图,必须设置"netease_model"才能生效 |
- model_texture和model_item_texture必须同时设置才能生效
## 使用交叉贴图模型
- 在resource_packs\blocks.json下面添加自定义的方块identifier的配置
- 在"netease_model"里配置"customblocks:web_preset""model_item_texture"和"model_textures"根据需求配置自己的物品贴图和模型贴图
### blocks.json示例
```json
{
"format_version": [
1,
1,
0
],
"customblocks:web_preset": {
"netease_model": "customblocks:web_preset",
"model_item_texture": "customblocks:reeds_item",
"model_textures": [
"customblocks:reeds"
]
}
}
```