tutorial:items
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:items [2019/05/30 11:49] – [Introduction] Explain the use of placeholders jamieswhiteshirt | tutorial:items [2019/06/17 19:04] – modid refactoring draylar | ||
---|---|---|---|
Line 25: | Line 25: | ||
public void onInitialize() | public void onInitialize() | ||
{ | { | ||
- | Registry.register(Registry.ITEM, | + | Registry.register(Registry.ITEM, |
} | } | ||
} | } | ||
Line 37: | Line 37: | ||
Registering a texture for an item requires an item model .json file and a texture image. You're going to need to add these to your resource directory. The direct path of each is: | Registering a texture for an item requires an item model .json file and a texture image. You're going to need to add these to your resource directory. The direct path of each is: | ||
- | Item model: .../ | + | Item model: .../ |
- | Item texture: .../ | + | Item texture: .../ |
- | Note that wikitut | + | Note that tutorial |
If you registered your item properly in the first step, your game will complain about a missing texture file in a fashion similar to this: | If you registered your item properly in the first step, your game will complain about a missing texture file in a fashion similar to this: | ||
- | [Server-Worker-1/ | + | [Server-Worker-1/ |
It conveniently tells you exactly where it expects your asset[s] to be found-- when in doubt, check the log. | It conveniently tells you exactly where it expects your asset[s] to be found-- when in doubt, check the log. | ||
Line 52: | Line 52: | ||
" | " | ||
" | " | ||
- | " | + | " |
} | } | ||
} | } |
tutorial/items.txt · Last modified: 2024/04/20 08:05 by ryhon