fixes + Block.replaceable

This commit is contained in:
MihailRis
2023-11-30 19:11:58 +03:00
parent cee0214ac5
commit dc0c497ec1
6 changed files with 46 additions and 15 deletions
+4
View File
@@ -13,6 +13,7 @@ using glm::vec3;
// All in-game definitions (blocks, items, etc..)
void setup_definitions(ContentBuilder* builder) {
Block* block = new Block("core:air", "air");
block->replaceable = true;
block->drawGroup = 1;
block->lightPassing = true;
block->skyLightPassing = true;
@@ -61,6 +62,7 @@ void setup_definitions(ContentBuilder* builder) {
block->skyLightPassing = false;
block->obstacle = false;
block->selectable = false;
block->replaceable = true;
builder->add(block);
block = new Block("base:sand", "sand");
@@ -74,6 +76,7 @@ void setup_definitions(ContentBuilder* builder) {
block->drawGroup = 5;
block->lightPassing = true;
block->obstacle = false;
block->replaceable = true;
block->model = BlockModel::xsprite;
block->hitbox.scale(vec3(0.7f), vec3(0.5f, 0.0f, 0.5f));
builder->add(block);
@@ -82,6 +85,7 @@ void setup_definitions(ContentBuilder* builder) {
block->drawGroup = 5;
block->lightPassing = true;
block->obstacle = false;
block->replaceable = true;
block->model = BlockModel::xsprite;
block->hitbox.scale(vec3(0.7f));
builder->add(block);