User Tools

Site Tools


zh_cn:tutorial:lang

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
zh_cn:tutorial:lang [2021/11/16 11:08] – [添加新行] solidblockzh_cn:tutorial:lang [2021/11/16 11:11] – [翻译格式] solidblock
Line 68: Line 68:
  
 ====== 翻译格式 ====== ====== 翻译格式 ======
-您注册的对象的翻译''''的格式为 +您注册的对象的翻译键的格式为''<对象类型>.<命名空间>.<路径>''(命名空间和路径就像在 ''Identifier'' 中注册的那样)。
-<code><object-type>.<modid>.<registry-id></code+
  
 ^ 对象类型      ^ 格式       ^ 例子          ^ ^ 对象类型      ^ 格式       ^ 例子          ^
-| 方块          | <code>block.<modid>.<registry-id></code>     |<code>"block.tutorial.example_block": "Example Block"  </code>       | +| 方块          | ''block.<modid>.<registry-id>''     |''"block.tutorial.example_block": "Example Block"  ''       | 
-| 物品    |<code> item.<modid>.<registry-id> </code> |<code> "item.tutorial.my_item": "My Item"</code> +| 物品    |'' item.<modid>.<registry-id> '' |'' "item.tutorial.my_item": "My Item"'' 
-| 物品组 | <code> itemGroup.<modid>.<registry-id></code> <code> "itemGroup.tutorial.my_group": "My Group"</code>+| 物品组 | '' itemGroup.<modid>.<registry-id>'' '' "itemGroup.tutorial.my_group": "My Group"''
-| 流体 | <code> fluid.<modid>.<registry-id> </code> || +| 流体 | '' fluid.<modid>.<registry-id> '' || 
-| 声音事件 | <code> sound_event.<modid>.<registry-id> </code> || +| 声音事件 | '' sound_event.<modid>.<registry-id> '' || 
-| 状态效果 | <code> mob_effect.<modid>.<registry-id> </code> || +| 状态效果 | '' mob_effect.<modid>.<registry-id> '' || 
-| 附魔 | <code> enchantment.<modid>.<registry-id> </code> || +| 附魔 | '' enchantment.<modid>.<registry-id> '' || 
-| 实体类型 | <code> entity_type.<modid>.<registry-id> </code> || +| 实体类型 | '' entity_type.<modid>.<registry-id> '' || 
-| 药水 | <code> potion.<modid>.<registry-id> </code> || +| 药水 | '' potion.<modid>.<registry-id> '' || 
-| 生物群系 | <code> biome.<modid>.<registry-id> </code> ||+| 生物群系 | '' biome.<modid>.<registry-id> '' ||
  
 对于不在此列表中的类型,请参见''net.minecraft.util.registry.Registry.java'' 对于不在此列表中的类型,请参见''net.minecraft.util.registry.Registry.java''
zh_cn/tutorial/lang.txt · Last modified: 2024/02/06 10:25 by rawdiamondmc