User Tools

Site Tools


tutorial:colorprovider

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:colorprovider [2021/01/22 16:49] – [Registering a Block Color Provider] ChunkRendererRegions are actually 20x20x20 comp500tutorial:colorprovider [2022/03/29 13:22] – [Registering a Block Color Provider] solidblock
Line 8: Line 8:
   * leather armor dying   * leather armor dying
   * redstone wire   * redstone wire
-  * plants such as melons, sugarcane, and lilypads+  * plants such as melons, sugarcane, and lily pads
   * tipped arrows   * tipped arrows
  
Line 28: Line 28:
  
 The model is also important: the main note here is that you are //required// to define a tintindex for each portion of the model you want to hue. To see an example of this, check out ''leaves.json'', which is the base model used for vanilla leaves. Here's the model used for our block: The model is also important: the main note here is that you are //required// to define a tintindex for each portion of the model you want to hue. To see an example of this, check out ''leaves.json'', which is the base model used for vanilla leaves. Here's the model used for our block:
-<code json [enable_line_numbers="false"]>+<code javascript [enable_line_numbers="false"]>
 { {
   "parent": "block/block",   "parent": "block/block",
Line 36: Line 36:
   },   },
   "elements": [   "elements": [
-    {   "from": [ 0, 0, 0 ],+    { "from": [ 0, 0, 0 ],
       "to": [ 16, 16, 16 ],       "to": [ 16, 16, 16 ],
       "faces": {       "faces": {
tutorial/colorprovider.txt · Last modified: 2023/11/18 08:37 by solidblock