mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add 'model-name' item property
This commit is contained in:
parent
d3def8e741
commit
0618028df1
4 changed files with 14 additions and 0 deletions
|
|
@ -14,4 +14,5 @@ void ItemDef::cloneTo(ItemDef& dst) {
|
|||
dst.icon = icon;
|
||||
dst.placingBlock = placingBlock;
|
||||
dst.scriptName = scriptName;
|
||||
dst.modelName = modelName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue