-
Posts
19 -
Joined
-
Last visited
Everything posted by XenoMustache
-
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.
-
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
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
How would one change the SRC that they are using? -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
I am using the latest SRC version for 1.7.10. -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
Oh I see now. -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
What would I type in place of "yourIcon"? -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
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
XenoMustache replied to XenoMustache's topic in Modder Support
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. -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
I'm really sorry but those links help me in no way what-so-ever. -
[SOLVED][1.7.10] .setBlockTextureName method cannot be defined
XenoMustache replied to XenoMustache's topic in Modder Support
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. -
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.