added ItemDef.stackSize
This commit is contained in:
parent
097e6fde2f
commit
01344a9d1d
@ -233,6 +233,7 @@ void ContentLoader::loadItem(ItemDef* def, std::string name, fs::path file) {
|
|||||||
}
|
}
|
||||||
root->str("icon", def->icon);
|
root->str("icon", def->icon);
|
||||||
root->str("placing-block", def->placingBlock);
|
root->str("placing-block", def->placingBlock);
|
||||||
|
root->num("stack-size", def->stackSize);
|
||||||
|
|
||||||
// item light emission [r, g, b] where r,g,b in range [0..15]
|
// item light emission [r, g, b] where r,g,b in range [0..15]
|
||||||
auto emissionarr = root->list("emission");
|
auto emissionarr = root->list("emission");
|
||||||
|
|||||||
@ -22,6 +22,7 @@ class ItemDef {
|
|||||||
public:
|
public:
|
||||||
std::string const name;
|
std::string const name;
|
||||||
|
|
||||||
|
itemcount_t stackSize = 64;
|
||||||
bool generated = false;
|
bool generated = false;
|
||||||
uint8_t emission[4] {0, 0, 0, 0};
|
uint8_t emission[4] {0, 0, 0, 0};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user