Jump to content

Recommended Posts

Posted

Try this:

 

Put Texture Code in the BlockPlatOre and it should look like this EXACT:

package k3.moreMetals;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class BlockPlatOre extends Block {

public BlockPlatOre() {
	super(Material.iron);
                setTextureName(moreMetalsMod.MODID + ":orePlatinum");
}
}

 

It should work that's what I used for my code

Posted

Nothing at all... .mod says that this is the mod, .block says that this is the package of blocks...

 

 

Do you put all the classes in there or just the blocks, and if you only put the blocks there, where do you put the main file?

Currently developing the More Metals Mod.

Posted

did you try my method?

 

Yeah,it gave me errors because there wasn't a "this." and because it was .setTextureName inestead of .setBlocTextureName

Currently developing the More Metals Mod.

Posted

If you mean like this

it's still not working.

 

Someone correct me if I am wrong, but textures for blocks need to be in /src/main/resources/assets/yourMODID/textures/blocks/ not just /src/main/resources.

Posted

This is the code I used for my Block

package net.net46.thesuperhb.MobDrops.Block;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.net46.thesuperhb.MobDrops.MobDrops;

public class BlockGrill extends Block
{
public BlockGrill(Material p_i45394_1_) {
	super(p_i45394_1_);
	setCreativeTab(MobDrops.mobDrops);
	setHardness(5F);
	setResistance(4.0F);
	setBlockName("GrillBlock");
	setBlockTextureName(MobDrops.MODID + ":beta"); //Texture :BlockGrill
}

}

Posted

Nope, still not working, could it be that my main thing is in the same package (k3.moremetals.mod.block) as the BlockPlatOre? If it is the problem where should I put it? Here's another screenshot: 

Currently developing the More Metals Mod.

Posted

Oooohhhhh... I can't believe I didn't realize that you were talking about the "moreMetals" and not the "modid"

 

But now it's not letting me refactor the k3.moreMetals.mod.block and the assets and stuff to moremetals, it's just telling me that it caught an exception and that a resource exists with a different case.

Currently developing the More Metals Mod.

Posted

YES!!!! It worked! Thank you! Now I guess I have to make a class that extends item for my chunk platinum and do sort of the same thing. Thanks again. Oh and where do I put my main mod file (moreMetalsMod.java)?

Currently developing the More Metals Mod.

Posted

src/main/java/my/awesome/package/name/MyMod.java

 

Can you be more specific?

Seriously? You want Diesieben07 to name your package for you? Ughh

 

No, I just don't know what he means by "my/awesome/package/name", but I think I figured it out.

Currently developing the More Metals Mod.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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