mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02:00
Simple deco: Allow setting param2 value on placement
Schematics can already be placed with a param2 value, but not simple 1-node plant decorations of the simple type. This adds a `param2` field to the simple deco type that is checked to be between 0 and 255, and put to the placed node at mapgen. This can be used to put a degrotate value in, or e.g. a fill value for leveltype nodes, or a place_param2 value at mapgen placement, or vary the shape of meshoptions plantlike drawtype.
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
std::vector<content_t> c_decos;
|
||||
s16 deco_height;
|
||||
s16 deco_height_max;
|
||||
u8 deco_param2;
|
||||
};
|
||||
|
||||
class DecoSchematic : public Decoration {
|
||||
|
Reference in New Issue
Block a user