Confirmedusers
261
edits
CreativeMD (talk | contribs) No edit summary |
(Change formatting) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The dictionary contains multiple named textures. Different [[Modding:Block_Tessellator|tessellators]] expect different texture names. Most tessellators accept the special "all" alias to set all textures at once. | |||
Default example (glass): <syntaxhighlight lang='json'>textures: { | Default example (glass): <syntaxhighlight lang='json'>textures: { | ||
all: { base: "block/glass" }, | all: { base: "block/glass" }, | ||
Line 5: | Line 7: | ||
all: {base: "block/stone/rock/{rock}" }, | all: {base: "block/stone/rock/{rock}" }, | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
There are a few aliases that set multiple textures at the same time: | |||
* '''all''' - sets all textures for tessellators that support the alias | |||
* '''sides''' - "west", "east", "north", "south", "up", and "down" | |||
* '''horizontals''' - "west", "east", "north", and "south" | |||
* '''verticals''' - "up" and "down" | |||
* '''westeast''' - "west" and "east" | |||
* '''northsouth''' - "north" and "south" | |||
For example, hay block uses two aliases: | |||
<syntaxhighlight lang='json'>textures: { | <syntaxhighlight lang='json'>textures: { | ||
horizontals: { base: "block/hay/{type}-side" }, | horizontals: { base: "block/hay/{type}-side" }, | ||
Line 11: | Line 22: | ||
},</syntaxhighlight> | },</syntaxhighlight> | ||
There are many [[Modding:CompositeTexture|options]] to rotate textures, combine them, and randomize the textures by block location. | |||