Bonjour , je cherche un moyen de mettre la texture d'un bloc personnaliser qui est dans terrain.png
je ne trouve pas comment faire pour choisir leur texture
merci de m'aider
Code:
oreTitan = (new BlockOre(120)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("oreTitanium");
orebronze = (new BlockOre(121)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("oreBronze");
orepower = (new BlockOre(130)).setHardness(6F).setResistance(7F).setLightValue(1.0F).setStepSound(soundStoneFootstep).setBlockName("orepowerite");
oresilver = (new BlockOre(131)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("oresilver");
orelava = (new BlockOre(122)).setHardness(4F).setLightValue(1.0F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("Magmarock");
oreinfi = (new BlockOre(126)).setHardness(5F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("infinimium");
blockTitan = (new BlockOreStorage(123)).setHardness(3F).setResistance(10F).setStepSound(soundMetalFootstep).setBlockName("Titaniumblock");
blockbronze = (new BlockOreStorage(124)).setHardness(3F).setResistance(10F).setStepSound(soundMetalFootstep).setBlockName("Bronzeblock");
blocklava = (new BlockOreStorage(125)).setHardness(4F).setResistance(10F).setStepSound(soundMetalFootstep).setBlockName("Magmablock");
blockinfi = (new BlockOreStorage(127)).setHardness(5F).setResistance(15F).setStepSound(soundMetalFootstep).setBlockName("infiniumblock");
blockpower = (new BlockOreStorage(128)).setHardness(4F).setResistance(12F).setStepSound(soundMetalFootstep).setBlockName("powerblock");
blocksilver = (new BlockOreStorage(129)).setHardness(3F).setResistance(10F).setStepSound(soundMetalFootstep).setBlockName("silverblock");
merci de m'aider