Updated military siren models by Gabe Tie
|
@ -4,6 +4,7 @@ import cr0s.warpdrive.Commons;
|
|||
import cr0s.warpdrive.api.WarpDriveText;
|
||||
import cr0s.warpdrive.block.BlockAbstractRotatingContainer;
|
||||
import cr0s.warpdrive.config.WarpDriveConfig;
|
||||
import cr0s.warpdrive.data.BlockProperties;
|
||||
import cr0s.warpdrive.data.EnumTier;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
@ -12,18 +13,38 @@ import javax.annotation.Nullable;
|
|||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.BlockFaceShape;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.client.util.ITooltipFlag;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockSiren extends BlockAbstractRotatingContainer {
|
||||
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_DOWN = new AxisAlignedBB(0.0000D, 0.3125D, 0.0000D, 1.0000D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_UP = new AxisAlignedBB(0.0000D, 0.3125D, 0.0000D, 1.0000D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_NORTH = new AxisAlignedBB(0.0000D, 0.3125D, 0.4375D, 1.0000D, 0.6875D, 0.8125D);
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_SOUTH = new AxisAlignedBB(0.0000D, 0.3125D, 0.1875D, 1.0000D, 0.6875D, 0.5625D);
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_WEST = new AxisAlignedBB(0.4375D, 0.3125D, 0.0000D, 0.8125D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_INDUSTRIAL_EAST = new AxisAlignedBB(0.1875D, 0.3125D, 0.0000D, 0.5625D, 0.6875D, 1.0000D);
|
||||
|
||||
private static final AxisAlignedBB AABB_MILITARY_DOWN = new AxisAlignedBB(0.0000D, 0.3125D, 0.0000D, 1.0000D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_MILITARY_UP = new AxisAlignedBB(0.0000D, 0.3125D, 0.0000D, 1.0000D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_MILITARY_NORTH = new AxisAlignedBB(0.0000D, 0.3125D, 0.4375D, 1.0000D, 0.6875D, 0.8125D);
|
||||
private static final AxisAlignedBB AABB_MILITARY_SOUTH = new AxisAlignedBB(0.0000D, 0.3125D, 0.1875D, 1.0000D, 0.6875D, 0.5625D);
|
||||
private static final AxisAlignedBB AABB_MILITARY_WEST = new AxisAlignedBB(0.4375D, 0.3125D, 0.0000D, 0.8125D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_MILITARY_EAST = new AxisAlignedBB(0.1875D, 0.3125D, 0.0000D, 0.5625D, 0.6875D, 1.0000D);
|
||||
private static final AxisAlignedBB AABB_FULL = FULL_BLOCK_AABB;
|
||||
|
||||
private final boolean isIndustrial;
|
||||
|
||||
public BlockSiren(final String registryName, final EnumTier enumTier, final boolean isIndustrial) {
|
||||
|
@ -48,6 +69,107 @@ public class BlockSiren extends BlockAbstractRotatingContainer {
|
|||
return 0;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public int getLightOpacity(@Nonnull final IBlockState blockState) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Nonnull
|
||||
@Override
|
||||
public AxisAlignedBB getBoundingBox(@Nonnull final IBlockState blockState, @Nonnull final IBlockAccess blockAccess, @Nonnull final BlockPos blockPos) {
|
||||
return getBlockBoundsFromState(blockState);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Nullable
|
||||
@Override
|
||||
public AxisAlignedBB getCollisionBoundingBox(@Nonnull final IBlockState blockState, @Nonnull final IBlockAccess blockAccess, @Nonnull final BlockPos blockPos) {
|
||||
return getBlockBoundsFromState(blockState);
|
||||
}
|
||||
|
||||
private AxisAlignedBB getBlockBoundsFromState(final IBlockState blockState) {
|
||||
if (blockState == null) {
|
||||
return AABB_FULL;
|
||||
}
|
||||
if (isIndustrial) {
|
||||
switch (blockState.getValue(BlockProperties.FACING)) {
|
||||
case DOWN : return AABB_INDUSTRIAL_DOWN;
|
||||
case UP : return AABB_INDUSTRIAL_UP;
|
||||
case NORTH: return AABB_INDUSTRIAL_NORTH;
|
||||
case SOUTH: return AABB_INDUSTRIAL_SOUTH;
|
||||
case WEST : return AABB_INDUSTRIAL_WEST;
|
||||
case EAST : return AABB_INDUSTRIAL_EAST;
|
||||
default: return AABB_FULL;
|
||||
}
|
||||
} else {
|
||||
switch (blockState.getValue(BlockProperties.FACING)) {
|
||||
case DOWN : return AABB_MILITARY_DOWN;
|
||||
case UP : return AABB_MILITARY_UP;
|
||||
case NORTH: return AABB_MILITARY_NORTH;
|
||||
case SOUTH: return AABB_MILITARY_SOUTH;
|
||||
case WEST : return AABB_MILITARY_WEST;
|
||||
case EAST : return AABB_MILITARY_EAST;
|
||||
default: return AABB_FULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isTopSolid(@Nonnull final IBlockState blockState) {
|
||||
final EnumFacing enumFacing = blockState.getValue(BlockProperties.FACING);
|
||||
return enumFacing == EnumFacing.DOWN;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Nonnull
|
||||
@Override
|
||||
public BlockFaceShape getBlockFaceShape(@Nonnull final IBlockAccess blockAccess, @Nonnull final IBlockState blockState, @Nonnull final BlockPos blockPos, @Nonnull final EnumFacing enumFacing) {
|
||||
final EnumFacing enumFacingState = blockState.getValue(BlockProperties.FACING);
|
||||
return enumFacing == enumFacingState.getOpposite() ? BlockFaceShape.CENTER_BIG : BlockFaceShape.UNDEFINED;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isFullBlock(@Nonnull final IBlockState blockState) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isFullCube(@Nonnull final IBlockState blockState) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public boolean shouldSideBeRendered(@Nonnull final IBlockState blockState, @Nonnull final IBlockAccess blockAccess, @Nonnull final BlockPos blockPos, @Nonnull final EnumFacing facing) {
|
||||
final BlockPos blockPosSide = blockPos.offset(facing);
|
||||
final boolean doesSideBlockRendering = blockAccess.getBlockState(blockPosSide).doesSideBlockRendering(blockAccess, blockPosSide, facing);
|
||||
return !doesSideBlockRendering;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isOpaqueCube(@Nonnull final IBlockState blockState) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesSideBlockRendering(@Nonnull final IBlockState blockState, final IBlockAccess blockAccess, final BlockPos blockPos, final EnumFacing side) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isSideSolid(@Nonnull final IBlockState blockState, @Nonnull final IBlockAccess blockAccess, @Nonnull final BlockPos blockPos, @Nonnull final EnumFacing side) {
|
||||
final EnumFacing enumFacing = blockState.getValue(BlockProperties.FACING);
|
||||
return enumFacing.getOpposite() == side;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(@Nonnull final ItemStack itemStack, @Nullable final World world,
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"inventory": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"inventory": { "model": "warpdrive:detection/siren_military.advanced-vertical" },
|
||||
|
||||
"active=false,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=north": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=south": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=false,facing=down" : { "model": "warpdrive:detection/siren_military.advanced-vertical", "x": 180 },
|
||||
"active=false,facing=up" : { "model": "warpdrive:detection/siren_military.advanced-vertical" },
|
||||
"active=false,facing=north": { "model": "warpdrive:detection/siren_military.advanced-horizontal" },
|
||||
"active=false,facing=south": { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 180 },
|
||||
"active=false,facing=west" : { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 270 },
|
||||
"active=false,facing=east" : { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 90 },
|
||||
|
||||
"active=true,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=true,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=true,facing=north" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=true,facing=south" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=true,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } },
|
||||
"active=true,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.advanced" } }
|
||||
}
|
||||
"active=true,facing=down" : { "model": "warpdrive:detection/siren_military.advanced-vertical", "x": 180 },
|
||||
"active=true,facing=up" : { "model": "warpdrive:detection/siren_military.advanced-vertical" },
|
||||
"active=true,facing=north": { "model": "warpdrive:detection/siren_military.advanced-horizontal" },
|
||||
"active=true,facing=south": { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 180 },
|
||||
"active=true,facing=west" : { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 270 },
|
||||
"active=true,facing=east" : { "model": "warpdrive:detection/siren_military.advanced-horizontal", "y": 90 }
|
||||
}
|
||||
}
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"inventory": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"inventory": { "model": "warpdrive:detection/siren_military.basic-vertical" },
|
||||
|
||||
"active=false,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=north": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=south": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=false,facing=down" : { "model": "warpdrive:detection/siren_military.basic-vertical", "x": 180 },
|
||||
"active=false,facing=up" : { "model": "warpdrive:detection/siren_military.basic-vertical" },
|
||||
"active=false,facing=north": { "model": "warpdrive:detection/siren_military.basic-horizontal" },
|
||||
"active=false,facing=south": { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 180 },
|
||||
"active=false,facing=west" : { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 270 },
|
||||
"active=false,facing=east" : { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 90 },
|
||||
|
||||
"active=true,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=true,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=true,facing=north" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=true,facing=south" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=true,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } },
|
||||
"active=true,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.basic" } }
|
||||
}
|
||||
"active=true,facing=down" : { "model": "warpdrive:detection/siren_military.basic-vertical", "x": 180 },
|
||||
"active=true,facing=up" : { "model": "warpdrive:detection/siren_military.basic-vertical" },
|
||||
"active=true,facing=north": { "model": "warpdrive:detection/siren_military.basic-horizontal" },
|
||||
"active=true,facing=south": { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 180 },
|
||||
"active=true,facing=west" : { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 270 },
|
||||
"active=true,facing=east" : { "model": "warpdrive:detection/siren_military.basic-horizontal", "y": 90 }
|
||||
}
|
||||
}
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"inventory": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"inventory": { "model": "warpdrive:detection/siren_military.superior-vertical" },
|
||||
|
||||
"active=false,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=north": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=south": { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=false,facing=down" : { "model": "warpdrive:detection/siren_military.superior-vertical", "x": 180 },
|
||||
"active=false,facing=up" : { "model": "warpdrive:detection/siren_military.superior-vertical" },
|
||||
"active=false,facing=north": { "model": "warpdrive:detection/siren_military.superior-horizontal" },
|
||||
"active=false,facing=south": { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 180 },
|
||||
"active=false,facing=west" : { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 270 },
|
||||
"active=false,facing=east" : { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 90 },
|
||||
|
||||
"active=true,facing=down" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=true,facing=up" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=true,facing=north" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=true,facing=south" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=true,facing=east" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } },
|
||||
"active=true,facing=west" : { "model": "minecraft:cube_all", "textures": { "all" : "warpdrive:blocks/detection/siren_military.superior" } }
|
||||
}
|
||||
"active=true,facing=down" : { "model": "warpdrive:detection/siren_military.superior-vertical", "x": 180 },
|
||||
"active=true,facing=up" : { "model": "warpdrive:detection/siren_military.superior-vertical" },
|
||||
"active=true,facing=north": { "model": "warpdrive:detection/siren_military.superior-horizontal" },
|
||||
"active=true,facing=south": { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 180 },
|
||||
"active=true,facing=west" : { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 270 },
|
||||
"active=true,facing=east" : { "model": "warpdrive:detection/siren_military.superior-horizontal", "y": 90 }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"particle": "warpdrive:blocks/detection/siren_military-base_connection",
|
||||
"base": "warpdrive:blocks/detection/siren_military-base",
|
||||
"connection": "warpdrive:blocks/detection/siren_military-base_connection"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [2, 2, 14],
|
||||
"to": [14, 14, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 12, 12], "texture": "#base"},
|
||||
"east": {"uv": [0, 12, 12, 14], "rotation": 90, "texture": "#base"},
|
||||
"south": {"uv": [0, 0, 12, 12], "rotation": 180, "texture": "#connection"},
|
||||
"west": {"uv": [0, 12, 12, 14], "rotation": 270, "texture": "#base"},
|
||||
"up": {"uv": [0, 12, 12, 14], "texture": "#base"},
|
||||
"down": {"uv": [0, 12, 12, 14], "rotation": 180, "texture": "#base"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [7, 7.01, 8],
|
||||
"to": [9, 8.99, 14],
|
||||
"faces": {
|
||||
"north": {"uv": [12, 6, 14, 8], "texture": "#cone"},
|
||||
"east": {"uv": [16, 6, 14, 12], "rotation": 90, "texture": "#cone"},
|
||||
"west": {"uv": [16, 6, 14, 12], "rotation": 270, "texture": "#cone"},
|
||||
"up": {"uv": [16, 6, 14, 12], "texture": "#cone"},
|
||||
"down": {"uv": [16, 6, 14, 12], "rotation": 180, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [11, 6, 8],
|
||||
"to": [13, 10, 12],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"south": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"west": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "rotation": 90, "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "rotation": 270, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [3, 6, 8],
|
||||
"to": [5, 10, 12],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"east": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"south": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "rotation": 270, "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "rotation": 90, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 7, 9],
|
||||
"to": [11, 9, 11],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"east": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"south": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"west": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"up": {"uv": [6, 6, 12, 8], "rotation": 180, "texture": "#cone"},
|
||||
"down": {"uv": [6, 6, 12, 8], "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 5, 7],
|
||||
"to": [16, 11, 13],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"east": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"south": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"west": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "rotation": 90, "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "rotation": 270, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 5, 7],
|
||||
"to": [3, 11, 13],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"east": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"south": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"west": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "rotation": 270, "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "rotation": 90, "texture": "#cone"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,161 @@
|
|||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"particle": "warpdrive:blocks/detection/siren_military-base_connection",
|
||||
"base": "warpdrive:blocks/detection/siren_military-base",
|
||||
"connection": "warpdrive:blocks/detection/siren_military-base_connection"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [2, 0, 2],
|
||||
"to": [14, 2, 14],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 12, 12, 14], "texture": "#base"},
|
||||
"east": {"uv": [0, 12, 12, 14], "texture": "#base"},
|
||||
"south": {"uv": [0, 12, 12, 14], "texture": "#base"},
|
||||
"west": {"uv": [0, 12, 12, 14], "texture": "#base"},
|
||||
"up": {"uv": [0, 0, 12, 12], "texture": "#base"},
|
||||
"down": {"uv": [0, 0, 12, 12], "texture": "#connection"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [7, 2, 7],
|
||||
"to": [9, 10, 9],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [10, 10, 10]},
|
||||
"faces": {
|
||||
"north": {"uv": [14, 6, 16, 14], "texture": "#cone"},
|
||||
"east": {"uv": [16, 6, 14, 14], "texture": "#cone"},
|
||||
"south": {"uv": [14, 6, 16, 14], "texture": "#cone"},
|
||||
"west": {"uv": [16, 6, 14, 14], "texture": "#cone"},
|
||||
"up": {"uv": [12, 6, 14, 8], "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 6, 3],
|
||||
"to": [10, 10, 5],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [10, 8, 7]},
|
||||
"faces": {
|
||||
"east": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"south": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"west": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [11, 6, 6],
|
||||
"to": [13, 10, 10],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"south": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"west": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "rotation": 90, "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "rotation": 270, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [6, 6, 11],
|
||||
"to": [10, 10, 13],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"east": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"west": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "rotation": 180, "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "rotation": 180, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [3, 6, 6],
|
||||
"to": [5, 10, 10],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [4, 9, 6, 13], "texture": "#cone"},
|
||||
"east": {"uv": [0, 9, 4, 13], "texture": "#cone"},
|
||||
"south": {"uv": [6, 9, 4, 13], "texture": "#cone"},
|
||||
"up": {"uv": [0, 15, 4, 13], "rotation": 270, "texture": "#cone"},
|
||||
"down": {"uv": [0, 13, 4, 15], "rotation": 90, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [7, 7, 5],
|
||||
"to": [9, 9, 11],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [7.5, 7.5, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"east": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"south": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"west": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"up": {"uv": [6, 6, 12, 8], "rotation": 90, "texture": "#cone"},
|
||||
"down": {"uv": [6, 6, 12, 8], "rotation": 90, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 7, 7],
|
||||
"to": [11, 9, 9],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"east": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"south": {"uv": [6, 6, 12, 8], "texture": "#cone"},
|
||||
"west": {"uv": [0, 0, 2, 2], "texture": "#cone"},
|
||||
"up": {"uv": [6, 6, 12, 8], "rotation": 180, "texture": "#cone"},
|
||||
"down": {"uv": [6, 6, 12, 8], "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 5, 0],
|
||||
"to": [11, 11, 3],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 5]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"east": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"south": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"west": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 5, 5],
|
||||
"to": [16, 11, 11],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"east": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"south": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"west": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "rotation": 90, "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "rotation": 270, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [5, 5, 13],
|
||||
"to": [11, 11, 16],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"east": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"south": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"west": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "rotation": 180, "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "rotation": 180, "texture": "#cone"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 5, 5],
|
||||
"to": [3, 11, 11],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [9, 0, 6, 6], "texture": "#cone"},
|
||||
"east": {"uv": [9, 0, 15, 6], "texture": "#cone"},
|
||||
"south": {"uv": [6, 0, 9, 6], "texture": "#cone"},
|
||||
"west": {"uv": [0, 0, 6, 6], "texture": "#cone"},
|
||||
"up": {"uv": [0, 6, 6, 9], "rotation": 270, "texture": "#cone"},
|
||||
"down": {"uv": [0, 9, 6, 6], "rotation": 90, "texture": "#cone"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-horizontal",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.advanced"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-vertical",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.advanced"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-horizontal",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.basic"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-vertical",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.basic"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-horizontal",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.superior"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "warpdrive:block/detection/siren_military-vertical",
|
||||
"textures": {
|
||||
"cone": "warpdrive:blocks/detection/siren_military.superior"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 455 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 464 B |