User Tools

Site Tools


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
Last revisionBoth sides next revision
tutorial:spawn_egg [2023/01/15 01:30] – [Creating the Spawn Egg] solidblocktutorial:spawn_egg [2023/01/15 01:31] – [Giving the Spawn Egg a Texture] solidblock
Line 30: Line 30:
 =====Giving the Spawn Egg a Texture===== =====Giving the Spawn Egg a Texture=====
 If you ran the game now, your spawn egg wouldn't have a texture, so to give it a texture you would need to do as follows: If you ran the game now, your spawn egg wouldn't have a texture, so to give it a texture you would need to do as follows:
-<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 36: Line 36:
 </file> </file>
  
-Make sure to also add this to your lang file. +Make sure to also add this to your [[lang]] file. 
-<file javascript src/main/resources/assets/modid/lang/en_us.json>+<file javascript src/main/resources/assets/tutorial/lang/en_us.json>
 { {
-    "item.modid.iron_golem_spawn_egg": "Iron Golem Spawn Egg"+    "item.tutorial.iron_golem_spawn_egg": "Iron Golem Spawn Egg"
 } }
 </file> </file>
tutorial/spawn_egg.txt · Last modified: 2023/01/15 01:33 by solidblock