Jump to content

[1.7.10][Forge-Latest-1208] Texture Sometimes Don't Load


Recommended Posts

Posted

Sometimes my textures don't load when I test my mod in Eclipse.

 

I have to stress the Sometimes part.

 

Here's what's happening:

1.) I click Run, everything loads up, no errors. Textures work great.

2.) I close Minecraft (using the Close button at the top or doing exit, if that matters, sometimes using the stop button in the console).

3.) I do Absolutely Nothing to my code.

4.) Click Run again, error's for missing textures everywhere.

5.) Repeat 2 & 3

6.) Sometimes Some of the textures load, Sometimes All the textures load, but mostly, they don't load.

 

Relevant Code:

 

Main:

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.t1junox.alpoh.block.AlpohBlocks;
import net.t1junox.alpoh.item.AlpohItems;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;


@Mod(modid = Alpoh.MODID, name = Alpoh.NAME, version = Alpoh.VERSION, acceptedMinecraftVersions = "[1.7.10]")
public class Alpoh {

@SidedProxy(clientSide = "net.t1junox.alpoh.ClientProxy", serverSide = "net.t1junox.alpoh.CommonProxy")
public static CommonProxy proxy;

public static final String MODID = "t1junox_alpoh";
public static final String NAME = "A Little Piece of Haven";
public static final String VERSION = "v0.0.1";

@Instance(MODID)
public static Alpoh instance;

public static CreativeTabs alpohTabs;

AlpohBlocks alpohBlocks = new AlpohBlocks();
AlpohItems alpohItems = new AlpohItems();

@EventHandler
public void PreInit(FMLPreInitializationEvent preEvent){
	alpohTabs = new CreativeTabs(MODID){
		@SideOnly(Side.CLIENT)
		public Item getTabIconItem(){
			return Items.apple;
		}
	};

	alpohBlocks.loadBlocks();
	alpohItems.loadItems();

}

 

BlocksClass:

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.MinecraftForge;
import net.t1junox.alpoh.Alpoh;

public class AlpohBlocks{

//Ore Blocks
public static Block oreCopper; //textured

public void loadBlocks(){
	oreCopper = new AlpohBlockOre("oreCopper");
	registerBlock(oreCopper);

}

public void registerBlock(Block block){
	GameRegistry.registerBlock(block, block.getUnlocalizedName().substring(5));
}

}

 

BlockOre Class

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.t1junox.alpoh.Alpoh;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class AlpohBlockOre extends Block{

public AlpohBlockOre(String name) {
	super(Material.rock);
	this.setHardness(3F);
	this.setResistance(5.0F);
	this.setBlockName(name);
	this.setCreativeTab(Alpoh.alpohTabs); 

}

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister){
	this.blockIcon = iconRegister.registerIcon(Alpoh.MODID + ":" + this.getUnlocalizedName().substring(5));
	System.out.println(Alpoh.MODID + ".Block Registered: " + Alpoh.MODID + ":" + this.getUnlocalizedName().substring(5));
}

}

 

The Error I SOMETIMES get in the Console (Error occurs During loading up minecraft before the title screen):

[16:50:31] [Client thread/ERROR]: Using missing texture, unable to load t1junox_alpoh:textures/blocks/oreCopper.png
java.io.FileNotFoundException: t1junox_alpoh:textures/blocks/oreCopper.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:592) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_10]
at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_10]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_10]
at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_10]
at GradleStart.bounce(GradleStart.java:107) [start/:?]
at GradleStart.startClient(GradleStart.java:100) [start/:?]
at GradleStart.main(GradleStart.java:55) [start/:?]

 

There are no other Error Messages besides these (I Have more than 1 block/item, I just posted the one for the sample). All the other Errors are Identical except its the name of my other block/item textures.

 

And my textures are saved in: src/main/resources/assets/t1junox_alpoh/textures/blocks

And named correctly.

 

My only idea of what it could be is:

1.) Because I pass a string into my Block Ore Class its messing things up.

2.) I Use two different classes to load/register my Items and Blocks separately.

(However I have tried loading a block or two into the preinit, before calling my blockloads, like any normal block tutorial would do, and still have the same issue.)

 

I quit for a week because it was giving me a headache and for the life of me couldn't find anything wrong.

 

I can not stress enough that SOMETIMES they work.

  • 1 year later...
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Reach Out To Rapid Digital: What sapp Info: +1 41 4 80 7 14 85 Email INFO: rap iddi gita lrecov ery @ exe cs. com Hello, my name is Jayson, and I’m 35 years old from the United Kingdom. My family and I recently endured an incredibly challenging experience that I wouldn’t wish on anyone. We became victims of a cryptocurrency investment fraud scheme that saw us lose a staggering $807,000 in USDT and Bitcoins. The fraudsters had created a convincing facade, and we were lured into investing, only to discover later that the platform was a complete scam. We were left devastated, not just financially, but emotionally, as we had trusted these people and believed in the legitimacy of the investment. After the initial shock wore off, we desperately searched for ways to recover the lost funds. It seemed like an impossible task, and we felt as though there was no hope. That’s when, by sheer luck, we stumbled across a post about Rapid Digital Recovery, a cryptocurrency and funds recovery organization with a proven track record in cybersecurity and fraud recovery. We decided to reach out to them, and from the first interaction, we were impressed with their professionalism and transparency. They explained the recovery process in detail and reassured us that they had the skills and expertise to track down the perpetrators and recover our funds. This gave us a renewed sense of hope, something we hadn’t felt in months. What truly stood out during our experience with Rapid Digital Recovery was their dedication to the recovery process. The team went above and beyond, using sophisticated tracking tools and cyber forensics to gather critical information. Within a matter of weeks, they had successfully located the funds and traced the scam back to the fraudsters responsible. They worked with the authorities to ensure the criminals were held accountable for their actions. To our relief, the team at Rapid Digital Recovery was able to recover every single penny we had lost. The funds were returned in full, and the sense of closure we felt was invaluable. We couldn’t have imagined such a positive outcome in the early stages of our recovery journey, and we are deeply grateful for the work they did. If you ever find yourself in a similar situation, I highly recommend contacting Rapid Digital Recovery. Their expertise, transparency, and dedication to their clients make them the go-to choice for anyone seeking to recover lost cryptocurrency or funds. They truly gave us back our financial future.  
    • This is my first time modding anything, so maybe just skill issue. I'm using Forge 54.0.12 and Temurin 21.0.5+11-LTS I wanted to create a custom keybind and to check whether it works I'd like to send a chat message. I tried using Minecraft.getInstance().player.sendSystemMessage(Component.literal("test")); but IntelliJ couldnt resolve sendSystemMessage(...). Since I saw people using it in earlier versions, I tried the same thing with 1.20.6(- 50.1.0), where it works fine, now I can't figure out if this is intentional and whether there are other options for sending chat messages. On that note, is there more documentation than https://docs.minecraftforge.net/en/1.21.x/? It seems very incomplete compared to something like the Oracle Java docs
    • Hi, i'm having this error and I wanna fix it. we try: -Reload drivers -Eliminate .minecraft -Eliminate Java -Restart launcher -Verify if minecraft is using gpu -Mods  in .minecraft is empty -Install the latest and recomended version of forge idk what i have to do, help me pls. the lastest log is: https://mclo.gs/WAMao8x  
    • Read the FAQ, Rule #2. (https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/)  
    • The link to your log does not work, it says it is forbidden, Error, this is a private paste or is pending moderation.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.