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

Here's the relevant code for the block class..

 

public class StrangeIceBlock extends BlockBreakable {

public StrangeIceBlock() {
	super("strangeIce", Material.ice, false);
	setBlockName(Reference.MODID + "_strangeIce");
	setBlockTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5));
	setCreativeTab(CreativeTabs.tabBlock);

 

This is the texture error.

 

[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN minecraft
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:   domain minecraft is missing 1 texture
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:     domain minecraft has 3 locations:
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:       mod FML resources at C:\Users\Timothy\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1448-1.7.10\forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:       mod Forge resources at C:\Users\Timothy\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1448-1.7.10\forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain minecraft are:
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/strangeIce.png
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain minecraft
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

 

The texture is in fact in src/main/resouces under assets.strange.textures.blocks.strangeIce.png

 

I've read that it's because I'm an idiot and it shouldn't go in the minecraft domain. But.. how is it in the minecraft domain if Reference.MODID = "strange"? Seems strange to me.

If I helped, show me some love and hit that thanks button!

  • Author

Ah...

 

public class BlockBreakable extends Block
{
    private String field_149995_b;

    protected BlockBreakable(String p_i45411_1_, Material p_i45411_2_, boolean p_i45411_3_)
    {
        this.field_149995_b = p_i45411_1_;
    }

    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
        this.blockIcon = p_149651_1_.registerIcon(this.field_149995_b);
    }

 

I didn't bother following the constructor because I figured calling setBlockTextureName after the constructor would override anything the constructor did. Suppose that was my mistake; seems like both methods register(?) the texture, rather than just setting it.

If I helped, show me some love and hit that thanks button!

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.