WHERE DO YOU RUN IT??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
public class ModBlocks
{
public static Block DragonOre = new BlockDragonOre();
public static void init()
{
com.alex99cao.mythicallengend.help.RegisterHelper.registerBlock(DragonOre);
}
}
The Meaning of Life, the Universe, and Everything.
Location:
Dallas
Join Date:
6/3/2012
Posts:
53
Member Details
Hello.... I'm missing something here... from the first tutorial :::
QUOTE::
If both of these finish without errors, everything should be fully set up! To test, open up eclipse, then click “Browse” when that window appears. Navigate to your mods folder, then to forge, then to eclipse, and press enter. This should pull up Eclipse; there should also be a “Minecraft” folder in the Project Explorer on the far left. If all of this checks up, everything has been setup correctly!
What I'm missing here is... Where is Eclipse setup at? I'm digging through the thread but didn't see it right away so, I'm assuming this has an obvious answer that I am missing. (Mainly cause I don't see anyone else has asked this yet.)
Hello.... I'm missing something here... from the first tutorial :::
QUOTE::
If both of these finish without errors, everything should be fully set up! To test, open up eclipse, then click “Browse” when that window appears. Navigate to your mods folder, then to forge, then to eclipse, and press enter. This should pull up Eclipse; there should also be a “Minecraft” folder in the Project Explorer on the far left. If all of this checks up, everything has been setup correctly!
What I'm missing here is... Where is Eclipse setup at? I'm digging through the thread but didn't see it right away so, I'm assuming this has an obvious answer that I am missing. (Mainly cause I don't see anyone else has asked this yet.)
I'm not sure Venom. If it worked before, perhaps, try to retrace your steps and see what you changed that caused it stop working. And about the exp drops, You're using the wrong method.
getExpDrop
public int getExpDrop(IBlockAccess p_149690_1_,
int p_149690_5_,
int p_149690_7_)
Description copied from class: Block
Gathers how much experience this block drops when broken.
Overrides: getExpDrop in class Block
Parameters:
p_149690_1_ - The world
Returns:
Amount of XP from breaking this block.
For one, adding flight via the armorTick method won't work the way you expect it. Even if you take the armor off, you should still have flight enabled because the code to run it shouldn't get run. You might need to make your own tick handler instead, or see if there is another method to use.
I may be wrong, but I've seen people trying to do the same thing having tons of issues using the method you are using.
Any chance you can make a tutorial at some point on how to use/make animated textures for blocks and items?
There are actually several tutorials on this used in resource packs. All you need to do is make a mcmeta.png file, and put that in the textures folder.
as 0 - 6 are for the different sides, iirc. Look up the furnance/crafting table blocks, and see how they handle the different sides. You'll need to do a "If" statement, comparing the i to the side's number, say, if 6 was bottom, "If I == 6" use bottom texture, etc.
WHERE DO YOU RUN IT??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Great Tutorials! but I was wondering how can I have custom descriptions in my items?
Alex, I gave you the answer above. Please read it.
You didn't set your unlocalizedName for your item. Read page 41 for my reply with the answer.
now the name is working but with no texture and the name of the png file is correct.
Is your png file named dragonOre or DragonOre
Whichever one you ended up naming in your unlocalizedName
Hello.... I'm missing something here... from the first tutorial :::
QUOTE::
If both of these finish without errors, everything should be fully set up! To test, open up eclipse, then click “Browse” when that window appears. Navigate to your mods folder, then to forge, then to eclipse, and press enter. This should pull up Eclipse; there should also be a “Minecraft” folder in the Project Explorer on the far left. If all of this checks up, everything has been setup correctly!
What I'm missing here is... Where is Eclipse setup at? I'm digging through the thread but didn't see it right away so, I'm assuming this has an obvious answer that I am missing. (Mainly cause I don't see anyone else has asked this yet.)
Download Eclipse
Extract Eclipse to your desired folder.
Run eclipse.exe
it is named dragonOre same as my unlocalizedName but no texture
Btw, if the code you posted is the same as your current code, you have setCreativeTab twice.
To recap, you have BlockDragonOre with unlocalizedName dragonOre. with your png as dragonOre.png located in
assets / {your modid} / textures / blocks
Use the #addInformation method (you can find it in the Item class, or by browsing some source code [some of my mods use it]).
Thanks! I found out it.
If anyone wants to do it, this Is what I have.
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Poison I");
}
Also, is it possible to make the enchanted item not have the glow on it?
I'm not sure Venom. If it worked before, perhaps, try to retrace your steps and see what you changed that caused it stop working. And about the exp drops, You're using the wrong method.
getExpDrop
Description copied from class: Block
Gathers how much experience this block drops when broken.
Overrides:
getExpDrop in class Block
Parameters:
p_149690_1_ - The world
Returns:
Amount of XP from breaking this block.
It is. You may need to override a method pertaining to adding the overlay (not sure what it is called at the moment), and just return false.
For one, adding flight via the armorTick method won't work the way you expect it. Even if you take the armor off, you should still have flight enabled because the code to run it shouldn't get run. You might need to make your own tick handler instead, or see if there is another method to use.
I may be wrong, but I've seen people trying to do the same thing having tons of issues using the method you are using.
.
Any chance you can make a tutorial at some point on how to use/make animated textures for blocks and items?
There are actually several tutorials on this used in resource packs. All you need to do is make a mcmeta.png file, and put that in the textures folder.
If I remember correctly, you need to fool with this method
@Override
public void registerBlockIcons(IIconRegister reg) {
for (int i = 0; i < 6; i ++) {
this.icons = reg.registerIcon(this.textureName + "_" + i);
}
}
as 0 - 6 are for the different sides, iirc. Look up the furnance/crafting table blocks, and see how they handle the different sides. You'll need to do a "If" statement, comparing the i to the side's number, say, if 6 was bottom, "If I == 6" use bottom texture, etc.
Did you name the textures the correct way?
sometexture_1.png
sometexture_2.png
etc
The number at the end, corresponds to the side you want.
public IIcon[] icons = new IIcon[6]; [/pre]
@Override
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < icons.length; i++) {
icons = iconRegister.registerIcon(Constants.MODID + ":" + name + i);
}
}
@Override
public IIcon getIcon(int side, int meta) {
return icons[side];
}
Dude, these are awesome! Please post the next tutorials!
*sarcastic comment*
*disapproving look*