Code: Select all
* `paramtype2 = "meshoptions"`
* Only valid for "plantlike". The value of `param2` becomes a bitfield which
can be used to change how the client draws plantlike nodes.
* Bits 0, 1 and 2 form a mesh selector.
Currently the following meshes are choosable:
* 0 = a "x" shaped plant (ordinary plant)
* 1 = a "+" shaped plant (just rotated 45 degrees)
* 2 = a "*" shaped plant with 3 faces instead of 2
* 3 = a "#" shaped plant with 4 faces instead of 2
* 4 = a "#" shaped plant with 4 faces that lean outwards
* 5-7 are unused and reserved for future meshes.
* Bits 3 through 7 are optional flags that can be combined and give these
effects:
* bit 3 (0x08) - Makes the plant slightly vary placement horizontally
* bit 4 (0x10) - Makes the plant mesh 1.4x larger
* bit 5 (0x20) - Moves each face randomly a small bit down (1/8 max)
* bits 6-7 are reserved for future use.
Code: Select all
drawtype = 'plantlike',
paramtype2 = 'meshoptions',
place_param2 = 4,
Likely I just don't understand bitfields at all, but a google search didn't return any thing that looked like it was related to what I need to do here.
I found the solution digging through the closed issues on Github.
Code: Select all
place_param2 = 4 + 0x10,