voici le code de mon blocks:
public int getBlockTextureFromSide(int par1)
{
if (par1 == 2)
{
return ModLoader.addOverride("/terrain.png", "/test/side01.png");
}
if (par1 == 1)
{
return ModLoader.addOverride("/terrain.png", "/test/side2345.png");
}
if (par1 == 0)
{
return ModLoader.addOverride("/terrain.png", "/test/TV2.png");
}
else
{
return 0;
}
}
protected BlockTv(int par1, int par2) {
super(par1, par2, Material.rock);
// TODO Auto-generated constructor stub
}
}
quand je lance ma partie voila la console:
Overriding /terrain.png with /test/TV2.png @ 170. 29 left.
Overriding /terrain.png with /test/side2345.png @ 171. 28 left.
Overriding /terrain.png with /test/side01.png @ 172. 27 left.
Overriding /terrain.png with /test/TV2.png @ 173. 26 left.
Overriding /terrain.png with /test/side2345.png @ 184. 25 left.
Overriding /terrain.png with /test/side01.png @ 185. 24 left.
Overriding /terrain.png with /test/TV2.png @ 186. 23 left.
Overriding /terrain.png with /test/side2345.png @ 187. 22 left.
Overriding /terrain.png with /test/side01.png @ 188. 21 left.
Overriding /terrain.png with /test/TV2.png @ 189. 20 left.
Overriding /terrain.png with /test/side2345.png @ 190. 19 left.
Overriding /terrain.png with /test/side01.png @ 191. 18 left.
Overriding /terrain.png with /test/TV2.png @ 200. 17 left.
Overriding /terrain.png with /test/side2345.png @ 201. 16 left.
Overriding /terrain.png with /test/side01.png @ 202. 15 left.
Overriding /terrain.png with /test/TV2.png @ 203. 14 left.
Overriding /terrain.png with /test/side2345.png @ 204. 13 left.
Overriding /terrain.png with /test/side01.png @ 215. 12 left.
Overriding /terrain.png with /test/TV2.png @ 216. 11 left.
Overriding /terrain.png with /test/side2345.png @ 217. 10 left.
Overriding /terrain.png with /test/side01.png @ 218. 9 left.
Overriding /terrain.png with /test/TV2.png @ 219. 8 left.
Overriding /terrain.png with /test/side2345.png @ 220. 7 left.
Overriding /terrain.png with /test/side01.png @ 221. 6 left.
Overriding /terrain.png with /test/TV2.png @ 231. 5 left.
Overriding /terrain.png with /test/side2345.png @ 232. 4 left.
Overriding /terrain.png with /test/side01.png @ 233. 3 left.
Overriding /terrain.png with /test/TV2.png @ 234. 2 left.
Overriding /terrain.png with /test/side2345.png @ 235. 1 left.
Overriding /terrain.png with /test/side01.png @ 236. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Mon jeux clignotent
voila en espérant que vous pourrez m'aider
public int getBlockTextureFromSide(int par1)
{
if (par1 == 2)
{
return ModLoader.addOverride("/terrain.png", "/test/side01.png");
}
if (par1 == 1)
{
return ModLoader.addOverride("/terrain.png", "/test/side2345.png");
}
if (par1 == 0)
{
return ModLoader.addOverride("/terrain.png", "/test/TV2.png");
}
else
{
return 0;
}
}
protected BlockTv(int par1, int par2) {
super(par1, par2, Material.rock);
// TODO Auto-generated constructor stub
}
}
quand je lance ma partie voila la console:
Overriding /terrain.png with /test/TV2.png @ 170. 29 left.
Overriding /terrain.png with /test/side2345.png @ 171. 28 left.
Overriding /terrain.png with /test/side01.png @ 172. 27 left.
Overriding /terrain.png with /test/TV2.png @ 173. 26 left.
Overriding /terrain.png with /test/side2345.png @ 184. 25 left.
Overriding /terrain.png with /test/side01.png @ 185. 24 left.
Overriding /terrain.png with /test/TV2.png @ 186. 23 left.
Overriding /terrain.png with /test/side2345.png @ 187. 22 left.
Overriding /terrain.png with /test/side01.png @ 188. 21 left.
Overriding /terrain.png with /test/TV2.png @ 189. 20 left.
Overriding /terrain.png with /test/side2345.png @ 190. 19 left.
Overriding /terrain.png with /test/side01.png @ 191. 18 left.
Overriding /terrain.png with /test/TV2.png @ 200. 17 left.
Overriding /terrain.png with /test/side2345.png @ 201. 16 left.
Overriding /terrain.png with /test/side01.png @ 202. 15 left.
Overriding /terrain.png with /test/TV2.png @ 203. 14 left.
Overriding /terrain.png with /test/side2345.png @ 204. 13 left.
Overriding /terrain.png with /test/side01.png @ 215. 12 left.
Overriding /terrain.png with /test/TV2.png @ 216. 11 left.
Overriding /terrain.png with /test/side2345.png @ 217. 10 left.
Overriding /terrain.png with /test/side01.png @ 218. 9 left.
Overriding /terrain.png with /test/TV2.png @ 219. 8 left.
Overriding /terrain.png with /test/side2345.png @ 220. 7 left.
Overriding /terrain.png with /test/side01.png @ 221. 6 left.
Overriding /terrain.png with /test/TV2.png @ 231. 5 left.
Overriding /terrain.png with /test/side2345.png @ 232. 4 left.
Overriding /terrain.png with /test/side01.png @ 233. 3 left.
Overriding /terrain.png with /test/TV2.png @ 234. 2 left.
Overriding /terrain.png with /test/side2345.png @ 235. 1 left.
Overriding /terrain.png with /test/side01.png @ 236. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Overriding /terrain.png with /test/TV2.png @ 0. 0 left.
Overriding /terrain.png with /test/side2345.png @ 0. 0 left.
Overriding /terrain.png with /test/side01.png @ 0. 0 left.
Mon jeux clignotent
voila en espérant que vous pourrez m'aider