Module material

Module material 

Source
Expand description

Wood and stone material conversion logic.

Functionsยง

convert_stone
Converts Minecraft stone materials to their Vintage Story equivalents.
convert_wood
Converts the given wood to its Vintage Story equivalent. For example, spruce becomes walnut, while oak remains unchanged.
convert_wood_or_stone
Runs convert_wood followed by convert_stone.
is_stone
Returns true if the given material is a known stone type.
is_tree
Returns true if the given material is a known wood type.