219
edits
Lazy Warlock (talk | contribs) |
Lazy Warlock (talk | contribs) |
||
Line 430: | Line 430: | ||
A '''crate''' for example requires multiple collision boxes: | A '''crate''' for example requires multiple collision boxes: | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
collisionboxesByType: { | |||
"*-opened": [ | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.0625, z2: 1 }, | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.0625 }, | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.0625, rotateY: 90 }, | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.0625, rotateY: 180 }, | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 1, z2: 0.0625, rotateY: 270 }, | |||
] | ] | ||
}, | |||
</syntaxhighlight> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_collisionselectionboxes" data-tt-parent="root">collisionSelectionBoxes</div></td> | |||
<td>array of object</td> | |||
<td>-</td> | |||
<td>Simultaneously defines multiple boxes with which the player collides with and can select.</td> | |||
<td>all stairs</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_colselsboxes_info" data-tt-parent="p_collisionselectionboxes" data-invisible="true"></div></td> | |||
<td colspan="4"> | |||
A '''crate''' for example requires multiple collision boxes: | |||
<syntaxhighlight lang="json"> | |||
collisionSelectionBoxesByType: { | |||
"*-down-*": [ | |||
{ x1: 0, y1: 0.5, z1: 0, x2: 1, y2: 1, z2: 1 }, | |||
{ | |||
x1: 0, y1: 0, z1: 0.5, x2: 1, y2: 0.5, z2: 1, | |||
rotateYByType: { | |||
"*-north": 180, | |||
"*-east": 90, | |||
"*-south": 0, | |||
"*-west": 270, | |||
} | |||
} | |||
], | |||
"*-up-*": [ | |||
{ x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.5, z2: 1 }, | |||
{ | |||
x1: 0, y1: 0.5, z1: 0.5, x2: 1, y2: 1, z2: 1, | |||
rotateYByType: { | |||
"*-north": 180, | |||
"*-east": 90, | |||
"*-south": 0, | |||
"*-west": 270, | |||
} | |||
} | |||
], | |||
}, | }, | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 447: | Line 488: | ||
<td>box (0,0,0 -> 1,1,1)</td> | <td>box (0,0,0 -> 1,1,1)</td> | ||
<td>Defines a box which the player's mouse pointer collides with for selection.</td> | <td>Defines a box which the player's mouse pointer collides with for selection.</td> | ||
<td>carcass, door, fence, all slabs</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 467: | Line 509: | ||
<td>-</td> | <td>-</td> | ||
<td>Defines multiple boxes which the player's mouse pointer collides with for selection.</td> | <td>Defines multiple boxes which the player's mouse pointer collides with for selection.</td> | ||
<td>carcass, door, fence, all slabs</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 490: | Line 533: | ||
<td>0</td> | <td>0</td> | ||
<td>A value usually between 0-9999 that indicates which blocks may be replaced with others.</td> | <td>A value usually between 0-9999 that indicates which blocks may be replaced with others.</td> | ||
<td>bigberrybush, tallgrass, water</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 531: | Line 575: | ||
<td>0</td> | <td>0</td> | ||
<td>Which plants can grow on top of this block.</td> | <td>Which plants can grow on top of this block.</td> | ||
<td>clay, gravel, sand, soil</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 542: | Line 587: | ||
<tr> | <tr> | ||
<td>'''0'''</td> | <td>'''0'''</td> | ||
<td>''nothing can grow.''</td> | <td>''(rock) nothing can grow.''</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>'''10'''</td> | <td>'''10'''</td> | ||
<td>''some tallgrass and small trees can be grow on it.''</td> | <td>''(sand) some tallgrass and small trees can be grow on it.''</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>'''100'''</td> | <td>'''100'''</td> | ||
<td>''all grass and trees can grow on it.''</td> | <td>''(soil) all grass and trees can grow on it.''</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 560: | Line 605: | ||
<td>0</td> | <td>0</td> | ||
<td>Causes the block to visually glow if Bloom is enabled. Basic glow level for all the blocks model elements.</td> | <td>Causes the block to visually glow if Bloom is enabled. Basic glow level for all the blocks model elements.</td> | ||
<td>clay, gravel, sand, soil</td> | |||
</tr> | </tr> | ||
<tr> | <tr> |
edits