- 63
- 3
- 4
Сделал такой вот метод для блока с 9ю subId офк не ворк, вопрос, как сделать, чтоб ворк.
Цель: Блоки с метой 0-4 нерушимы. 5-8 без изменений.
Цель: Блоки с метой 0-4 нерушимы. 5-8 без изменений.
Java:
public BlockEldritch() {
super(Material.rock);
this.setResistance(20000.0F);
this.setHardness(50.0F);
this.setStepSound(soundTypeStone);
this.setTickRandomly(true);
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
this.setLightOpacity(0);
this.setCreativeTab(Thaumcraft.tabTC);
}
public Block setBlockUnbreakable(World world, int x, int y, int z) {
int meta = world.getBlockMetadata(x,y,z);
if(meta >= 0 && meta <= 4) {
return this.setBlockUnbreakable(world, x, y, z);
}else {
return null;
}
}