Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,21 @@
"creation_date": "2024-12-20",
"has_changelog": true
},
"mesh_to_cube_converter": {
"title": "Mesh to Cube Converter",
"icon": "icon.svg",
"author": "Ewan Howell",
"description": "Detect cuboids within meshes and convert them into real cubes.",
"tags": ["Meshes", "Cubes", "Utility"],
"version": "1.0.0",
"min_version": "5.0.0",
"variant": "both",
"website": "https://ewanhowell.com/plugins/mesh-to-cube-converter/",
"repository": "https://github.com/ewanhowell5195/blockbenchPlugins/tree/main/mesh_to_cube_converter",
"bug_tracker": "https://github.com/ewanhowell5195/blockbenchPlugins/issues/new?title=[Mesh to Cube Converter]",
"creation_date": "2026-08-15",
"has_changelog": true
},
"threecore_exporter": {
"title": "ThreeCore Exporter",
"author": "Lucas, Spyeedy",
Expand Down
71 changes: 71 additions & 0 deletions plugins/mesh_to_cube_converter/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<div id="about-content">
<p>This plugin detects cuboids within meshes and converts them into real Blockbench cubes, including rotated cuboids and meshes made up of multiple merged cubes.</p>
<p>UVs are transferred exactly. A detected cuboid is only converted when every face maps cleanly onto a cube face, meaning no distorted UVs and no rotations other than 90 degree steps.</p>
<h2 class="markdown">Usage:</h2>
<p>Select the meshes you want to convert, or select nothing to convert every mesh in the project.</p>
<p>Use <strong>Tools &gt; Convert Mesh to Cubes</strong> to run the conversion.</p>
<p>Valid cuboids are extracted into cubes, and any remaining geometry stays behind as a mesh. Meshes that convert completely are removed.</p>
<h2 class="markdown">Detection rules:</h2>
<p>Complete 6 sided cuboids always convert, even when merged into other geometry.</p>
<p>Partial cuboids with missing faces (such as a hidden face deleted where a slope was merged on) convert when at least 4 faces remain. Missing faces become disabled faces on the cube.</p>
<p>Isolated geometry that is not attached to anything else converts with any number of faces, so a lone flat plane becomes a zero thickness cube.</p>
</div>
<style>
.about {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#about-content {
overflow-y: auto;
min-height: 128px;
}
#about-markdown-links {
display: flex;
justify-content: space-around;
margin: 20px 20px 0;
}
#about-markdown-links > a {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
padding: 5px;
text-decoration: none;
flex-grow: 1;
flex-basis: 0;
color: var(--color-subtle_text);
text-align: center;
}
#about-markdown-links > a:hover {
background-color: var(--color-accent);
color: var(--color-light);
}
#about-markdown-links > a > i {
font-size: 32px;
width: 100%;
max-width: initial;
height: 32px;
text-align: center;
}
#about-markdown-links > a:hover > i {
color: var(--color-light) !important;
}
#about-markdown-links > a > p {
flex: 1;
display: flex;
align-items: center;
margin: 0;
}
</style>
<div id="about-markdown-links">
<a href="https://ewanhowell.com/">
<i class="material-icons icon" style="color: #33E38E;">language</i>
<p>By Ewan Howell</p>
</a>
<a href="https://discord.ewanhowell.com/">
<i class="fa_big icon fab fa-discord" style="color: #727FFF;"></i>
<p>Ewan's Discord</p>
</a>
</div>
15 changes: 15 additions & 0 deletions plugins/mesh_to_cube_converter/changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"1.0.0": {
"title": "1.0.0",
"date": "2026-08-15",
"author": "Ewan Howell",
"categories": [
{
"title": "New Features",
"list": [
"Initial release"
]
}
]
}
}
1 change: 1 addition & 0 deletions plugins/mesh_to_cube_converter/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading