User Tools

Site Tools


tutorial:custom_model

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:custom_model [2024/08/26 08:59] – update code solidblocktutorial:custom_model [2024/08/27 04:33] (current) solidblock
Line 15: Line 15:
  
 ==== Sprites ==== ==== Sprites ====
-A ''Sprite'' is necessary for rendering a texture. We must first create a ''SpriteIdentifier'' and then get the corresponding ''Sprite'' while baking the model. +A ''Sprite'' is necessary for rendering a texture. We must first create a ''SpriteIdentifier'' and then get the corresponding ''Sprite'' while baking the model. Here, we will use two furnace textures. They are block textures, so they must be loaded from the block atlas ''PlayerScreenHandler.BLOCK_ATLAS_TEXTURE''.
-Here, we will use two furnace textures. They are block textures, so they must be loaded from the block atlas ''SpriteAtlasTexture.BLOCK_ATLAS_TEX''.+
 <code java> <code java>
     // for versions before 1.21, replace `Identifier.ofVanilla` with `new Identifier`.     // for versions before 1.21, replace `Identifier.ofVanilla` with `new Identifier`.
tutorial/custom_model.1724662743.txt.gz · Last modified: 2024/08/26 08:59 by solidblock