Skip to content

Commit

Permalink
Added lightbulb block
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 9, 2023
1 parent 545057e commit 9e04a72
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions res/content/base/blocks/lightbulb.json
Original file line number Diff line number Diff line change
@@ -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
}
5 changes: 3 additions & 2 deletions res/content/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"green_lamp",
"blue_lamp",
"pane",
"pipe"
"pipe",
"lightbulb"
]
}
}
Binary file added res/textures/blocks/dbg_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/dbg_east.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/dbg_north.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/dbg_south.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/dbg_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/dbg_west.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/blocks/lightbulb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/voxels/Chunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e04a72

Please sign in to comment.