更新文档导航顺序,添加新页面和翻译内容
This commit is contained in:
@@ -88,6 +88,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
此时你只需在`RP/textures/item_texture.json`中添加名为`my_chest`的纹理即可。我们提供了默认纹理供参考:
|
||||
|
||||
@@ -131,6 +132,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
下载配套纹理文件:
|
||||
|
||||
@@ -190,6 +192,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
护腿纹理下载:
|
||||
|
||||
@@ -224,6 +227,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
## 头盔部分
|
||||
|
||||
@@ -255,6 +259,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
头盔纹理下载:
|
||||
|
||||
@@ -291,6 +296,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
靴子纹理下载:
|
||||
|
||||
@@ -321,6 +327,7 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
```json [BP/entities/player.json#events]
|
||||
"wiki:armor_sets.my_custom.taken_damage": {
|
||||
@@ -347,6 +354,7 @@ mentions:
|
||||
]
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
完成效果展示:
|
||||
|
||||
|
||||
@@ -71,7 +71,9 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
::: code-group
|
||||
```json [RP/textures/item_texture.json]
|
||||
{
|
||||
"resource_pack_name": "vanilla",
|
||||
@@ -128,7 +130,9 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
::: code-group
|
||||
```json [BP/items/my_sword.json]
|
||||
"events": {
|
||||
"wiki:my_sword.on_dig_damage": {
|
||||
@@ -160,7 +164,9 @@ mentions:
|
||||
}
|
||||
}
|
||||
```
|
||||
:::
|
||||
|
||||
::: code-group
|
||||
```json [BP/items/my_sword.json]
|
||||
"events": {
|
||||
"wiki:my_sword.hurt_entity": {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: 物品 Items
|
||||
nav_order: 4
|
||||
categories:
|
||||
- title: 基础
|
||||
color: blue
|
||||
|
||||
@@ -1,26 +1,30 @@
|
||||
---
|
||||
title: Numerical Item IDs
|
||||
category: Documentation
|
||||
title: 数字物品ID
|
||||
category: 文档
|
||||
---
|
||||
|
||||
# 数字物品ID
|
||||
|
||||
<!--@include: @/wiki/bedrock-wiki-mirror.md-->
|
||||
|
||||
::: tip
|
||||
This page is a more up-to-date version of [this page](https://learn.microsoft.com/en-us/minecraft/creator/reference/content/addonsreference/examples/addonitems), and is current as of version 1.20.51.
|
||||
本页面是[此微软文档](https://learn.microsoft.com/en-us/minecraft/creator/reference/content/addonsreference/examples/addonitems)的更新版本,内容基于1.20.51版本。
|
||||
:::
|
||||
|
||||
## Overview
|
||||
## 概述
|
||||
|
||||
Item IDs (not to be confused with type IDs) are an older system which are mainly used to render items with [JSON UI](/wiki/json-ui/json-ui-documentation#item-id-aux-item-id-aux) nowadays. All items & blocks (Even custom ones!) have their own unique ID.
|
||||
物品ID(注意不要与类型ID混淆)是一个较旧的系统,目前主要用于通过[JSON UI](/wiki/json-ui/json-ui-documentation#item-id-aux-item-id-aux)渲染物品。所有物品和方块(包括自定义的!)都有自己唯一的ID。
|
||||
|
||||
## ID Formatting
|
||||
- Vanilla items & blocks have IDs from `-743` to `721`.
|
||||
- All custom blocks have *increasingly negative* IDs, starting from an ID of `-744`. These do not interfere with vanilla IDs in any way. Note that custom blocks do not currently render with their IDs. It is unknown if this is a bug or not.
|
||||
- All non-experimental items (1.10 format) have *increasingly positive* IDs, starting from an ID of `722`. These do not interfere with vanilla IDs in any way.
|
||||
- All experimental items (1.16.100 format) have *increasingly positive* IDs, starting from an ID of 257. These **WILL SHIFT VANILLA IDs** that are higher than 256. For example, `'minecraft:apple'` (ID of `257`) will be moved up to an ID of `258` if you have one experimental item.
|
||||
## ID格式规则
|
||||
- 原版物品和方块的ID范围是`-743`至`721`
|
||||
- 所有自定义方块使用**递减的负数ID**,从`-744`开始。这些ID不会与原版ID产生冲突。注意:当前自定义方块不会显示其ID,尚不明确这是否是bug
|
||||
- 所有非实验性物品(1.10格式)使用**递增的正数ID**,从`722`开始。这些ID不会与原版ID产生冲突
|
||||
- 所有实验性物品(1.16.100格式)使用**递增的正数ID**,从`257`开始。这些ID**会导致高于256的原版ID发生偏移**。例如,如果你添加了一个实验性物品,`'minecraft:apple'`(原ID为`257`)会被移动到`258`
|
||||
|
||||
## Vanilla ID List
|
||||
Note for this list that a namespace of `minecraft:` is assumed for all items & blocks.
|
||||
## 原版ID列表
|
||||
请注意,本列表中所有物品和方块都默认使用`minecraft:`命名空间。
|
||||
|
||||
| Name | ID |
|
||||
| 物品名称 | ID |
|
||||
| ----------------- | :--: |
|
||||
| dark_oak_planks | -743 |
|
||||
| acacia_planks | -742 |
|
||||
|
||||
@@ -18,17 +18,13 @@ mentions:
|
||||
<!--@include: @/wiki/bedrock-wiki-mirror.md-->
|
||||
|
||||
:::tip
|
||||
本文包含关于_物品_的故障排查信息。在继续阅读前,建议先查看[全局故障排查指南](/wiki/guide/troubleshooting)。
|
||||
本文包含关于 _物品_ 的故障排查信息。在继续阅读前,建议先查看[全局故障排查指南](/wiki/guide/troubleshooting)。
|
||||
:::
|
||||
|
||||
## 从这里开始
|
||||
|
||||
我按照教程制作了自定义物品,但出现了问题!请保持冷静。本指南将帮助您排查常见问题。根据按钮提示了解可能的问题原因及修复方法。
|
||||
|
||||
<BButton color="blue" link="#_1-10-vs-1-16-items">继续</BButton>
|
||||
|
||||
---
|
||||
|
||||
## 1.10 与 1.16 格式物品的区别?
|
||||
|
||||
首先需要确认您使用的是实验性物品格式还是稳定版物品格式。
|
||||
@@ -47,12 +43,6 @@ mentions:
|
||||
🔗 [实验性物品文档](https://bedrock.dev/docs/stable/Item)
|
||||
:::
|
||||
|
||||
### 继续选择
|
||||
|
||||
<BButton color="blue" link="#stable-items">1.10 格式(稳定版)</BButton> <BButton color="blue" link="#experimental-items">1.16.100 格式(实验性)</BButton>
|
||||
|
||||
---
|
||||
|
||||
## 稳定版物品
|
||||
|
||||
本部分针对稳定版物品的故障排查。请注意:使用 `1.10` 格式时,您需要同时存在 RP 和 BP 文件!如果只有 BP 文件,说明混淆了格式版本。请返回[此处](#_1-10-vs-1-16-items)重新确认。
|
||||
@@ -125,8 +115,6 @@ mentions:
|
||||
|
||||
正确配置后物品将正常显示贴图。
|
||||
|
||||
---
|
||||
|
||||
## 实验性物品
|
||||
|
||||
本部分针对实验性物品格式的故障排查。请注意:使用 `1.16` 格式时**不应存在 RP 物品文件**!如果同时存在 RP 和 BP 文件,说明混淆了格式版本。请返回[此处](#_1-10-vs-1-16-items)重新确认。
|
||||
|
||||
Reference in New Issue
Block a user