Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package hellfirepvp.modularmachinery.common.block;

import hellfirepvp.modularmachinery.ModularMachinery;
import hellfirepvp.modularmachinery.common.CommonProxy;
import hellfirepvp.modularmachinery.common.block.prop.WorkingState;
import net.minecraft.block.SoundType;
Expand All @@ -11,6 +12,7 @@
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
Expand All @@ -19,6 +21,7 @@
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class BlockStatedMachineComponent extends BlockMachineComponent implements BlockVariants {
public static final List<BlockStatedMachineComponent> WAIT_FOR_REGISTRY = new ArrayList<>();
Expand All @@ -35,6 +38,12 @@ public BlockStatedMachineComponent() {
setCreativeTab(CommonProxy.creativeTabModularMachinery);
}


public boolean isOpaqueCube(IBlockState state)
{
return !Objects.equals(this.getRegistryName(), new ResourceLocation(ModularMachinery.MODID, "crushing_wheels"));
}

public boolean isColoured() {
return isColoured;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,106 +3,122 @@
"texture_size": [32, 32],
"textures": {
"1": "modularmachinery:blocks/lifeessenceprovider",
"2": "bloodmagic:blocks/blankrune",
"particle": "bloodmagic:blocks/blankrune"
"3": "modularmachinery:blocks/blockcasing_plain",
"particle": "modularmachinery:blocks/blockcasing_plain"
},
"elements": [
{
"from": [1, 14, 1],
"to": [15, 15, 15],
"faces": {
"north": {"uv": [0, 0, 16, 1], "texture": "#2"},
"east": {"uv": [0, 0, 16, 1], "texture": "#2"},
"south": {"uv": [0, 0, 16, 1], "texture": "#2"},
"west": {"uv": [0, 0, 16, 1], "texture": "#2"},
"up": {"uv": [0, 0, 16, 16], "texture": "#2"},
"down": {"uv": [0, 0, 16, 16], "texture": "#2"}
"north": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"east": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"south": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"west": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"down": {"uv": [14, 2, 2, 14], "texture": "#3", "tintindex": 1}
}
},
{
"from": [0, 15, 0],
"to": [16, 16, 16],
"faces": {
"north": {"uv": [0, 0, 16, 1], "texture": "#2"},
"east": {"uv": [0, 0, 16, 1], "texture": "#2"},
"south": {"uv": [0, 0, 16, 1], "texture": "#2"},
"west": {"uv": [0, 0, 16, 1], "texture": "#2"},
"up": {"uv": [0, 0, 16, 16], "texture": "#2"},
"down": {"uv": [0, 0, 16, 16], "texture": "#2"}
"north": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"east": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"south": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"west": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"up": {"uv": [0, 0, 16, 16], "texture": "#3", "tintindex": 1},
"down": {"uv": [0, 0, 16, 16], "texture": "#3", "tintindex": 1}
}
},
{
"from": [1, 1, 1],
"to": [15, 2, 15],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]},
"rotation": {"angle": 0, "axis": "y", "origin": [0, -13, 0]},
"faces": {
"north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"south": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"west": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"up": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"},
"down": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"}
"north": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"east": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"south": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"west": {"uv": [16, 0, 0, 1], "texture": "#3", "tintindex": 1},
"up": {"uv": [14, 2, 2, 14], "texture": "#3", "tintindex": 1}
}
},
{
"from": [0, 0, 0],
"to": [16, 1, 16],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]},
"rotation": {"angle": 0, "axis": "y", "origin": [0, -15, 0]},
"faces": {
"north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"south": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"west": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#2"},
"up": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"},
"down": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"}
"north": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"east": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"south": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"west": {"uv": [0, 0, 16, 1], "texture": "#3", "tintindex": 1},
"up": {"uv": [0, 0, 16, 16], "texture": "#3", "tintindex": 1},
"down": {"uv": [0, 0, 16, 16], "texture": "#3", "tintindex": 1}
}
},
{
"from": [0, 1, 0],
"to": [0, 15, 16],
"faces": {
"east": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1},
"west": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1}
}
},
{
"from": [0, 1, 16],
"to": [16, 15, 16],
"faces": {
"north": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1},
"south": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1}
}
},
{
"from": [0, 1, 0],
"to": [16, 15, 0],
"faces": {
"north": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1},
"south": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1}
}
},
{
"from": [16, 1, 0],
"to": [16, 15, 16],
"faces": {
"north": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"east": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"south": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"west": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"up": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"down": {"uv": [10, 0, 5, 5.5], "texture": "#1"}
"east": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1},
"west": {"uv": [8, 0, 0, 7.5], "texture": "#1", "tintindex": 1}
}
},
{
"from": [0, 1, 0],
"to": [16, 15, 0],
"faces": {
"north": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"east": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"south": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"west": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"up": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"down": {"uv": [10, 0, 5, 5.5], "texture": "#1"}
"north": {"uv": [16, 7.5, 8, 15], "texture": "#1"},
"south": {"uv": [16, 7.5, 8, 15], "texture": "#1"}
}
},
{
"from": [0, 1, 16],
"to": [16, 15, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 16]},
"faces": {
"north": {"uv": [16, 7.5, 8, 15], "texture": "#1"},
"south": {"uv": [16, 7.5, 8, 15], "texture": "#1"}
}
},
{
"from": [0, 1, 0],
"to": [0, 15, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [-16, 0, 0]},
"faces": {
"north": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"east": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"south": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"west": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"up": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"down": {"uv": [10, 0, 5, 5.5], "texture": "#1"}
"east": {"uv": [16, 7.5, 8, 15], "texture": "#1"},
"west": {"uv": [16, 7.5, 8, 15], "texture": "#1"}
}
},
{
"from": [0, 1, 16],
"from": [16, 1, 0],
"to": [16, 15, 16],
"faces": {
"north": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"east": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"south": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"west": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"up": {"uv": [10, 0, 5, 5.5], "texture": "#1"},
"down": {"uv": [10, 0, 5, 5.5], "texture": "#1"}
"east": {"uv": [16, 7.5, 8, 15], "texture": "#1"},
"west": {"uv": [16, 7.5, 8, 15], "texture": "#1"}
}
}
],
Expand Down Expand Up @@ -148,7 +164,11 @@
4,
5,
6,
7
7,
8,
9,
10,
11
],
"__createdwith": "opl's Model Creator"
}
Loading
Loading