package net.darkhax.darkutils.features.dyeslime;

import java.util.List;

import net.minecraft.block.BlockSlime;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class BlockSlimeDyed extends BlockSlime {

    public static final PropertyEnum<EnumDyeColor> COLOR = PropertyEnum.<EnumDyeColor> create("color", EnumDyeColor.class);

    public BlockSlimeDyed () {

        this.setDefaultState(this.blockState.getBaseState().withProperty(COLOR, EnumDyeColor.WHITE));
        this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
    }

    @Override
    public int damageDropped (IBlockState state) {

        return state.getValue(COLOR).getMetadata();
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void getSubBlocks (Item itemIn, CreativeTabs tab, List<ItemStack> list) {

        for (final EnumDyeColor enumdyecolor : EnumDyeColor.values())
            list.add(new ItemStack(itemIn, 1, enumdyecolor.getMetadata()));
    }

    @Override
    public MapColor getMapColor (IBlockState state) {

        return state.getValue(COLOR).getMapColor();
    }

    @Override
    public IBlockState getStateFromMeta (int meta) {

        return this.getDefaultState().withProperty(COLOR, EnumDyeColor.byMetadata(meta));
    }

    @Override
    public int getMetaFromState (IBlockState state) {

        return state.getValue(COLOR).getMetadata();
    }

    @Override
    protected BlockStateContainer createBlockState () {

        return new BlockStateContainer(this, new IProperty[] { COLOR });
    }
}

@@ -106,16 +106,54 @@
 kSlime;%0A
+import net.minecraft.block.SoundType;%0A
 import n
@@ -1014,16 +1014,60 @@
 LOCKS);%0A
+        this.setSoundType(SoundType.SLIME);%0A
     %7D%0A%0A 

Fix sounds for colored slime blocks (#41)