Skip to content

Commit

Permalink
Crystal Resonance Generator model tweaks (#7725)
Browse files Browse the repository at this point in the history
changes render to cutout, increases size of voxelshape, makes fluix bits
unlit

---------

Co-authored-by: Sebastian Hartte <shartte@users.noreply.github.com>
  • Loading branch information
Sea-Kerman and shartte committed Mar 9, 2024
1 parent 9280568 commit 56dd575
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ navigation:
icon: crystal_resonance_generator
position: 110
categories:
- devices
- network infrastructure
item_ids:
- ae2:crystal_resonance_generator
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,40 +97,40 @@ private VoxelShape getVoxelShape(BlockState state) {

switch (forward) {
case DOWN -> {
minZ = minX = 3.0 / 16.0;
maxZ = maxX = 13.0 / 16.0;
minZ = minX = 2.0 / 16.0;
maxZ = maxX = 14.0 / 16.0;
maxY = 1.0;
minY = 5.0 / 16.0;
minY = 1.0 / 16.0;
}
case EAST -> {
minZ = minY = 3.0 / 16.0;
maxZ = maxY = 13.0 / 16.0;
maxX = 11.0 / 16.0;
minZ = minY = 2.0 / 16.0;
maxZ = maxY = 14.0 / 16.0;
maxX = 15.0 / 16.0;
minX = 0.0;
}
case NORTH -> {
minY = minX = 3.0 / 16.0;
maxY = maxX = 13.0 / 16.0;
minY = minX = 2.0 / 16.0;
maxY = maxX = 14.0 / 16.0;
maxZ = 1.0;
minZ = 5.0 / 16.0;
minZ = 1.0 / 16.0;
}
case SOUTH -> {
minY = minX = 3.0 / 16.0;
maxY = maxX = 13.0 / 16.0;
maxZ = 11.0 / 16.0;
minY = minX = 2.0 / 16.0;
maxY = maxX = 14.0 / 16.0;
maxZ = 15.0 / 16.0;
minZ = 0.0;
}
case UP -> {
minZ = minX = 3.0 / 16.0;
maxZ = maxX = 13.0 / 16.0;
maxY = 11.0 / 16.0;
minZ = minX = 2.0 / 16.0;
maxZ = maxX = 14.0 / 16.0;
maxY = 15.0 / 16.0;
minY = 0.0;
}
case WEST -> {
minZ = minY = 3.0 / 16.0;
maxZ = maxY = 13.0 / 16.0;
minZ = minY = 2.0 / 16.0;
maxZ = maxY = 14.0 / 16.0;
maxX = 1.0;
minX = 5.0 / 16.0;
minX = 1.0 / 16.0;
}
default -> {
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/appeng/init/client/InitRenderTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public final class InitRenderTypes {
AEBlocks.QUARTZ_CLUSTER,
AEBlocks.MYSTERIOUS_CUBE,
AEBlocks.NOT_SO_MYSTERIOUS_CUBE,
AEBlocks.CRYSTAL_RESONANCE_GENERATOR,
};

private InitRenderTypes() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"parent": "block/block",
"credit": "Made with Blockbench by Sea_Kerman",
"textures": {
"particle": "ae2:block/rtg_top",
"top": "ae2:block/rtg_top",
"bottom": "ae2:block/rtg_bottom",
"side": "ae2:block/rtg_side",
"core": "ae2:block/rtg_emissive"
"particle": "ae2:block/crg_side",
"top": "ae2:block/crg_top",
"bottom": "ae2:block/crg_bottom",
"side": "ae2:block/crg_side",
"core": "ae2:block/crg_emissive"
},
"elements": [
{
Expand All @@ -26,11 +26,16 @@
"from": [4, 4, 4],
"to": [12, 16, 12],
"faces": {
"north": { "uv": [8, 0, 16, 12], "texture": "#core" },
"east": { "uv": [8, 0, 16, 12], "texture": "#core" },
"south": { "uv": [8, 0, 16, 12], "texture": "#core" },
"west": { "uv": [8, 0, 16, 12], "texture": "#core" },
"up": { "uv": [0, 0, 8, 8], "texture": "#core", "cullface": "up" }
"north": { "uv": [8, 0, 16, 12], "texture": "#core", "unlit": true },
"east": { "uv": [8, 0, 16, 12], "texture": "#core", "unlit": true },
"south": { "uv": [8, 0, 16, 12], "texture": "#core", "unlit": true },
"west": { "uv": [8, 0, 16, 12], "texture": "#core", "unlit": true },
"up": {
"uv": [0, 0, 8, 8],
"texture": "#core",
"cullface": "up",
"unlit": true
}
}
},
{
Expand Down

0 comments on commit 56dd575

Please sign in to comment.