My block is a crop, so the metadata is the growthstage.
(Me being dumb)
I use this class to create different crops, this is the constructor.
public CropMC(String name, int stages)
{
this();
this.name = name;
this.stages = stages;
this.maxMetaData = stages - 1;
this.setBlockName(Reference.NAME_PREFIX + name);
}
public CropMC()
{
//Stolen from BlockCrops
this.setTickRandomly(true);
float f = 0.5F;
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
this.setCreativeTab(null);
this.setHardness(0.0F);
this.setStepSound(soundTypeGrass);
this.disableStats();
}
Shouldn't matter in this case, as the if is working. The crop looks light, but doesn't emit light.
Screenshot to illustrate: