package net.minecraft.src;
public class mod_Boom extends BaseMod
{
public static Item BoomStick = new ItemBoomStick(29437).setItemName("BoomStick");
public mod_Boom()
{
BoomStick.iconIndex = ModLoader.addOverride("/gui/items.png", "/BoomStick.png");
ModLoader.AddName(BoomStick, "BoomStick");
ModLoader.AddRecipe(new ItemStack(BoomStick, 10), new Object[] {
"X", " X ", " O", Character.valueOf('X'), Item.stick, Character.valueOf('O'), Item.gunpowder
});
}
public String getVersion()
{
return "1.1.1";
}
}
ItemBoomStick.java
package net.minecraft.src;
import java.util.*;
public class ItemBoomStick extends Item
{
public ItemBoomStick(int i)
{
super(i);
maxStackSize = 1;
setMaxDamage(40);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
if(itemstack.getItemDamage() == 0)
{
itemstack.damageItem(40, entityplayer);
}
return itemstack;
}
public void onUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag)
{
if(itemstack.getItemDamage() != 0)
{
itemstack.damageItem(-1, entity);
}
}
}
One of the reasons is that in you mod_Boom class, instead of having public mod_Boom(), you need public void load(). That's all I can get. Not too great at Java, but I helped you out a little bit :smile.gif:
Is it also able to make something like the crop, that starts as a flower, without the "head" , grow's bigger, 1 block.
grows 2 high, still green, and as last stage little yellow dots on the top 2 blocks, and if you harvest the "plant" that you'll
just get the 2 top blocks, harvested with some item, and that the "root" stays there? like other textured sugarcane
Is it also able to make something like the crop, that starts as a flower, without the "head" , grow's bigger, 1 block.
grows 2 high, still green, and as last stage little yellow dots on the top 2 blocks, and if you harvest the "plant" that you'll
just get the 2 top blocks, harvested with some item, and that the "root" stays there? like other textured sugarcane
i think you would look at the sugarcane like plant tut then edit the code so it doesnt need to be by water and make it the flower texture (but idk about the growing process thing srry)
I'm not making chest spawn, but a new block that is able to "receive" when it's trigeredin a certain way, this way the first time it work, my item get in the chest, but how can i make this so that if the object is already there it would stack another one until the stack size limit?
i want someting similar to this:
Strength I MISS YOUR TUTORIALS!@!!!!!!@>@!$@!<#%ORJWegoshkae4tu34wquoi45yawewtoawe4utha
sorry just fell asleep on my keyboard because ive been up all night trying to find better tutorials!
Hello i was wondering if anyone knew How I could make my Non-Enemy Mob attack another Mob, say a Chicken whenever it saw one?
I have been asking for a while, I have PMed someone bout it, but gonna ask here in case.
Some would, some won't, depends :tongue.gif:
mod_Boom.java
ItemBoomStick.java
One of the reasons is that in you mod_Boom class, instead of having public mod_Boom(), you need public void load(). That's all I can get. Not too great at Java, but I helped you out a little bit :smile.gif:
_RauRogees
grows 2 high, still green, and as last stage little yellow dots on the top 2 blocks, and if you harvest the "plant" that you'll
just get the 2 top blocks, harvested with some item, and that the "root" stays there? like other textured sugarcane
http://www.minecraftsao.org/
Check it out!
I'm not making chest spawn, but a new block that is able to "receive" when it's trigeredin a certain way, this way the first time it work, my item get in the chest, but how can i make this so that if the object is already there it would stack another one until the stack size limit?
i want someting similar to this:
thanks
EDIT: Never mind found a way
YES PLEASE PLEASE!!!!
Check out my Minecraft Modding Tutorials!
I don't get one thing though, for crops, it says
func_35190_e
doesn't match with
!entityplayer.
What do I change to get this working? If I take it out, it just crashes when I break it.
sorry just fell asleep on my keyboard because ive been up all night trying to find better tutorials!
the drones need you
they look up to you
it would help alot
In Entity(mobname)
I have been asking for a while, I have PMed someone bout it, but gonna ask here in case.
thanks ltolt2/DarkMiner
If I helped you press the little green plus.