Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 441: | Line 441: | ||
<td>-</td> | <td>-</td> | ||
<td>Name of there renderer system that draws this entity.</td> | <td>Name of there renderer system that draws this entity.</td> | ||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_texture" data-tt-parent="root">Texture</div></td> | |||
<td>object</td> | |||
<td></td> | |||
<td>The texture of the entity. It will overwrite all textures of the shape.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row" valign="top"><div class="tt" data-tt-id="p_texture_base" data-tt-parent="p_texture">base</div><br><br><div class="tt" data-tt-id="p_texture_overlays" data-tt-parent="p_texture">overlays</div><br><br><div class="tt" data-tt-id="p_texture_base" data-tt-parent="p_texture">alternates</div></td> | |||
<td colspan="3">Default example (player model): <syntaxhighlight lang='json'>texture: { | |||
base: "entity/humanoid/player" | |||
}</syntaxhighlight> | |||
Using variantgroups (rock):<syntaxhighlight lang='json'>texture: { | |||
base: "entity/humanoid/player-{type}" | |||
}</syntaxhighlight> | |||
Overlay texutre: <syntaxhighlight lang='json'> | |||
texture: { | |||
base: "entity/humanoid/player-{type}", | |||
overlays: [ "entity/humanoid/player-{type}-overlay" ], | |||
}</syntaxhighlight> | |||
Random textures: | |||
<syntaxhighlight lang='json'> | |||
texture: { | |||
base: "entity/humanoid/player-{type}", | |||
alternates: [ | |||
{ base: "entity/humanoid/player-{type}2" }, | |||
{ base: "entity/humanoid/player-{type}3"} | |||
] | |||
}</syntaxhighlight> | |||
Random textures and overlays combined: | |||
<syntaxhighlight lang='json'> | |||
texture: { | |||
base: "entity/humanoid/player-{type}", | |||
overlays: [ "entity/humanoid/player-{type}-overlay" ], | |||
alternates: [ | |||
{ base: "entity/humanoid/player-{type}2", overlays: [ "entity/humanoid/player-{type}2-overlay" ] }, | |||
{ base: "entity/humanoid/player-{type}3", overlays: [ "entity/humanoid/player-{type}3-overlay" ] } | |||
] | |||
}</syntaxhighlight> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_textures" data-tt-parent="root">Textures</div></td> | |||
<td>key: string, value: object</td> | |||
<td></td> | |||
<td>Can be used to replace specific textures of the shape.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row" valign="top"><div class="tt" data-tt-id="p_textures_base" data-tt-parent="p_textures">base</div><br><br><div class="tt" data-tt-id="p_textures_overlays" data-tt-parent="p_textures">overlays</div><br><br><div class="tt" data-tt-id="p_textures_base" data-tt-parent="p_textures">alternates</div></td> | |||
<td colspan="3">Replace <code>arrow</code> texture of the shape, the <code>stick</code> texture remains untouched: <syntaxhighlight lang='json'> textures: { | |||
"arrow": { | |||
base: "entity/arrow/stone" | |||
} | |||
}</syntaxhighlight> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_shape" data-tt-parent="root">Shape</div></td> | |||
<td>object</td> | |||
<td>-</td> | |||
<td>The shape of the entity.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_base" data-tt-parent="p_shape">base</div></td> | |||
<td></td> | |||
<td></td> | |||
<td>The path to the shape json file, the base dir is <code>assets/shapes/</code>. <syntaxhighlight lang='json'>shape: { base: "entity/arrow" }</syntaxhighlight></td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_glowlevel" data-tt-parent="root">GlowLevel</div></td> | |||
<td>0 ... 255</td> | |||
<td>0</td> | |||
<td>Causes the entity to visually glow if Bloom is enabled.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_size" data-tt-parent="root">Size</div></td> | |||
<td>decimal number</td> | |||
<td>1</td> | |||
<td>Can be used to scale the entity up or down.</td> | |||
</tr> | </tr> | ||
<tr> | <tr> |