User Tools

Site Tools


zh_cn:tutorial:spawn_egg

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zh_cn:tutorial:spawn_egg [2023/01/15 01:30] – [创建刷怪蛋] solidblockzh_cn:tutorial:spawn_egg [2023/01/15 01:33] (current) – [创建刷怪蛋] solidblock
Line 9: Line 9:
 } }
 </code> </code>
-:!:这个例子适用于 1.19.3 //之前//的版本,因为 1.19.3 已经直接加入了铁傀儡的刷怪蛋。但是,你可以为其他实体类型创建刷怪蛋。在 1.19.3 中,记得移除掉 ''group'' 方法的调用。+:!:这个例子适用于 1.19.3 //之前//的版本,因为 1.19.3 已经直接加入了铁傀儡的刷怪蛋。但是,你可以为其他实体类型创建刷怪蛋。在 1.19.3 中,记得移除掉 ''group'' 方法的调用。要在 1.19.3 中将刷怪蛋添加到物品组,请参见[[itemgroup|此教程]]
  
 刷怪蛋物品创建时需要提供实体类型、主要的和次要的颜色和物品设置。 刷怪蛋物品创建时需要提供实体类型、主要的和次要的颜色和物品设置。
Line 29: Line 29:
 =====给刷怪蛋一个纹理===== =====给刷怪蛋一个纹理=====
 如果您现在运行游戏,您的刷怪蛋将没有纹理,因此要为其添加纹理,您需要执行以下操作: 如果您现在运行游戏,您的刷怪蛋将没有纹理,因此要为其添加纹理,您需要执行以下操作:
-<file javascript src/main/resources/assets/modid/models/item/iron_golem_spawn_egg.json>+<file javascript src/main/resources/assets/tutorial/models/item/iron_golem_spawn_egg.json>
 { {
   "parent": "item/template_spawn_egg"   "parent": "item/template_spawn_egg"
Line 35: Line 35:
 </file> </file>
  
-同时确保添加翻译到语言文件: +同时确保添加翻译到[[lang|语言]]文件: 
-<file javascript src/main/resources/assets/modid/lang/zh_cn.json>+<file javascript src/main/resources/assets/tutorial/lang/en_us.json>
 { {
-    "item.modid.iron_golem_spawn_egg": "铁傀儡刷怪蛋"+    "item.tutorial.iron_golem_spawn_egg": "Iron Golem Spawn Egg" 
 +
 +</file> 
 +<file javascript src/main/resources/assets/tutorial/lang/zh_cn.json> 
 +
 +    "item.tutorial.iron_golem_spawn_egg": "铁傀儡刷怪蛋"
 } }
 </file> </file>
zh_cn/tutorial/spawn_egg.1673746259.txt.gz · Last modified: 2023/01/15 01:30 by solidblock