This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
package net.minecraft.src; import net.minecraft.src.forge.*; public class Block*** extends Block implements ITextureProvider { public BlockHCOre(int i, int j) { super(i, j, Material.rock); blockIndexInTexture = 0; } public int idDropped(int i) { if(blockID == mod_***.***.blockID) { return mod_***.***.blockID/shiftedIndex; } else { return blockID; } } public String getTextureFile() { return "/Yourfolder/yourfile.png"; } }
Quote from nerdyturtle how would i go about implementing the infinite sprites?
package net.minecraft.src; import java.util.Random; import net.minecraft.src.forge.*; public class BlockActinium extends Block implements ITextureProvider { public String getTextureFile() { return "/elements/solid/solid.png"; } public BlockActinium(int i, int j) { super(i, j, Material.rock); } }
public class BlockActinium extends Block implements ITextureProvider
public String getTextureFile() { return "/elements/solid/solid.png"; }
Here is an example of how My modding team and I use the infinite sprite indices:
Notice that it implements MinecraftForge's ITextureProvider:
then it uses the method
Remember, the new sprite sheet has to be the same size as Item.PNG and terrain.PNG