Confirmedusers
570
edits
m (Formatting...) |
m (Correction of some details.) |
||
Line 4: | Line 4: | ||
__FORCETOC__ | __FORCETOC__ | ||
This page should give you a basic understanding of topics that may be used within the content tutorials. If there is ever a phrase or topic you are | This page should give you a basic understanding of topics that may be used within the content tutorials. If there is ever a phrase or topic you are unsure about, it is recommended to check here first to see if it has an explanation. | ||
== Shape Files == | == Shape Files == | ||
A shape file is a '''3d model''' of a block, item, or entity. They are | A shape file is a '''3d model''' of a block, item, or entity. They are usually stored within the shapes folder in your mod's assets folder. | ||
When referencing a shape in a json file, you can use the following example property:<syntaxhighlight lang="json"> | When referencing a shape in a json file, you can use the following example property:<syntaxhighlight lang="json"> | ||
Line 29: | Line 29: | ||
"handle": "item/wand-handle" | "handle": "item/wand-handle" | ||
} | } | ||
</syntaxhighlight>In the '<nowiki/>''textures''<nowiki/>' block, we have a list of keys and values. The key refers to the name of the texture, and the value refers to the file path of the texture. In the first instance, similar to when we reference our shape file, the game will search in our mod's texture folder as no domain was given. In this case for the example mod, the path is "''assets/examplecontentmod/textures/item/simplewand.png''". Note again that you do not need to provide the full path or provide the file type. | </syntaxhighlight>In the '<nowiki/>''textures''<nowiki/>' block, we have a list of keys and values. The key refers to the name of the texture inside the shape file, and the value refers to the file path of the texture. In the first instance, similar to when we reference our shape file, the game will search in our mod's texture folder as no domain was given. In this case for the example mod, the path is "''assets/examplecontentmod/textures/item/simplewand.png''". Note again that you do not need to provide the full path or provide the file type. | ||
=== Modifying Textures === | === Modifying Textures === | ||
Line 38: | Line 38: | ||
"base": "item/simplewand" | "base": "item/simplewand" | ||
} | } | ||
</syntaxhighlight>Note that the above is '''texture''', not '''textures'''. Also note that " | </syntaxhighlight>Note that the above is '''texture''', not '''textures'''. Also note that when using a single texture, the key is always "base", regardless of the texture name in the shape file. To change multiple textures in a block/item/entity, use the following:<syntaxhighlight lang="json"> | ||
"textures": { | "textures": { | ||
"head": { "base": "item/wand-blue" }, | "head": { "base": "item/wand-blue" }, |