WantaSanchez
Опоздун
- 633
- 17
- 150
Доброго времени суток. У меня есть блок, но он излучает свет силой 11, хотя в коде совсем не так. Пробовал хоть 0.4F хоть 4.0F, но всё равно, уровень света 11. Я чего-то не знаю о установке светимости блока?
ExperienceOre:
public class ExperienceOre extends BlockOre {
public ExperienceOre() {
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
this.setHardness(3.0F);
this.setHarvestLevel("pickaxe", 2);
this.setLightLevel(0.4F);
this.setRegistryName("experience_ore");
this.setResistance(17.0F);
this.setUnlocalizedName("simplecompat.experience_ore");
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Override
public boolean isFullCube(IBlockState state) {
return true;
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
return null;
}
@Override
public int getExpDrop(IBlockState state, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune) {
Random random = new Random();;
int i = (7 + random.nextInt(7));
return i;
}
}