Skip to content

Commit

Permalink
Shrink bobblehead model
Browse files Browse the repository at this point in the history
  • Loading branch information
andersmmg committed May 2, 2024
1 parent 90c8ca4 commit 06ded7a
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
import com.andersmmg.falloutstuff.block.ModBlocks;
import com.andersmmg.falloutstuff.block.entity.BoxBlockEntity;
import com.andersmmg.falloutstuff.block.entity.ModBlockEntities;
import com.andersmmg.falloutstuff.item.ModItems;
import com.andersmmg.falloutstuff.util.VoxelUtils;
import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.block.entity.ShulkerBoxBlockEntity;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.mob.PiglinBrain;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventories;
import net.minecraft.inventory.Inventory;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.item.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import net.minecraft.state.StateManager;
import net.minecraft.state.property.DirectionProperty;
import net.minecraft.state.property.Properties;
import net.minecraft.util.*;
import net.minecraft.util.BlockMirror;
import net.minecraft.util.BlockRotation;
import net.minecraft.util.ItemScatterer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
Expand Down Expand Up @@ -55,7 +57,7 @@ protected static Direction getDirection(BlockState state) {
return state.get(FACING);
}

private static final VoxelShape BOX_SHAPE = Block.createCuboidShape(4, 0, 4, 12, 19, 12);
private static final VoxelShape BOX_SHAPE = Block.createCuboidShape(5, 0, 5, 11, 10, 11);
private static final VoxelShape BOX_SHAPE_SOUTH = VoxelUtils.rotateShape(Direction.NORTH, Direction.SOUTH, BOX_SHAPE);
private static final VoxelShape BOX_SHAPE_EAST = VoxelUtils.rotateShape(Direction.NORTH, Direction.EAST, BOX_SHAPE);
private static final VoxelShape BOX_SHAPE_WEST = VoxelUtils.rotateShape(Direction.NORTH, Direction.WEST, BOX_SHAPE);
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/andersmmg/falloutstuff/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import com.andersmmg.falloutstuff.block.ModBlocks;
import com.andersmmg.falloutstuff.item.custom.NukaColaItem;
import com.andersmmg.falloutstuff.item.custom.StimpakItem;

import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.block.Blocks;
import net.minecraft.item.*;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import net.minecraft.item.Items;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
Expand Down
Loading

0 comments on commit 06ded7a

Please sign in to comment.