-
XenoMustache changed their profile photo
-
[SOLVED][1.7.10] How does one set the harvest level for an ore?
Well, adding this method to the block constructor worked, thank you.
-
[SOLVED][1.7.10] How does one set the harvest level for an ore?
Actually, it's just a convenience thing. You can totally do it inside the block's constructor (which is what I do, because then as many properties of that block that I can get away with are inside that block's class--liquids have things that are required elsewhere, etc. etc). Also, "initialize Block event"? Are you using an event handler of some kind? Yes I am using an event handler. I couldn't find where in the block's constructor to add this method either.
-
[SOLVED][1.7.10] How does one set the harvest level for an ore?
I am currently creating a mod that requires some of the blocks to have a harvest level. This is not very specific I know, but all I am asking for is something basic. It is implied that you must add the ".setHarvestLevel( [tool], [level])" method as part of the initialize Block event, but doing this produces an error. "Type mismatch: cannot convert from void to Block" As I look around the internet for help, I find none, and looking for tutorials seems to not work either, as there are none.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
So I switched versions and it seems that I am now able to define the .setBlockTextureName method now, thank you for your sage advice, or methods of change, rather.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
How would one change the SRC that they are using?
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
I don't really want to set up another workspace because I have done that 3 times already.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
I am using the latest SRC version for 1.7.10.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
Oh I see now.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
I was hoping that what you posted would help with this problem, but sadly, no. I have done nothing else with the Block class, pasting the things you sent just gave me the same results, no access to .setBlockTextureName.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
Okay, I'm not sure I understand how to set up the @SideOnly part of this, do I put this in my MainRegistry package?
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
What would I type in place of "yourIcon"?
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
I began to look in the source code package and found the string "textureName" to be protected. I cannot change this, however, as it is input into the original game and is not editable.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
There is nothing else in my code that has anything to do with the Block class.
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
The tBlock class just extends the Block class, and has an empty constructor, but this has nothing to do with the texturing of the "Testing block".
-
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
import com.xenopack.lib.RefStrings; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import cpw.mods.fml.common.registry.GameRegistry; public class TestingBlock { public static void mainRegistry(){ initializeBlock(); registerBlock(); } public static Block tBlock; public static void initializeBlock(){ tBlock = new tBlock(Material.ground).setBlockName("tBlock").setCreativeTab(CreativeTabs.tabBlock); } public static void registerBlock(){ GameRegistry.registerBlock(tBlock, tBlock.getUnlocalizedName()); } } This is the direct code that I am using from the package.
IPS spam blocked by CleanTalk.