From c1d7208ae832d04173d270e963a15942ef400de8 Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Fri, 29 Sep 2023 13:18:16 +0300 Subject: [PATCH] Add concrete with bars functionality and other minor improvements --- .../su/a71/new_soviet/NewSovietClient.java | 8 ++- .../blocks/ConcreteWithBarsBlock.java | 59 ++++++++++++++++--- .../a71/new_soviet/blocks/LandMineBlock.java | 28 ++++----- .../blockstates/beige_concrete_with_bars.json | 14 +++-- .../blockstates/blue_concrete_with_bars.json | 12 ++-- .../blockstates/green_concrete_with_bars.json | 14 +++-- .../blockstates/red_concrete_with_bars.json | 14 +++-- .../blockstates/white_concrete_with_bars.json | 14 +++-- .../yellow_concrete_with_bars.json | 14 +++-- .../models/block/golden_table_lamp.json | 8 ++- .../new_soviet/models/block/lamp_post.json | 37 +++--------- .../new_soviet/models/block/lamp_post_2.json | 37 +++--------- .../new_soviet/models/block/lamp_post_3.json | 36 +++-------- .../new_soviet/models/block/lamp_post_4.json | 24 +++++++- .../new_soviet/models/block/vintage_lamp.json | 33 ++++++++++- 15 files changed, 212 insertions(+), 140 deletions(-) diff --git a/src/client/java/su/a71/new_soviet/NewSovietClient.java b/src/client/java/su/a71/new_soviet/NewSovietClient.java index 7e70a06..6c96871 100644 --- a/src/client/java/su/a71/new_soviet/NewSovietClient.java +++ b/src/client/java/su/a71/new_soviet/NewSovietClient.java @@ -21,12 +21,18 @@ public class NewSovietClient implements ClientModInitializer { BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.VINTAGE_LAMP, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.CEILING_FAN, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.SIREN, RenderLayer.getCutout()); - BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.CAGED_POST_LAMP, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.MODERN_POST_LAMP, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.BIG_POST_LAMP, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.VINTAGE_POST_LAMP, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.RED_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.GREEN_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.WHITE_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.BEIGE_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.YELLOW_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockRenderLayerMap.INSTANCE.putBlock(NSE_Blocks.BLUE_CONCRETE_WITH_BARS, RenderLayer.getCutout()); + BlockEntityRendererRegistry.register(NSE_Custom.TV_BLOCK_ENTITY, TVBlockEntityRenderer::new); } } \ No newline at end of file diff --git a/src/main/java/su/a71/new_soviet/blocks/ConcreteWithBarsBlock.java b/src/main/java/su/a71/new_soviet/blocks/ConcreteWithBarsBlock.java index e7552c9..858330a 100644 --- a/src/main/java/su/a71/new_soviet/blocks/ConcreteWithBarsBlock.java +++ b/src/main/java/su/a71/new_soviet/blocks/ConcreteWithBarsBlock.java @@ -1,26 +1,71 @@ package su.a71.new_soviet.blocks; -import net.minecraft.block.Block; -import net.minecraft.block.BlockState; -import net.minecraft.block.HorizontalFacingBlock; +import net.minecraft.block.*; +import net.minecraft.block.enums.Thickness; +import net.minecraft.entity.Entity; +import net.minecraft.fluid.FluidState; +import net.minecraft.fluid.Fluids; import net.minecraft.item.ItemPlacementContext; import net.minecraft.state.StateManager; +import net.minecraft.state.property.BooleanProperty; +import net.minecraft.state.property.DirectionProperty; import net.minecraft.state.property.Properties; +import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; +import net.minecraft.world.World; +import net.minecraft.world.WorldAccess; +import net.minecraft.world.WorldView; +import org.jetbrains.annotations.Nullable; + +public class ConcreteWithBarsBlock extends HorizontalFacingBlock implements Waterloggable { + public static final DirectionProperty VERTICAL_DIRECTION; + public static final BooleanProperty WATERLOGGED; -public class ConcreteWithBarsBlock extends HorizontalFacingBlock { public ConcreteWithBarsBlock(Settings settings) { super(settings); - setDefaultState(getDefaultState().with(Properties.HORIZONTAL_FACING, Direction.NORTH)); + setDefaultState(getDefaultState() + .with(Properties.HORIZONTAL_FACING, Direction.NORTH) + .with(VERTICAL_DIRECTION, Direction.UP) + .with(WATERLOGGED, false)); } @Override protected void appendProperties(StateManager.Builder builder) { - builder.add(Properties.HORIZONTAL_FACING); + builder.add(Properties.HORIZONTAL_FACING, VERTICAL_DIRECTION, WATERLOGGED); } @Override public BlockState getPlacementState(ItemPlacementContext ctx) { - return super.getPlacementState(ctx).with(Properties.HORIZONTAL_FACING, ctx.getHorizontalPlayerFacing().getOpposite()); + FluidState fluidState = ctx.getWorld().getFluidState(ctx.getBlockPos()); + + return super.getPlacementState(ctx) + .with(Properties.HORIZONTAL_FACING, ctx.getHorizontalPlayerFacing().getOpposite()) + .with(VERTICAL_DIRECTION, ctx.getVerticalPlayerLookDirection().getOpposite()) + .with(WATERLOGGED, fluidState.getFluid() == Fluids.WATER); + } + + public void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) { + if (state.get(VERTICAL_DIRECTION) == Direction.UP) { + entity.handleFallDamage(fallDistance + 2.0F, 2.0F, world.getDamageSources().stalagmite()); + } else { + super.onLandedUpon(world, state, pos, entity, fallDistance); + } + } + + @Override + public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) { + if (state.get(WATERLOGGED)) { + world.scheduleFluidTick(pos, Fluids.WATER, Fluids.WATER.getTickRate(world)); + } + return super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos); + } + + public FluidState getFluidState(BlockState state) { + return state.get(WATERLOGGED) ? Fluids.WATER.getStill(false) : super.getFluidState(state); + } + + static { + VERTICAL_DIRECTION = Properties.VERTICAL_DIRECTION; + WATERLOGGED = Properties.WATERLOGGED; } } diff --git a/src/main/java/su/a71/new_soviet/blocks/LandMineBlock.java b/src/main/java/su/a71/new_soviet/blocks/LandMineBlock.java index db1444a..9038033 100644 --- a/src/main/java/su/a71/new_soviet/blocks/LandMineBlock.java +++ b/src/main/java/su/a71/new_soviet/blocks/LandMineBlock.java @@ -30,6 +30,7 @@ import su.a71.new_soviet.NewSoviet; public class LandMineBlock extends HorizontalFacingBlock implements Waterloggable { public static final BooleanProperty WATERLOGGED; protected static final VoxelShape SHAPE; + public float explosion_power = 4.0f; public LandMineBlock(Settings settings) { super(settings); @@ -69,34 +70,34 @@ public class LandMineBlock extends HorizontalFacingBlock implements Waterloggabl } } - // We would have a 25% chance of explosion on break with a shovel, but I can't implement brushing yet. + // 20% chance of explosion on break without a shovel public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) { -// if (!world.isClient() && !player.isCreative() && !(player.getHandItems().iterator().next().getItem() instanceof ShovelItem)) { -// if (NewSoviet.RANDOM.nextBetween(1, 4) != 1) { -// explode(world, pos); -// } -// } + if (!world.isClient() && !player.isCreative() && !(player.getHandItems().iterator().next().getItem() instanceof ShovelItem)) { + if (NewSoviet.RANDOM.nextBetween(1, 5) == 1) { + explode(world, pos); + } + } super.onBreak(world, pos, state, player); } - // Only chain explode every 2/3rd of times to nerf instant long range explosions + // Only chain explode every 20% of times to prevent instant&long explosion chains @Override public void onDestroyedByExplosion(World world, BlockPos pos, Explosion explosion) { if (!world.isClient) { - int chance = NewSoviet.RANDOM.nextBetween(0, 2); - if (chance != 0) { + int chance = NewSoviet.RANDOM.nextBetween(1, 5); + if (chance == 1) { explode(world, pos); } } super.onDestroyedByExplosion(world, pos, explosion); } - // Without a shovel, 80% chance of explosion on breaking start + // Without a shovel, 5% chance of explosion on breaking start @Override public void onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player) { if (!world.isClient() && !(player.getHandItems().iterator().next().getItem() instanceof ShovelItem)) { - if (NewSoviet.RANDOM.nextBetween(1, 10) < 2) { + if (NewSoviet.RANDOM.nextBetween(1, 100) < 5) { explode(world, pos); } } @@ -114,8 +115,7 @@ public class LandMineBlock extends HorizontalFacingBlock implements Waterloggabl public void explode(World world, BlockPos pos) { if (world.isClient()) return; world.removeBlock(pos, false); - float f = 4.0F; - world.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), 4.0F, World.ExplosionSourceType.TNT); + world.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), explosion_power, World.ExplosionSourceType.TNT); } @Nullable @@ -152,8 +152,6 @@ public class LandMineBlock extends HorizontalFacingBlock implements Waterloggabl static { SHAPE = Block.createCuboidShape(4, 0, 4, 12, 4, 12); // VoxelShapes.cuboid(0.4, 0, 0.4, 0.6, 0.3, 0.6); // - -// SHAPE = Block.createCuboidShape(5, 0, 5, 11, 3, 11); // VoxelShapes.cuboid(0.4, 0, 0.4, 0.6, 0.3, 0.6); // WATERLOGGED = Properties.WATERLOGGED; } } diff --git a/src/main/resources/assets/new_soviet/blockstates/beige_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/beige_concrete_with_bars.json index 8c68a73..6c0939c 100644 --- a/src/main/resources/assets/new_soviet/blockstates/beige_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/beige_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/beige_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/beige_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/beige_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/beige_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/beige_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/beige_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/beige_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/blockstates/blue_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/blue_concrete_with_bars.json index 5740ba1..becf3a6 100644 --- a/src/main/resources/assets/new_soviet/blockstates/blue_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/blue_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/blue_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/blue_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/blue_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/blue_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/blue_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/blue_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/blue_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } } diff --git a/src/main/resources/assets/new_soviet/blockstates/green_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/green_concrete_with_bars.json index 344a581..3f3f2f8 100644 --- a/src/main/resources/assets/new_soviet/blockstates/green_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/green_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/green_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/green_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/green_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/green_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/green_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/green_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/green_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/green_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/green_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/green_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/green_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/green_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/blockstates/red_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/red_concrete_with_bars.json index 3c56015..4e6e46f 100644 --- a/src/main/resources/assets/new_soviet/blockstates/red_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/red_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/red_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/red_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/red_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/red_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/red_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/red_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/red_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/red_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/red_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/red_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/red_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/red_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/blockstates/white_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/white_concrete_with_bars.json index e36dd75..f9e1030 100644 --- a/src/main/resources/assets/new_soviet/blockstates/white_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/white_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/white_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/white_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/white_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/white_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/white_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/white_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/white_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/white_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/white_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/white_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/white_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/white_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/blockstates/yellow_concrete_with_bars.json b/src/main/resources/assets/new_soviet/blockstates/yellow_concrete_with_bars.json index 465848f..261e42a 100644 --- a/src/main/resources/assets/new_soviet/blockstates/yellow_concrete_with_bars.json +++ b/src/main/resources/assets/new_soviet/blockstates/yellow_concrete_with_bars.json @@ -1,8 +1,12 @@ { "variants": { - "facing=north": { "model": "new_soviet:block/yellow_concrete_with_bars", "uvlock": true }, - "facing=east": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 90, "uvlock": false }, - "facing=south": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 180, "uvlock": false }, - "facing=west": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 270, "uvlock": false } + "facing=north,vertical_direction=up": { "model": "new_soviet:block/yellow_concrete_with_bars", "uvlock": false }, + "facing=east,vertical_direction=up": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 90, "uvlock": false }, + "facing=south,vertical_direction=up": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 180, "uvlock": false }, + "facing=west,vertical_direction=up": { "model": "new_soviet:block/yellow_concrete_with_bars", "y": 270, "uvlock": false }, + "facing=north,vertical_direction=down": { "model": "new_soviet:block/yellow_concrete_with_bars", "x": 180, "uvlock": false }, + "facing=east,vertical_direction=down": { "model": "new_soviet:block/yellow_concrete_with_bars", "x": 180, "y": 90, "uvlock": false }, + "facing=south,vertical_direction=down": { "model": "new_soviet:block/yellow_concrete_with_bars", "x": 180, "y": 180, "uvlock": false }, + "facing=west,vertical_direction=down": { "model": "new_soviet:block/yellow_concrete_with_bars", "x": 180, "y": 270, "uvlock": false } } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/models/block/golden_table_lamp.json b/src/main/resources/assets/new_soviet/models/block/golden_table_lamp.json index 2567518..f9ce546 100644 --- a/src/main/resources/assets/new_soviet/models/block/golden_table_lamp.json +++ b/src/main/resources/assets/new_soviet/models/block/golden_table_lamp.json @@ -241,12 +241,17 @@ } } ], + "display": { + "gui": { + "rotation": [30, 225, 0], + "translation": [-0.5, 1.5, 0] + } + }, "groups": [ { "name": "group", "origin": [8, 0, 8], "color": 0, - "nbt": "{}", "children": [ 0, 1, @@ -261,7 +266,6 @@ "name": "group", "origin": [8, 8, 8], "color": 0, - "nbt": "{}", "children": [9, 10, 11, 12, 13, 14, 15, 16, 17] } ] diff --git a/src/main/resources/assets/new_soviet/models/block/lamp_post.json b/src/main/resources/assets/new_soviet/models/block/lamp_post.json index 60bfa59..a768424 100644 --- a/src/main/resources/assets/new_soviet/models/block/lamp_post.json +++ b/src/main/resources/assets/new_soviet/models/block/lamp_post.json @@ -112,42 +112,24 @@ ], "display": { "thirdperson_righthand": { - "rotation": [75, 45, 0], - "translation": [0, -0.5, 0], - "scale": [0.375, 0.375, 0.375] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "thirdperson_lefthand": { - "rotation": [75, 45, 0], - "translation": [0, -0.5, 0], - "scale": [0.375, 0.375, 0.375] - }, - "firstperson_righthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] - }, - "firstperson_lefthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "ground": { - "translation": [0, -1.75, 0], - "scale": [0.25, 0.25, 0.25] + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] }, "gui": { "rotation": [30, 225, 0], - "translation": [-2.5, 1.5, 0], - "scale": [0.625, 0.625, 0.625] + "translation": [-3.5, 1, 0], + "scale": [0.8, 0.8, 0.8] }, "head": { - "rotation": [85, -180, 90], - "translation": [-7, 22.5, 8] - }, - "fixed": { - "rotation": [-90, 0, 0], - "translation": [0, 0, -16], - "scale": [2, 2, 2] + "translation": [0, 11, 0] } }, "groups": [ @@ -155,7 +137,6 @@ "name": "group", "origin": [0, 0, 0], "color": 0, - "nbt": "{}", "children": [0, 1, 2, 3, 4, 5] }, 6, diff --git a/src/main/resources/assets/new_soviet/models/block/lamp_post_2.json b/src/main/resources/assets/new_soviet/models/block/lamp_post_2.json index 10259fc..628c311 100644 --- a/src/main/resources/assets/new_soviet/models/block/lamp_post_2.json +++ b/src/main/resources/assets/new_soviet/models/block/lamp_post_2.json @@ -91,42 +91,24 @@ ], "display": { "thirdperson_righthand": { - "rotation": [75, 45, 0], - "translation": [0, -0.5, 0], - "scale": [0.375, 0.375, 0.375] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "thirdperson_lefthand": { - "rotation": [75, 45, 0], - "translation": [0, -0.5, 0], - "scale": [0.375, 0.375, 0.375] - }, - "firstperson_righthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] - }, - "firstperson_lefthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "ground": { - "translation": [0, -1, 0], - "scale": [0.25, 0.25, 0.25] + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] }, "gui": { "rotation": [30, 225, 0], - "translation": [-2.5, 1.5, 0], - "scale": [0.625, 0.625, 0.625] + "translation": [-3.5, 1, 0], + "scale": [0.8, 0.8, 0.8] }, "head": { - "rotation": [75, -180, 90], - "translation": [-7, 22.5, 8] - }, - "fixed": { - "rotation": [-90, 0, 0], - "translation": [0, 0, -16], - "scale": [2, 2, 2] + "translation": [0, 11, 0] } }, "groups": [ @@ -134,7 +116,6 @@ "name": "group", "origin": [0, 0, 0], "color": 0, - "nbt": "{}", "children": [0, 1, 2, 3] }, 4, diff --git a/src/main/resources/assets/new_soviet/models/block/lamp_post_3.json b/src/main/resources/assets/new_soviet/models/block/lamp_post_3.json index eb98a13..65422cf 100644 --- a/src/main/resources/assets/new_soviet/models/block/lamp_post_3.json +++ b/src/main/resources/assets/new_soviet/models/block/lamp_post_3.json @@ -63,41 +63,24 @@ ], "display": { "thirdperson_righthand": { - "rotation": [75, 45, 0], - "translation": [0, 1, 0], - "scale": [0.375, 0.375, 0.375] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "thirdperson_lefthand": { - "rotation": [75, 45, 0], - "translation": [0, 1, 0], - "scale": [0.375, 0.375, 0.375] - }, - "firstperson_righthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] - }, - "firstperson_lefthand": { - "rotation": [0, 45, 0], - "translation": [1.75, 2, 0], - "scale": [0.4, 0.4, 0.4] + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] }, "ground": { - "translation": [0, -2, 0], - "scale": [0.25, 0.25, 0.25] + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] }, "gui": { "rotation": [30, 225, 0], - "scale": [0.625, 0.625, 0.625] + "translation": [0, -1, 0], + "scale": [0.8, 0.8, 0.8] }, "head": { - "rotation": [-90, -180, 0], - "translation": [-7, 22.5, 14.5] - }, - "fixed": { - "rotation": [-90, 0, 0], - "translation": [0, 0, -16], - "scale": [2, 2, 2] + "translation": [0, 11, 0] } }, "groups": [ @@ -105,7 +88,6 @@ "name": "group", "origin": [0, 0, 0], "color": 0, - "nbt": "{}", "children": [0, 1, 2] }, 3, diff --git a/src/main/resources/assets/new_soviet/models/block/lamp_post_4.json b/src/main/resources/assets/new_soviet/models/block/lamp_post_4.json index f5a5686..36f9c8b 100644 --- a/src/main/resources/assets/new_soviet/models/block/lamp_post_4.json +++ b/src/main/resources/assets/new_soviet/models/block/lamp_post_4.json @@ -85,12 +85,33 @@ } } ], + "display": { + "thirdperson_righthand": { + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] + }, + "thirdperson_lefthand": { + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] + }, + "ground": { + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [30, 225, 0], + "translation": [-3.5, 1, 0], + "scale": [0.8, 0.8, 0.8] + }, + "head": { + "translation": [0, 11, 0] + } + }, "groups": [ { "name": "group", "origin": [8, 8, 8], "color": 0, - "nbt": "{}", "children": [ 0, 1, @@ -101,7 +122,6 @@ "name": "group", "origin": [8, 8, 8], "color": 0, - "nbt": "{}", "children": [5, 6] } ] diff --git a/src/main/resources/assets/new_soviet/models/block/vintage_lamp.json b/src/main/resources/assets/new_soviet/models/block/vintage_lamp.json index fce1e05..41ba3d8 100644 --- a/src/main/resources/assets/new_soviet/models/block/vintage_lamp.json +++ b/src/main/resources/assets/new_soviet/models/block/vintage_lamp.json @@ -77,12 +77,43 @@ } } ], + "display": { + "thirdperson_righthand": { + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] + }, + "thirdperson_lefthand": { + "translation": [0, 3, 1], + "scale": [0.55, 0.55, 0.55] + }, + "firstperson_righthand": { + "rotation": [0, -90, 25], + "translation": [1.13, 3.2, 1.13], + "scale": [0.68, 0.68, 0.68] + }, + "firstperson_lefthand": { + "rotation": [0, -90, 25], + "translation": [1.13, 3.2, 1.13], + "scale": [0.68, 0.68, 0.68] + }, + "ground": { + "translation": [0, 2, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [30, 225, 0], + "translation": [0, -1, 0], + "scale": [0.7, 0.7, 0.7] + }, + "fixed": { + "rotation": [0, 180, 0] + } + }, "groups": [ { "name": "head", "origin": [8, 16, 8], "color": 0, - "nbt": "{}", "children": [0, 1, 2, 3, 4] } ]