feat:上传mcguide-开发指南部份
This commit is contained in:
56
mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/3-特殊方块/8-自定义交叉贴图方块.md
Normal file
56
mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/3-特殊方块/8-自定义交叉贴图方块.md
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
front:
|
||||
hard: 入门
|
||||
time: 分钟
|
||||
---
|
||||
# 自定义交叉贴图方块
|
||||
|
||||
## 概述
|
||||
|
||||
自定义交叉贴图方块支持使用引擎预设的交叉贴图模型,自己配置物品贴图和模型贴图,制作出类似于甘蔗、蜘蛛网的模型方块。
|
||||
|
||||

|
||||
|
||||
## 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user