Should at least say that you need python installed to run install.bat
Also i can't find on your turorials how to make the item eatable, do you have it?
My pan is to make a bacon mod just because seems simple, i'll make raw bacon drop from the pig with this tutorial http://darkhaxspace....ving-drops.html and than make it smeltable into bacon with your tutorial.
Seems like a good idea for a first mod, simple but i think i'll learn a lot from it .
All you should need is to extend ItemFood, and if you're using eclipse it will tell you what to add, also V
Hey I was wondering if you could help me with an Entity Throwable
if your going to cover throwables in a tutorial I can wait but if you have the time here is my problem:
I have a new ItemThrowable but when I spawn it and it hits the ground it doest destroy itself and for some reason forge spews out Memory Overburdened messages.
How would i go about making flowers and grasses and such, placeable on a custom dirt, without modifying the BlockFlower.java class itself?
EDIT: Btw i figured out how to make items that are placeable as blocks, if you wanted to add it to your tutorial
the main mod class
public static ItemReed yourItem = new ItemYourItem(15003);
the 15003 being whatever ID number you wish to assign to it
the item class header
public class ItemYourItem extends ItemReed
item super constructer
public ItemYourItem(int par1)
{
super(par1, yourMod.yourBlock);
also be sure you have
import net.minecraft.item.ItemReed;
in your main mod class, and your item class
Everything else in the Item class is the same as your tutorial. Hopefully im the only one who has the weird texture problem and had to change it around further >.>
Prerequisites being the block already existing and functioning.
I just want to say great tutorials! I'm also very happy to see that you are still working on them/still active in the thread. I've had issues finding tutorials that are still being maintained! Again, great work, and I look forward to more
How would i go about making flowers and grasses and such, placeable on a custom dirt, without modifying the BlockFlower.java class itself?
EDIT: Btw i figured out how to make items that are placeable as blocks, if you wanted to add it to your tutorial
the main mod class
public static ItemReed yourItem = new ItemYourItem(15003);
the 15003 being whatever ID number you wish to assign to it
the item class header
public class ItemYourItem extends ItemReed
item super constructer
public ItemYourItem(int par1)
{
super(par1, yourMod.yourBlock);
also be sure you have
import net.minecraft.item.ItemReed;
in your main mod class, and your item class
Everything else in the Item class is the same as your tutorial. Hopefully im the only one who has the weird texture problem and had to change it around further >.>
Prerequisites being the block already existing and functioning.
1) Make a block that extends BlockFlower, then just override the necessary methods
2) Thanks
I just want to say great tutorials! I'm also very happy to see that you are still working on them/still active in the thread. I've had issues finding tutorials that are still being maintained! Again, great work, and I look forward to more
1) Make a block that extends BlockFlower, then just override the necessary methods
2) Thanks
but im not wanting to make custom flowers that are place-able on dirt, i want the vanilla flowers to be able to be place-able on MY dirt. also i dont know how to override. . .
but im not wanting to make custom flowers that are place-able on dirt, i want the vanilla flowers to be able to be place-able on MY dirt. also i dont know how to override. . .
Example (Maybe, I could be wrong)
yourblock extends BlockFlower
[size=medium] public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)[/size]
{
return super.canPlaceBlockAt(par1World, par2, par3, par4) && canBlockStay(par1World, par2, par3, par4); //Your dirt in here?
}
Hello, I want to make a spaceship mod, so here's my idea: I could just port boat entity as a forge mod, and add up/down controlls. The question is, what parts of the code and how should I change them?
Not sure, just check out the boat code and do some experimentation
GameRegistry.addShaplessRecipe( new ItemStack(mixedDust, 1, new Object[]{ Item.TinDust, CopperDust
});
I am by no means an expert but I believe ItemStack doesnt take an Object for the 3rd parameter, just the metadata value. I think what you are trying to do is something more along the lines of:
I dont know what metadata you are storing, if you are using metadata at all. If you want it to accept any metadata, use -1 for the last parameter, otherwise, use the metadata you want. This also assumes that TinDust and CopperDust are both in the Item class, adjust as necessary for your own code. I hope this helps!
I am by no means an expert but I believe ItemStack doesnt take an Object for the 3rd parameter, just the metadata value. I think what you are trying to do is something more along the lines of:
I dont know what metadata you are storing, if you are using metadata at all. If you want it to accept any metadata, use -1 for the last parameter, otherwise, use the metadata you want. This also assumes that TinDust and CopperDust are both in the Item class, adjust as necessary for your own code. I hope this helps!
Does the same thing? What the heck!?!?
Ok I think I found the problem. I read through your answer, and i looked in the Item.java file (class file) and Copper Dust isn't in there?! XD rookie mistake... Scratch that got a new freaking annoying problem... Now the .addShaplessRecipe is now a error:
"Syntax error on token "addShapelessRecipe", = expected after this token"
Rollback Post to RevisionRollBack
You know you want to hit the subscribe button Lets get me to 500!
All you should need is to extend ItemFood, and if you're using eclipse it will tell you what to add, also V
Looking at the base classes is one of the best ways to learn how to do stuff, I highly recommend it
Thank you, i'll look into it!
I have no experience with that, sorry
EDIT: Btw i figured out how to make items that are placeable as blocks, if you wanted to add it to your tutorial
the main mod class
the 15003 being whatever ID number you wish to assign to it
the item class header
item super constructer
also be sure you have in your main mod class, and your item class
Everything else in the Item class is the same as your tutorial. Hopefully im the only one who has the weird texture problem and had to change it around further >.>
Prerequisites being the block already existing and functioning.
My Planetminecraft Page
Twitter
Blog
YouTube
1) Make a block that extends BlockFlower, then just override the necessary methods
2) Thanks
Thanks
My Planetminecraft Page
Example (Maybe, I could be wrong)
yourblock extends BlockFlower
Twitter
Blog
YouTube
Not sure, just check out the boat code and do some experimentation
Any idea how to make a metadata block drop a metadata item? Example: My blockGemOres to drop my different itemGems?
Twitter
Blog
YouTube
http://www.minecraftforum.net/topic/1719806-unsolved-forge-147-special-block-custom-rendering-in-inventory-issue/
At the moment I'm mostly just helping people with questions
Doesn't the world gen tutorial have the ore blocks drop meta gems?
I don't know much about doing that, sorry
My apologies, I haven't looked that far yet Thanks!
Twitter
Blog
YouTube
The ones with lines underneath are giving me errors.. I have no idea on how to fix!!! Please help soon!! Ok the two errors are;
. = syntax error on token(s), misplaced contruct(s)
( = syntax error on token "(", = expected
You know you want to hit the subscribe button Lets get me to 500!
Can you post the full line thats giving you errors?
sure thing:
GameRegistry.addShaplessRecipe( new ItemStack(mixedDust, 1, new Object[]{
Item.TinDust,
CopperDust
});
You know you want to hit the subscribe button Lets get me to 500!
I am by no means an expert but I believe ItemStack doesnt take an Object for the 3rd parameter, just the metadata value. I think what you are trying to do is something more along the lines of:
I dont know what metadata you are storing, if you are using metadata at all. If you want it to accept any metadata, use -1 for the last parameter, otherwise, use the metadata you want. This also assumes that TinDust and CopperDust are both in the Item class, adjust as necessary for your own code. I hope this helps!
You forgot a ")".
GameRegistry.addShapelessRecipe( new ItemStack(mixedDust, 1), new Object[]{
Item.TinDust,
CopperDust
});
Try that code
It just gives me an error telling me to delete that ")" lol
Does the same thing? What the heck!?!?
Ok I think I found the problem. I read through your answer, and i looked in the Item.java file (class file) and Copper Dust isn't in there?! XD rookie mistake... Scratch that got a new freaking annoying problem... Now the .addShaplessRecipe is now a error:
"Syntax error on token "addShapelessRecipe", = expected after this token"
You know you want to hit the subscribe button Lets get me to 500!