Difference between revisions of "TrainCarts/Signs/Items/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "{| cellspacing="1" cellpadding="1" border="1" style="height: 182px;" |- ! scope="col" | 元数据<br> ! scope="col" | 释义<br> |- | bgcolor="#cccccc" | damage<br> | bgcolo...")
Line 16: Line 16:
 
! Text !! Explanation
 
! Text !! Explanation
 
|-
 
|-
| DIAMOND_SWORD$damage==0 || 无伤害的钻石剑(满耐久)。
+
| DIAMOND_SWORD$damage==0 || 无法损坏的钻石剑(满耐久度)。
 
|-bgcolor="#dddddd"
 
|-bgcolor="#dddddd"
| FILLED_MAP$map>0 || 地图 id 大于 0 的地图物品。
+
| FILLED_MAP$map>0 || 地图 ID 大于 0 的地图物品。
 
|-
 
|-
 
| STICK$name || 粘贴一设置自定义名称的物品。
 
| STICK$name || 粘贴一设置自定义名称的物品。

Revision as of 17:18, 13 September 2024

Other languages:
English • ‎中文(中国大陆)‎

介绍

你可以在多个控制牌上定义物品,控制牌可以是转移器、制作器、转辙器和检测器。它们都使用相同的语法来解析物品。多个物品用 ; 隔开,可以使用多个语法进行定义。

如果第一个数值后面跟着空格、x 或 *,则表示该物品的数量。接着是定义名称或类型。可以使用物品原名称或物品的索引值来定义。最后定义子索引。你可以使用物品类型的关键字。例如,当你需要某种类型的羊毛时,可以使用 :red。你也可以直接定义子索引。

元数据

一些元素据规则可以在 $ 后指定,用于过滤特定物品。如果指定了元数据名称,则会自行检查是否存在,但可以跟在运算符> < >= <= == !=后面进行比较。

示例

Text Explanation
DIAMOND_SWORD$damage==0 无法损坏的钻石剑(满耐久度)。
FILLED_MAP$map>0 地图 ID 大于 0 的地图物品。
STICK$name 粘贴一设置自定义名称的物品。
STICK$name==Sticky 粘贴名称为 'Sticky' 的物品。

可用规则

元数据
释义
damage
耐久度(剑、工具),0 为无法损坏。
name
设置的自定义物品名称。
custom_model_data
自定义模型数据值。
map
地图 ID
-anything-
任何其他名称都会与物品的自定义 NBT 数据进行比较。

物品快捷方式

In case you need to specify a lot of items at once (but the sign lacks space for it), you can define Item Shortcuts in the config.yml. By default, shortcuts for armor, weaponry, fuel, heatable and some others are defined there.

Examples

Text
Result
wood
All wood
slab:1 Sandstone slab
5 stone
5 stone
5xstone
5Xstone
5*stone
6x5
6 of type 5 (wood)
wool:red
All red wool
6xstairs:stone
6 stone stairs
5*35:4
5 yellow wool
5 wool
5 wool of any color
fuel
an item shortcut set in the configuration

For a list of item integers, see Data values