Jump to content

XenoMustache

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by XenoMustache

  1. Well, adding this method to the block constructor worked, thank you.
  2. 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.
  3. 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.
  4. 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.
  5. How would one change the SRC that they are using?
  6. I don't really want to set up another workspace because I have done that 3 times already.
  7. I am using the latest SRC version for 1.7.10.
  8. 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.
  9. Okay, I'm not sure I understand how to set up the @SideOnly part of this, do I put this in my MainRegistry package?
  10. What would I type in place of "yourIcon"?
  11. 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.
  12. There is nothing else in my code that has anything to do with the Block class.
  13. 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".
  14. 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.
  15. I'm really sorry but those links help me in no way what-so-ever.
  16. Well, I would need help applying either of these methods as I have no Idea how to use them and the autodetect system doesn't give much information.
  17. As I follow tutorials on how to set mods up, there is this generic method people use to texture blocks. I'm sure all of you modders out there have heard of it, it is the .setBlockTextureName method that is supposed to be defined by the net.minecraft.block.Block package. My problem is this: Upon importing the net.minecraft.block.Block package everything seems to run smoothly until I want to texture the block. If I do type in .setBlockTextureName method I get an error. If I look for something to resolve this error via the left click is says "The method setBlockTextureName(String) from the type Block is not visible" I have tried many things to fix this error, but to no avail. I call to you, fellow modders, for I require a solution to this error as it is very stressing to see.
×
×
  • Create New...

Important Information

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