Added lightbulb block

This commit is contained in:
MihailRis 2023-12-09 21:52:27 +03:00
parent 545057ee1a
commit 9e04a723a9
10 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,9 @@
{
"texture": "lightbulb",
"emission": [15, 14, 13],
"model": "aabb",
"hitbox": [0.25, 0.0, 0.25, 0.5, 0.5, 0.5],
"rotation": "pipe",
"light-passing": true,
"sky-light-passing": true
}

View File

@ -23,6 +23,7 @@
"green_lamp",
"blue_lamp",
"pane",
"pipe"
"pipe",
"lightbulb"
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -223,7 +223,6 @@ voxel* Chunks::rayCast(vec3 start,
const Block* def = contentIds->getBlockDef(voxel->id);
if (def->selectable){
timeutil::ScopeLogTimer lg((long long)def);
end.x = px + t * dx;
end.y = py + t * dy;
end.z = pz + t * dz;