diff --git a/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java b/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java index 1ba0c7ab3..bccd6b282 100644 --- a/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java +++ b/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java @@ -2,6 +2,7 @@ package net.mcreator.superbwarfare.block; import net.mcreator.superbwarfare.block.menu.ReforgingTableMenu; import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; import net.minecraft.network.chat.Component; import net.minecraft.stats.Stats; import net.minecraft.world.InteractionHand; @@ -10,22 +11,30 @@ import net.minecraft.world.MenuProvider; import net.minecraft.world.SimpleMenuProvider; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.ContainerLevelAccess; +import net.minecraft.world.item.context.BlockPlaceContext; +import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; -import net.minecraft.world.level.block.Block; -import net.minecraft.world.level.block.SoundType; +import net.minecraft.world.level.block.*; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; +import net.minecraft.world.level.block.state.StateDefinition; +import net.minecraft.world.level.block.state.properties.DirectionProperty; import net.minecraft.world.level.block.state.properties.NoteBlockInstrument; import net.minecraft.world.phys.BlockHitResult; +import net.minecraft.world.phys.shapes.CollisionContext; +import net.minecraft.world.phys.shapes.Shapes; +import net.minecraft.world.phys.shapes.VoxelShape; import javax.annotation.Nullable; @SuppressWarnings("deprecation") public class ReforgingTableBlock extends Block { + public static final DirectionProperty FACING = HorizontalDirectionalBlock.FACING; private static final Component CONTAINER_TITLE = Component.translatable("container.superbwarfare.reforging_table"); public ReforgingTableBlock() { super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(2f)); + this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH)); } public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) { @@ -38,6 +47,41 @@ public class ReforgingTableBlock extends Block { } } + @Override + protected void createBlockStateDefinition(StateDefinition.Builder builder) { + builder.add(FACING); + } + + @Override + public boolean propagatesSkylightDown(BlockState state, BlockGetter reader, BlockPos pos) { + return true; + } + + @Override + public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) { + return Shapes.empty(); + } + + @Override + public BlockState getStateForPlacement(BlockPlaceContext context) { + return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()); + } + + public BlockState rotate(BlockState state, Rotation rot) { + return state.setValue(FACING, rot.rotate(state.getValue(FACING))); + } + + public BlockState mirror(BlockState state, Mirror mirrorIn) { + return state.rotate(mirrorIn.getRotation(state.getValue(FACING))); + } + + @Override + public VoxelShape getShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) { + return Shapes.or(box(0, 0, 0, 16, 1, 16), + box(1, 1, 1, 15, 3, 15), + box(6.5, 4, 5, 9.5, 16.6, 11)); + } + @Override @Nullable public MenuProvider getMenuProvider(BlockState pState, Level pLevel, BlockPos pPos) { diff --git a/src/main/resources/assets/superbwarfare/blockstates/reforging_table.json b/src/main/resources/assets/superbwarfare/blockstates/reforging_table.json new file mode 100644 index 000000000..3693e99a6 --- /dev/null +++ b/src/main/resources/assets/superbwarfare/blockstates/reforging_table.json @@ -0,0 +1,19 @@ +{ + "variants": { + "facing=north": { + "model": "superbwarfare:block/reforging_table" + }, + "facing=east": { + "model": "superbwarfare:block/reforging_table", + "y": 90 + }, + "facing=south": { + "model": "superbwarfare:block/reforging_table", + "y": 180 + }, + "facing=west": { + "model": "superbwarfare:block/reforging_table", + "y": 270 + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/superbwarfare/models/block/reforging_table.json b/src/main/resources/assets/superbwarfare/models/block/reforging_table.json new file mode 100644 index 000000000..e5d6d25b5 --- /dev/null +++ b/src/main/resources/assets/superbwarfare/models/block/reforging_table.json @@ -0,0 +1,520 @@ +{ + "credit": "Made with Blockbench", + "texture_size": [64, 64], + "textures": { + "0": "superbwarfare:block/reforging_table", + "particle": "block/smooth_stone" + }, + "elements": [ + { + "from": [5, 4, 6.5], + "to": [11, 15, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 2.5, 8]}, + "faces": { + "north": {"uv": [5.5, 3.5, 7, 6.25], "texture": "#0"}, + "east": {"uv": [6, 6.25, 6.75, 9], "texture": "#0"}, + "south": {"uv": [5.5, 3.5, 7, 6.25], "texture": "#0"}, + "west": {"uv": [6.75, 6.25, 7.5, 9], "texture": "#0"}, + "down": {"uv": [8.5, 5.5, 7, 6.25], "texture": "#0"} + } + }, + { + "from": [6.48959, 17.73223, 6.50195], + "to": [7.98959, 18.73223, 9.49805], + "rotation": {"angle": -45, "axis": "z", "origin": [4.98959, 13.23223, 7.99805]}, + "faces": { + "north": {"uv": [0, 8.5, 0.375, 8.75], "texture": "#0"}, + "south": {"uv": [0.5, 8.5, 0.875, 8.75], "texture": "#0"}, + "up": {"uv": [8.375, 8, 8, 7.25], "texture": "#0"} + } + }, + { + "from": [7.66874, 14.90738, 6.50195], + "to": [10.16874, 15.90738, 9.49805], + "rotation": {"angle": 22.5, "axis": "z", "origin": [9.66874, 15.40738, 7.99805]}, + "faces": { + "north": {"uv": [8.25, 2, 8.875, 2.25], "texture": "#0"}, + "south": {"uv": [4.25, 8.25, 4.875, 8.5], "texture": "#0"}, + "up": {"uv": [8.125, 2.25, 7.5, 1.5], "texture": "#0"} + } + }, + { + "from": [6.07392, 16.22351, 6.50195], + "to": [7.27392, 17.52351, 9.49805], + "rotation": {"angle": 45, "axis": "z", "origin": [9.17392, 16.32351, 7.99805]}, + "faces": { + "north": {"uv": [5, 8.25, 5.3125, 8.5625], "texture": "#0"}, + "east": {"uv": [2, 8.25, 2.75, 8.5625], "texture": "#0"}, + "south": {"uv": [5.5, 8.25, 5.8125, 8.5625], "texture": "#0"}, + "up": {"uv": [4.0625, 9, 3.75, 8.25], "texture": "#0"} + } + }, + { + "from": [4.5096, 14.41403, 6.50195], + "to": [5.1596, 16.21403, 9.49805], + "rotation": {"angle": 22.5, "axis": "z", "origin": [4.4096, 17.51403, 7.99805]}, + "faces": { + "north": {"uv": [1, 8.5, 1.1875, 8.9375], "texture": "#0"}, + "east": {"uv": [3, 8, 3.75, 8.4375], "texture": "#0"}, + "south": {"uv": [1.25, 8.5, 1.4375, 8.9375], "texture": "#0"}, + "up": {"uv": [2.9375, 9, 2.75, 8.25], "texture": "#0"} + } + }, + { + "from": [5, 15, 6.50195], + "to": [5.6, 16.6, 9.49805], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 2.5, 7.99805]}, + "faces": { + "north": {"uv": [1.5, 8.5, 1.625, 8.875], "texture": "#0"}, + "south": {"uv": [1.75, 8.5, 1.875, 8.875], "texture": "#0"}, + "west": {"uv": [8, 6.75, 8.75, 7.125], "texture": "#0"}, + "up": {"uv": [8.375, 9, 8.25, 8.25], "texture": "#0"} + } + }, + { + "from": [2, 2.5, 8.075], + "to": [3, 2.75, 8.325], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [8, 8.75, 8.25, 8.8125], "texture": "#0"}, + "south": {"uv": [0.5, 9, 0.75, 9.0625], "texture": "#0"}, + "up": {"uv": [1.75, 9.0625, 1.5, 9], "texture": "#0"} + } + }, + { + "from": [2, 2.5, 6.475], + "to": [4.25, 2.75, 6.725], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [3, 8.5, 3.5625, 8.5625], "texture": "#0"}, + "south": {"uv": [4.25, 8.5, 4.8125, 8.5625], "texture": "#0"}, + "up": {"uv": [9.0625, 5.5625, 8.5, 5.5], "texture": "#0"} + } + }, + { + "from": [11.75, 2.5, 9.125], + "to": [14, 2.75, 9.375], + "rotation": {"angle": 0, "axis": "y", "origin": [12.875, 2.625, 9.25]}, + "faces": { + "north": {"uv": [8.5, 5.75, 9.0625, 5.8125], "texture": "#0"}, + "south": {"uv": [8.5, 6, 9.0625, 6.0625], "texture": "#0"}, + "up": {"uv": [9.0625, 7.3125, 8.5, 7.25], "texture": "#0"} + } + }, + { + "from": [8.25, 2.5, 11.875], + "to": [8.5, 2.75, 14.125], + "rotation": {"angle": 0, "axis": "y", "origin": [8.375, 2.625, 13]}, + "faces": { + "east": {"uv": [8.5, 7.5, 9.0625, 7.5625], "texture": "#0"}, + "west": {"uv": [8.5, 7.75, 9.0625, 7.8125], "texture": "#0"}, + "up": {"uv": [8.5625, 8.8125, 8.5, 8.25], "texture": "#0"} + } + }, + { + "from": [7.5, 2.5, 11.875], + "to": [7.75, 2.75, 14.125], + "rotation": {"angle": 0, "axis": "y", "origin": [7.625, 2.625, 13]}, + "faces": { + "east": {"uv": [0, 8.75, 0.5625, 8.8125], "texture": "#0"}, + "west": {"uv": [2, 8.75, 2.5625, 8.8125], "texture": "#0"}, + "up": {"uv": [0.8125, 9.3125, 0.75, 8.75], "texture": "#0"} + } + }, + { + "from": [7.625, 2.5, 1.96953], + "to": [8.375, 2.75, 4.01953], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 2.625, 2.99453]}, + "faces": { + "east": {"uv": [3, 8.75, 3.5, 8.8125], "texture": "#0"}, + "west": {"uv": [4.25, 8.75, 4.75, 8.8125], "texture": "#0"}, + "up": {"uv": [8.1875, 8.75, 8, 8.25], "texture": "#0"} + } + }, + { + "from": [3.36627, 2.5, 8.24731], + "to": [4.36627, 2.75, 8.49731], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [1.75, 9, 2, 9.0625], "texture": "#0"}, + "south": {"uv": [2, 9, 2.25, 9.0625], "texture": "#0"}, + "up": {"uv": [9.25, 2.0625, 9, 2], "texture": "#0"} + } + }, + { + "from": [2, 2.5, 7.325], + "to": [2.75, 2.75, 7.575], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [6.25, 9, 6.4375, 9.0625], "texture": "#0"}, + "south": {"uv": [6.5, 9, 6.6875, 9.0625], "texture": "#0"}, + "up": {"uv": [6.9375, 9.0625, 6.75, 9], "texture": "#0"} + } + }, + { + "from": [3.11627, 2.5, 7.15269], + "to": [4.11627, 2.75, 7.40269], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [2.25, 9, 2.5, 9.0625], "texture": "#0"}, + "south": {"uv": [2.5, 9, 2.75, 9.0625], "texture": "#0"}, + "up": {"uv": [3, 9.0625, 2.75, 9], "texture": "#0"} + } + }, + { + "from": [2.95622, 2.5, 7.21857], + "to": [3.45622, 2.75, 7.46857], + "rotation": {"angle": 22.5, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [9.25, 2, 9.375, 2.0625], "texture": "#0"}, + "south": {"uv": [2.25, 9.25, 2.375, 9.3125], "texture": "#0"}, + "up": {"uv": [2.625, 9.3125, 2.5, 9.25], "texture": "#0"}, + "down": {"uv": [2.875, 9.25, 2.75, 9.3125], "texture": "#0"} + } + }, + { + "from": [6.76684, 2.5, 12.04453], + "to": [7.01684, 2.75, 13.04453], + "rotation": {"angle": 0, "axis": "y", "origin": [6.12937, 2.625, 13.04017]}, + "faces": { + "north": {"uv": [8, 9.25, 8.0625, 9.3125], "texture": "#0"}, + "east": {"uv": [3, 9, 3.25, 9.0625], "texture": "#0"}, + "west": {"uv": [3.25, 9, 3.5, 9.0625], "texture": "#0"}, + "up": {"uv": [3.5625, 9.25, 3.5, 9], "texture": "#0"} + } + }, + { + "from": [6.70096, 2.5, 12.70458], + "to": [6.95096, 2.75, 13.20458], + "rotation": {"angle": -22.5, "axis": "y", "origin": [6.12937, 2.625, 13.04017]}, + "faces": { + "east": {"uv": [3, 9.25, 3.125, 9.3125], "texture": "#0"}, + "west": {"uv": [3.25, 9.25, 3.375, 9.3125], "texture": "#0"}, + "up": {"uv": [3.5625, 9.375, 3.5, 9.25], "texture": "#0"}, + "down": {"uv": [3.8125, 9.25, 3.75, 9.375], "texture": "#0"} + } + }, + { + "from": [6.59453, 2.5, 13.4108], + "to": [6.84453, 2.75, 14.1608], + "rotation": {"angle": 0, "axis": "y", "origin": [6.12937, 2.625, 13.04017]}, + "faces": { + "east": {"uv": [7, 9, 7.1875, 9.0625], "texture": "#0"}, + "west": {"uv": [7.25, 9, 7.4375, 9.0625], "texture": "#0"}, + "up": {"uv": [8.0625, 9.1875, 8, 9], "texture": "#0"} + } + }, + { + "from": [13.11627, 2.5, 8.05269], + "to": [14.11627, 2.75, 8.30269], + "rotation": {"angle": 0, "axis": "y", "origin": [13.12063, 2.625, 8.94017]}, + "faces": { + "north": {"uv": [3.75, 9, 4, 9.0625], "texture": "#0"}, + "south": {"uv": [4, 9, 4.25, 9.0625], "texture": "#0"}, + "up": {"uv": [4.5, 9.0625, 4.25, 9], "texture": "#0"} + } + }, + { + "from": [12.95622, 2.5, 8.11857], + "to": [13.45622, 2.75, 8.36857], + "rotation": {"angle": 22.5, "axis": "y", "origin": [13.12063, 2.625, 8.94017]}, + "faces": { + "north": {"uv": [4, 9.25, 4.125, 9.3125], "texture": "#0"}, + "south": {"uv": [4.25, 9.25, 4.375, 9.3125], "texture": "#0"}, + "up": {"uv": [4.625, 9.3125, 4.5, 9.25], "texture": "#0"}, + "down": {"uv": [4.875, 9.25, 4.75, 9.3125], "texture": "#0"} + } + }, + { + "from": [12, 2.5, 8.225], + "to": [12.75, 2.75, 8.475], + "rotation": {"angle": 0, "axis": "y", "origin": [13.12063, 2.625, 8.94017]}, + "faces": { + "north": {"uv": [8.25, 9, 8.4375, 9.0625], "texture": "#0"}, + "south": {"uv": [8.5, 9, 8.6875, 9.0625], "texture": "#0"}, + "up": {"uv": [8.9375, 9.0625, 8.75, 9], "texture": "#0"} + } + }, + { + "from": [3.02251, 2.5, 8.11851], + "to": [3.52251, 2.75, 8.36851], + "rotation": {"angle": -22.5, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [5, 9.25, 5.125, 9.3125], "texture": "#0"}, + "south": {"uv": [5.25, 9.25, 5.375, 9.3125], "texture": "#0"}, + "up": {"uv": [5.625, 9.3125, 5.5, 9.25], "texture": "#0"}, + "down": {"uv": [9.375, 5.5, 9.25, 5.5625], "texture": "#0"} + } + }, + { + "from": [11.63373, 2.5, 6.20269], + "to": [12.63373, 2.75, 6.45269], + "rotation": {"angle": 0, "axis": "y", "origin": [12.87937, 2.625, 6.65983]}, + "faces": { + "north": {"uv": [4.5, 9, 4.75, 9.0625], "texture": "#0"}, + "south": {"uv": [4.75, 9, 5, 9.0625], "texture": "#0"}, + "up": {"uv": [5.25, 9.0625, 5, 9], "texture": "#0"} + } + }, + { + "from": [13, 2.5, 6.375], + "to": [14, 2.75, 6.625], + "rotation": {"angle": 0, "axis": "y", "origin": [12.87937, 2.625, 6.65983]}, + "faces": { + "north": {"uv": [5.25, 9, 5.5, 9.0625], "texture": "#0"}, + "south": {"uv": [5.5, 9, 5.75, 9.0625], "texture": "#0"}, + "up": {"uv": [6.25, 9.0625, 6, 9], "texture": "#0"} + } + }, + { + "from": [12.47749, 2.5, 6.33149], + "to": [12.97749, 2.75, 6.58149], + "rotation": {"angle": -22.5, "axis": "y", "origin": [12.87937, 2.625, 6.65983]}, + "faces": { + "north": {"uv": [5.75, 9.25, 5.875, 9.3125], "texture": "#0"}, + "south": {"uv": [9.25, 5.75, 9.375, 5.8125], "texture": "#0"}, + "up": {"uv": [6.125, 9.3125, 6, 9.25], "texture": "#0"}, + "down": {"uv": [9.375, 6, 9.25, 6.0625], "texture": "#0"} + } + }, + { + "from": [3.25, 2.5, 9.075], + "to": [4, 2.75, 9.325], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [9, 9, 9.1875, 9.0625], "texture": "#0"}, + "south": {"uv": [0, 9.25, 0.1875, 9.3125], "texture": "#0"}, + "up": {"uv": [0.4375, 9.3125, 0.25, 9.25], "texture": "#0"} + } + }, + { + "from": [1.82322, 2.5, 9.35533], + "to": [3.07322, 2.75, 9.60533], + "rotation": {"angle": 0, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [5.25, 8.75, 5.5625, 8.8125], "texture": "#0"}, + "south": {"uv": [8.75, 6.75, 9.0625, 6.8125], "texture": "#0"}, + "up": {"uv": [9.0625, 7.0625, 8.75, 7], "texture": "#0"} + } + }, + { + "from": [1.98037, 2.5, 8.86338], + "to": [2.48037, 2.75, 9.11338], + "rotation": {"angle": 45, "axis": "y", "origin": [3.12063, 2.625, 8.04017]}, + "faces": { + "north": {"uv": [6.25, 9.25, 6.375, 9.3125], "texture": "#0"}, + "south": {"uv": [6.5, 9.25, 6.625, 9.3125], "texture": "#0"}, + "up": {"uv": [6.875, 9.3125, 6.75, 9.25], "texture": "#0"}, + "down": {"uv": [9.375, 6.75, 9.25, 6.8125], "texture": "#0"} + } + }, + { + "from": [8.90547, 2.5, 11.9108], + "to": [9.15547, 2.75, 12.6608], + "rotation": {"angle": 0, "axis": "y", "origin": [9.17063, 2.625, 12.87419]}, + "faces": { + "east": {"uv": [0.5, 9.25, 0.6875, 9.3125], "texture": "#0"}, + "west": {"uv": [1, 9.25, 1.1875, 9.3125], "texture": "#0"}, + "up": {"uv": [1.3125, 9.4375, 1.25, 9.25], "texture": "#0"} + } + }, + { + "from": [9.13402, 2.5, 12.5358], + "to": [9.38402, 2.75, 13.0358], + "rotation": {"angle": 45, "axis": "y", "origin": [9.17063, 2.625, 12.87419]}, + "faces": { + "east": {"uv": [7, 9.25, 7.125, 9.3125], "texture": "#0"}, + "west": {"uv": [9.25, 7, 9.375, 7.0625], "texture": "#0"}, + "up": {"uv": [7.3125, 9.375, 7.25, 9.25], "texture": "#0"}, + "down": {"uv": [9.3125, 7.25, 9.25, 7.375], "texture": "#0"} + } + }, + { + "from": [9.1858, 2.5, 12.83758], + "to": [9.4358, 2.75, 14.08758], + "rotation": {"angle": 0, "axis": "y", "origin": [9.17063, 2.625, 12.87419]}, + "faces": { + "east": {"uv": [8.75, 8.25, 9.0625, 8.3125], "texture": "#0"}, + "west": {"uv": [8.75, 8.5, 9.0625, 8.5625], "texture": "#0"}, + "up": {"uv": [5.8125, 9.0625, 5.75, 8.75], "texture": "#0"} + } + }, + { + "from": [13.25, 2.5, 7.075], + "to": [14, 2.75, 7.325], + "rotation": {"angle": 0, "axis": "y", "origin": [13.12063, 2.625, 6.04017]}, + "faces": { + "north": {"uv": [1.5, 9.25, 1.6875, 9.3125], "texture": "#0"}, + "south": {"uv": [1.75, 9.25, 1.9375, 9.3125], "texture": "#0"}, + "up": {"uv": [2.1875, 9.3125, 2, 9.25], "texture": "#0"} + } + }, + { + "from": [11.98037, 2.5, 6.86338], + "to": [12.48037, 2.75, 7.11338], + "rotation": {"angle": 45, "axis": "y", "origin": [13.12063, 2.625, 6.04017]}, + "faces": { + "north": {"uv": [7.5, 9.25, 7.625, 9.3125], "texture": "#0"}, + "south": {"uv": [9.25, 7.5, 9.375, 7.5625], "texture": "#0"}, + "up": {"uv": [7.875, 9.3125, 7.75, 9.25], "texture": "#0"}, + "down": {"uv": [9.375, 7.75, 9.25, 7.8125], "texture": "#0"} + } + }, + { + "from": [11.82322, 2.5, 7.35533], + "to": [13.07322, 2.75, 7.60533], + "rotation": {"angle": 0, "axis": "y", "origin": [13.12063, 2.625, 6.04017]}, + "faces": { + "north": {"uv": [8.75, 8.75, 9.0625, 8.8125], "texture": "#0"}, + "south": {"uv": [0, 9, 0.3125, 9.0625], "texture": "#0"}, + "up": {"uv": [1.3125, 9.0625, 1, 9], "texture": "#0"} + } + }, + { + "from": [0, 0, 0], + "to": [16, 1, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 8]}, + "faces": { + "north": {"uv": [7.5, 0, 11.5, 0.25], "texture": "#0"}, + "east": {"uv": [7.5, 0.25, 11.5, 0.5], "texture": "#0"}, + "south": {"uv": [7.5, 0.5, 11.5, 0.75], "texture": "#0"}, + "west": {"uv": [7.5, 0.75, 11.5, 1], "texture": "#0"}, + "up": {"uv": [4, 4, 0, 0], "texture": "#0"}, + "down": {"uv": [4, 4, 0, 8], "texture": "#0"} + } + }, + { + "from": [1, 1, 1], + "to": [15, 2.5, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 8]}, + "faces": { + "north": {"uv": [7, 3.5, 10.5, 3.875], "texture": "#0"}, + "east": {"uv": [7, 4, 10.5, 4.375], "texture": "#0"}, + "south": {"uv": [7, 4.5, 10.5, 4.875], "texture": "#0"}, + "west": {"uv": [7, 5, 10.5, 5.375], "texture": "#0"}, + "up": {"uv": [7.5, 3.5, 4, 0], "texture": "#0"} + } + }, + { + "from": [4, 2.5, 4], + "to": [12, 3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 8]}, + "faces": { + "north": {"uv": [8, 8, 10, 8.125], "texture": "#0"}, + "east": {"uv": [0, 8.25, 2, 8.375], "texture": "#0"}, + "south": {"uv": [8.25, 1.5, 10.25, 1.625], "texture": "#0"}, + "west": {"uv": [8.25, 1.75, 10.25, 1.875], "texture": "#0"}, + "up": {"uv": [6, 8.25, 4, 6.25], "texture": "#0"} + } + }, + { + "from": [1, 2.5, 14], + "to": [15, 3, 15], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 21]}, + "faces": { + "north": {"uv": [7.5, 2.25, 11, 2.375], "texture": "#0"}, + "east": {"uv": [3.75, 8, 4, 8.125], "texture": "#0"}, + "south": {"uv": [7.5, 2.5, 11, 2.625], "texture": "#0"}, + "west": {"uv": [3.5, 8.75, 3.75, 8.875], "texture": "#0"}, + "up": {"uv": [11, 1.25, 7.5, 1], "texture": "#0"} + } + }, + { + "from": [14, 2.5, 2], + "to": [15, 3, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [14.5, 3.5, 7]}, + "faces": { + "east": {"uv": [7.5, 3.25, 10.5, 3.375], "texture": "#0"}, + "west": {"uv": [0, 8, 3, 8.125], "texture": "#0"}, + "up": {"uv": [7.75, 9.25, 7.5, 6.25], "texture": "#0"} + } + }, + { + "from": [1, 2.5, 2], + "to": [2, 3, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 3.5, 7]}, + "faces": { + "east": {"uv": [8, 6.25, 11, 6.375], "texture": "#0"}, + "west": {"uv": [8, 6.5, 11, 6.625], "texture": "#0"}, + "up": {"uv": [8, 9.25, 7.75, 6.25], "texture": "#0"} + } + }, + { + "from": [1, 2.5, 1], + "to": [15, 3, 2], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 8]}, + "faces": { + "north": {"uv": [7.5, 2.75, 11, 2.875], "texture": "#0"}, + "east": {"uv": [4.75, 8.75, 5, 8.875], "texture": "#0"}, + "south": {"uv": [7.5, 3, 11, 3.125], "texture": "#0"}, + "west": {"uv": [5, 8.75, 5.25, 8.875], "texture": "#0"}, + "up": {"uv": [11, 1.5, 7.5, 1.25], "texture": "#0"} + } + } + ], + "gui_light": "front", + "display": { + "thirdperson_righthand": { + "translation": [0, 2, -0.5], + "scale": [0.3, 0.3, 0.3] + }, + "thirdperson_lefthand": { + "translation": [0, 2, -0.5], + "scale": [0.3, 0.3, 0.3] + }, + "firstperson_righthand": { + "rotation": [6.16, 21.04, 0.67], + "translation": [0.25, 3.75, 0], + "scale": [0.7, 0.7, 0.7] + }, + "firstperson_lefthand": { + "rotation": [6.16, 21.04, 0.67], + "translation": [0.25, 3.75, 0], + "scale": [0.7, 0.7, 0.7] + }, + "ground": { + "translation": [0, 0.75, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [45, -45, 0], + "translation": [0, 2, 0], + "scale": [0.69, 0.69, 0.69] + }, + "head": { + "translation": [0, 14.25, 0] + }, + "fixed": { + "rotation": [-90, 0, 0], + "translation": [0, 0, -6.5] + } + }, + "groups": [ + { + "name": "group", + "origin": [8, 1, 8], + "color": 6, + "children": [ + { + "name": "group", + "origin": [8, 2.5, 7.99805], + "color": 0, + "children": [0, 1, 2, 3, 4, 5] + }, + { + "name": "group", + "origin": [8, 1, 8], + "color": 0, + "children": [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34] + }, + 35, + 36, + 37, + 38, + 39, + 40, + 41 + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/superbwarfare/models/item/reforging_table.json b/src/main/resources/assets/superbwarfare/models/item/reforging_table.json new file mode 100644 index 000000000..23f59e9b4 --- /dev/null +++ b/src/main/resources/assets/superbwarfare/models/item/reforging_table.json @@ -0,0 +1,3 @@ +{ + "parent": "superbwarfare:block/reforging_table" +} \ No newline at end of file diff --git a/src/main/resources/assets/superbwarfare/textures/block/reforging_table.png b/src/main/resources/assets/superbwarfare/textures/block/reforging_table.png new file mode 100644 index 000000000..c62a12219 Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/block/reforging_table.png differ