Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

[Forge-Version: 10.12.1.1065]

Hi there,

I have a weird problem: My textures doesn't load.

My language file load fine, but my textures doesn't.

Here is the code:

 

package de.DrBlock42.extrastuff;

import net.minecraft.block.Block;[...]

@Mod(modid = extraStuff.modid, name = extraStuff.modid, version = extraStuff.version)
public class extraStuff {
//region ModVariables
	@SidedProxy(clientSide = "de.DrBlock42." + extraStuff.modid + ".ClientProxy", serverSide = "de.DrBlock42." + extraStuff.modid + ".CommonProxy")
	public static CommonProxy proxy;

	@Instance(extraStuff.modid)
	public static extraStuff instance;

	public static final String modid = "extrastuff";
	public static final String version = "0.0.1alpha";
//endregion

public static CreativeTabs tab = new CreativeTabs(extraStuff.modid){
	@Override
	public Item getTabIconItem() {
		return Items.written_book;
	}
};	

public static Block block_matter;

@EventHandler
public void preInit(FMLPreInitializationEvent e)
{
	//region registerBlock()
	block_matter = new blockMatter();
	GameRegistry.registerBlock(block_matter, this.modid + ":" + blockMatter.blockId);
	//endregion
}	

@EventHandler
public void init(FMLInitializationEvent e)
{	
	proxy.registerProxies();
}
}

 

package de.DrBlock42.extrastuff.blocks;

import de.DrBlock42.extrastuff.extraStuff;[...]

public class blockMatter extends Block{
public static final String blockId = "blockMatter";

public blockMatter() {
	super(Material.ground);
	setBlockName(extraStuff.modid + ":" + this.blockId);
	setCreativeTab(extraStuff.tab);
	setBlockTextureName(extraStuff.modid + ":" + this.blockId + ".png");
}

}

 

width=483 height=941https://photos-1.dropbox.com/t/0/AACIJLKTSLgXn049EU2aQJdka6MO_4lwnPEKdSt7CD3g9g/12/256247115/png/2048x1536/3/1398952800/0/2/package%20explorer.PNG/4qxkYKHbvAgrCknJrqfQnPYS40_cU384GC9IoUyRNso[/img]

Image: https://www.dropbox.com/s/9ateprjkt0nwhr5/package%20explorer.PNG?n=256247115

  • Author

Thank you nyankatze,

it seems that I have to remove the ".png"

...why haven't I tried this...

Nochmals danke :D

DrBlock42

 

Thank you nyankatze,

it seems that I have to remove the ".png"

...why haven't I tried this...

Nochmals danke :D

DrBlock42

no problem ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.