package com.ModdingMinecraft.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.world.IBlockReader;
import net.minecraftforge.common.ToolType;
public class BlockTrampoline extends Block {
private static final AxisAlignedBB BOUNDING_BOX = new AxisAlignedBB(0, 0, 0, 1, 0.0625 * 8, 1);
private static final VoxelShape SHAPE = Block.makeCuboidShape(0.0d, 0.0d, 0.0d, 16.0d, 7.0d, 16.0d);
public BlockTrampoline() {
super(Block.Properties.create(Material.WOOL)
.jumpFactor(10)
.sound(SoundType.CLOTH)
.harvestTool(ToolType.AXE)
);
}
@Override
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
return SHAPE;
}
@Override
public boolean isSlimeBlock(BlockState state) {
return true;
}
}
I put isSlimeBlock return true but it didn't work. Is there another command I'm supposed to be using?