tutorial:spawn_egg
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:spawn_egg [2023/01/15 01:30] – [Creating the Spawn Egg] solidblock | tutorial:spawn_egg [2023/01/15 01:33] (current) – [Creating the Spawn Egg] solidblock | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| } | } | ||
| </ | </ | ||
| - | :!:This example is used for versions //before// 1.19.3, as Minecraft 1.19.3 directly added iron golem spawn eggs. However, you can create spawn eggs for other entity types. In 1.19.3, remember to remove the '' | + | :!: This example is used for versions //before// 1.19.3, as Minecraft 1.19.3 directly added iron golem spawn eggs. However, you can create spawn eggs for other entity types. In 1.19.3, remember to remove the '' |
| The spawn egg item takes an entity type, a primary and secondary color, and an item settings option. | The spawn egg item takes an entity type, a primary and secondary color, and an item settings option. | ||
| 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' | If you ran the game now, your spawn egg wouldn' | ||
| - | <file javascript src/ | + | <file javascript src/ |
| { | { | ||
| " | " | ||
| Line 36: | Line 36: | ||
| </ | </ | ||
| - | Make sure to also add this to your lang file. | + | Make sure to also add this to your [[lang]] file. |
| - | <file javascript src/ | + | <file javascript src/ |
| { | { | ||
| - | "item.modid.iron_golem_spawn_egg": | + | "item.tutorial.iron_golem_spawn_egg": |
| } | } | ||
| </ | </ | ||
tutorial/spawn_egg.1673746257.txt.gz · Last modified: 2023/01/15 01:30 by solidblock