More dice

This commit is contained in:
Andrew-71 2023-08-04 22:58:04 +03:00
parent ecd4981dd1
commit 80427fa3a2
81 changed files with 1619 additions and 7 deletions

View file

@ -16,6 +16,7 @@ import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.random.Random;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.util.shape.VoxelShapes;
@ -112,7 +113,8 @@ public class LandMineBlock extends Block implements Waterloggable {
}
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) {
return SHAPE;
Vec3d vec3d = state.getModelOffset(world, pos);
return SHAPE.offset(vec3d.getX(), vec3d.getY(), vec3d.getZ());
}
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {