add 'model-name' item property

This commit is contained in:
MihailRis
2024-10-30 12:46:36 +03:00
parent d3def8e741
commit 0618028df1
4 changed files with 14 additions and 0 deletions
+1
View File
@@ -14,4 +14,5 @@ void ItemDef::cloneTo(ItemDef& dst) {
dst.icon = icon;
dst.placingBlock = placingBlock;
dst.scriptName = scriptName;
dst.modelName = modelName;
}
+2
View File
@@ -35,6 +35,8 @@ struct ItemDef {
std::string placingBlock = "core:air";
std::string scriptName = name.substr(name.find(':') + 1);
std::string modelName = name + ".model";
struct {
itemid_t id;
blockid_t placingBlock;