} else {
item.setAmount(item.getAmount() - 1);
}
}
player.playSound(player.getLocation(), Sound.DIG_STONE, 1.0F, 0.7936508F);
player.updateInventory();
// Now we have placed a nice custom block! We should check its rotation and rotate the base block!
if (cb.canRotate()) {
if (cb.canMirroredRotate() && mirrored) {
if (block.getType() == Material.LEVER || block.getType() == Material.TORCH || block.getType() == Material.STONE_BUTTON || block.getType() == Material.WOOD_BUTTON) {
// The below Types need a slightly different data value to assign correct positioning.