add 'sound-absorption' block material parameter

This commit is contained in:
MihailRis 2026-02-11 21:19:55 +03:00
parent b355e4568d
commit 20155b88d0
14 changed files with 82 additions and 28 deletions

View file

@ -147,6 +147,7 @@ struct BlockMaterial : Serializable {
std::string placeSound;
std::string breakSound;
std::string hitSound;
float soundAbsorption = 0.5f;
dv::value toTable() const; // for compatibility
dv::value serialize() const override;