Confirmedusers
27
edits
Mirotworez (talk | contribs) (Marked this version for translation) |
m (Add quotes to keys in json) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 68: | Line 68: | ||
<!--T:13--> | <!--T:13--> | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
textures: { | "textures": { | ||
"metal": {base: "path to metal texture" }, | "metal": {"base": "path to metal texture" }, | ||
"wood": {base: "path to wood texture" } | "wood": {"base": "path to wood texture" } | ||
}, | }, | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 84: | Line 84: | ||
<!--T:17--> | <!--T:17--> | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
shapebytype: { | "shapebytype": { | ||
"redmeat-vintage": { base: "item/empty", voxelizeTexture: true }, | "redmeat-vintage": { "base": "item/empty", "voxelizeTexture": true }, | ||
"*": { base: "item/food/meat/red" }, | "*": { "base": "item/food/meat/red" }, | ||
}, | }, | ||
texturesbytype: { | "texturesbytype": { | ||
"redmeat-raw": { | "redmeat-raw": { | ||
"meat": {base: "item/food/meat/raw" } | "meat": {"base": "item/food/meat/raw" } | ||
}, | }, | ||
"redmeat-cooked": { | "redmeat-cooked": { | ||
"meat": {base: "item/food/meat/cooked" } | "meat": {"base": "item/food/meat/cooked" } | ||
}, | }, | ||
"redmeat-cured": { | "redmeat-cured": { | ||
"meat": {base: "item/food/meat/cured" } | "meat": {"base": "item/food/meat/cured" } | ||
}, | }, | ||
"redmeat-vintage": { | "redmeat-vintage": { | ||
"item/empty": { base: "item/food/meat/vintage" } | "item/empty": { "base": "item/food/meat/vintage" } | ||
} | } | ||
}, | }, | ||
Line 116: | Line 116: | ||
<!--T:22--> | <!--T:22--> | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
textures: { | "textures": { | ||
all: {base: "path to texture*"} | "all": {"base": "path to texture*"} | ||
}, | }, | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 128: | Line 128: | ||
<!--T:25--> | <!--T:25--> | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
textures: { | "textures": { | ||
up: { base: "path to top texture" }, | "up": { "base": "path to top texture" }, | ||
down: { base: "path to bottom texture" }, | "down": { "base": "path to bottom texture" }, | ||
south: { base: "path to back texture" }, | "south": { "base": "path to back texture" }, | ||
north: { base: "path to front texture" }, | "north": { "base": "path to front texture" }, | ||
west: { base: "path to left texture" }, | "west": { "base": "path to left texture" }, | ||
east: { base: "path to right texture" }, | "east": { "base": "path to right texture" }, | ||
}, | }, | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!--T:26--> | <!--T:26--> | ||
Keep in mind that if you're using the <code>"Pillar"</code> or <code>"HorizontalOrientable"</code> behaviors you'll need directional variants for each (such as updown, northsouth, eastwest etc.) and you'll likely have to organize it using the ByType functionality. A great example of this is the log (Pillar) and altar (HorizontalOrientable) JSONS. | Keep in mind that if you're using the <code>"Pillar"</code> or <code>"HorizontalOrientable"</code> behaviors you'll need directional variants for each (such as updown, northsouth, eastwest etc.) and you'll likely have to organize it using the ByType functionality. A great example of this is the log (Pillar) and altar (HorizontalOrientable) JSONS. | ||
== Texturing an Entity == <!--T:27--> | == Texturing an Entity == <!--T:27--> | ||
Line 162: | Line 162: | ||
<!--T:34--> | <!--T:34--> | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
texture: { base: "entity/wolf/wolf1", alternates: [ { base: "entity/wolf/wolf2" }, { base: "entity/wolf/wolf2" }, {...} ] } | "texture": { "base": "entity/wolf/wolf1", "alternates": [ { "base": "entity/wolf/wolf2" }, { "base": "entity/wolf/wolf2" }, {...} ] } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Each successive alternative should be numbered (starting with 1). | Each successive alternative should be numbered (starting with 1). |