Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

minecraftdotjarrr

Members
  • Joined

  • Last visited

Everything posted by minecraftdotjarrr

  1. Hey! How are you guys? I was wondering how to add in sounds to your sword when you swing? like a "whooosh" sound lol If you could help that would be great thanks! -minecraftdotjarrr
  2. did you try? public boolean hasEffect(ItemStack par1ItemStack){ return true; }
  3. Hey guys! whats up? Im making a mod that adds in new swords... but I want them to be more detailed so I was wondering what I do about this? If any one could help that would be great
  4. THANK YOU SO MUCH FOR HELPING :) :)
  5. THANK YOU SO MUCH FOR HELPING :) :) :) :) :) :) :) :)
  6. I feel bad saying this but im still getting that error. But thanks for explaining how to put the items together! I copied and pasted all of the RAW paste data into each class and I still got that error. Should I delete the two classes and try again? And THANK YOU SO MUCH FOR HELPING :) :) :) :) :) :) :) :)
  7. package Brenden; //Package directory /* * Basic importing */ import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemSeedFood; import net.minecraft.item.ItemSeeds; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.potion.PotionHelper; import net.minecraft.src.ModLoader; import net.minecraft.stats.Achievement; import net.minecraft.world.World; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.relauncher.Side; /* * Basic needed forge stuff */ @Mod(modid="Potion Items",name="Eat Weirdly",version="v1") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class Potionitems { @PreInit public void preInit(FMLPreInitializationEvent event) { int replaceId; replaceId = Item.blazePowder.itemID; Item.itemsList[replaceId] = new ItemEatWeirdly(replaceId - 256, 2, 0.3F, true, "SubText", "another line").setNameAndIcon("blazePowder", "blaze_powder").setBrewEffect(PotionHelper.blazePowderEffect).setEatEffect(Potion.damageBoost.id,10, 0, 1.0F); replaceId = Item.netherStalkSeeds.itemID; Item.itemsList[replaceId] = new ItemEatWeirdlySeed(replaceId - 256, 2, 0.3F, Block.netherStalk.blockID, Block.slowSand.blockID, "SubText", "another line", "you can keep adding strings here").setNameAndIcon("netherStalkSeeds", "nether_wart").setBrewEffect("+4").setCreativeTab(CreativeTabs.tabMaterials); Item.speckledMelon = ((ItemFood) (new ItemFood(126, 3, 0.3F, true)).setPotionEffect(PotionHelper.speckledMelonEffect).setUnlocalizedName("speckledMelon")).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 3, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.sugar = ((ItemFood) (new ItemFood(97, 1, 0.3F, true)) .setPotionEffect(PotionHelper.sugarEffect) .setUnlocalizedName("sugar")).setAlwaysEdible().setPotionEffect(Potion.moveSpeed.id,10, 1, 1.0F).setCreativeTab(CreativeTabs.tabMaterials); Item.magmaCream = ((ItemFood) (new ItemFood(122, 4, 0.3F, true)).setPotionEffect(PotionHelper.magmaCreamEffect) .setUnlocalizedName("magmaCream")).setAlwaysEdible().setPotionEffect(Potion.fireResistance.id,10, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.slimeBall = ((ItemFood) (new ItemFood(85, 8, 0.3F, true)).setUnlocalizedName("slimeball")).setAlwaysEdible().setPotionEffect(Potion.moveSlowdown.id, 10, 2, 1.0F) .setCreativeTab(CreativeTabs.tabMisc); Item.lightStoneDust = ((ItemFood) (new ItemFood(92, 4, 0.3F, true)).setPotionEffect(PotionHelper.glowstoneEffect) .setUnlocalizedName("yellowDust")).setAlwaysEdible().setPotionEffect(Potion.digSpeed.id,7, 2, 1.0F) .setCreativeTab(CreativeTabs.tabMaterials); Item.ghastTear = (((ItemFood) new ItemFood(114, 1, 0.3F, true).setPotionEffect(PotionHelper.ghastTearEffect).setUnlocalizedName("ghastTear")).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 6, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing)) ; Item.goldenCarrot = ((ItemFood) (new ItemFood(140, 6, 1.2F, true)).setPotionEffect(PotionHelper.goldenCarrotEffect).setUnlocalizedName("carrotGolden")).setAlwaysEdible().setPotionEffect(Potion.jump.id,15, 3, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.fermentedSpiderEye = ((ItemFood) (new ItemFood(120, 6, 1.2F, true )).setPotionEffect(PotionHelper.fermentedSpiderEyeEffect).setUnlocalizedName("fermentedSpiderEye")).setAlwaysEdible().setPotionEffect(Potion.poison.id,5, 2, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.gunpowder = ((ItemFood) (new ItemFood(33, 2, 1.2F, true )).setPotionEffect(PotionHelper.gunpowderEffect).setUnlocalizedName("sulphur")).setAlwaysEdible().setCreativeTab(CreativeTabs.tabMaterials); } } ItemEatWeirdly package Brenden; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class ItemEatWeirdly extends ItemFood { String[] subText; public ItemEatWeirdly(int id, int foodValue, float saturation, boolean wolfEat, String...subText) { super(id, foodValue, saturation, wolfEat); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdly setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdly setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdly setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d("something here"); return this; } private void func_111206_d(String icon) { } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } SeedFood package Brenden; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemSeedFood; import net.minecraft.item.ItemStack; public class ItemEatWeirdlySeed extends ItemSeedFood { String[] subText; public ItemEatWeirdlySeed(int id, int foodValue, float saturation, int cropId, int soilId, String...subText) { super(id, foodValue, saturation, cropId, soilId); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdlySeed setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdlySeed setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdlySeed setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d("something here"); return this; } private void func_111206_d(String string) { } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } Thanks so much
  8. Ok one more question the ill leave you alone. lol I have a error on Item.itemsList[replaceId] how do I fix it? error- The type of the expression must be an array type but it resolved to Item
  9. Ok thanks so much!!! This was a very kind gesture what do you want your name to be in my mod mc.info thing?? I just have a error in main mod class -The type of the expression must be an array type but it resolved to Item
  10. That code allows your blazePowder to replace the original, so you should be able to eat it. You'll need to do similar code you make your other replacements work also. But I overlooked "add item subtext" Now I'm assuming your trying to add more info to the tooltip. In which case you current setup has problems. Your replacement is to ItemFood, which allows you to eat it, but you need to use your class and have it extend ItemFood/ItemFoodSeed before you do anything else. New Class : ItemEatWeirdly public class ItemEatWeirdly extends ItemFood { String[] subText; public ItemEatWeirdly(int id, int foodValue, float saturation, boolean wolfEat, String...subText) { super(id, foodValue, saturation, wolfEat); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdly setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdly setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdly setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d(icon); return this; } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } New Class : ItemEatWeirdlySeed public class ItemEatWeirdlySeed extends ItemSeedFood { String[] subText; public ItemEatWeirdlySeed(int id, int foodValue, float saturation, int cropId, int soilId, String...subText) { super(id, foodValue, saturation, cropId, soilId); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdlySeed setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdlySeed setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdlySeed setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d(icon); return this; } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } In you main class, @EventHandler // this is for 1.6 if your on 1.5 use @PreInit public void preInit(FMLPreInitializationEvent event) { int replaceId; replaceId = Item.blazePowder.itemID; Item.itemsList[replaceId] = new ItemEatWeirdly(replaceId - 256, 2, 0.3F, true, "SubText", "another line").setNameAndIcon("blazePowder", "blaze_powder").setBrewEffect(PotionHelper.blazePowderEffect).setEatEffect(Potion.damageBoost.id,10, 0, 1.0F); replaceId = Item.netherStalkSeeds.itemID; Item.itemsList[replaceId] = new ItemEatWeirdlySeed(replaceId - 256, 2, 0.3F, Block.netherStalk.blockID, Block.slowSand.blockID, "SubText", "another line", "you can keep adding strings here").setNameAndIcon("netherStalkSeeds", "nether_wart").setBrewEffect("+4").setCreativeTab(CreativeTabs.tabMaterials); } the string used for the icon is found in .func_111206_d(" something here "); Ok so I made a class "ItemEatWeirdly" package Brenden; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class ItemEatWeirdly extends ItemFood { String[] subText; public ItemEatWeirdly(int id, int foodValue, float saturation, boolean wolfEat, String...subText) { super(id, foodValue, saturation, wolfEat); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdly setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdly setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdly setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d("something here"); return this; } private void func_111206_d(String icon) { } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } And the other one package Brenden; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemSeedFood; import net.minecraft.item.ItemStack; public class ItemEatWeirdlySeed extends ItemSeedFood { String[] subText; public ItemEatWeirdlySeed(int id, int foodValue, float saturation, int cropId, int soilId, String...subText) { super(id, foodValue, saturation, cropId, soilId); this.subText = subText; setCreativeTab(CreativeTabs.tabBrewing); setAlwaysEdible(); } public ItemEatWeirdlySeed setEatEffect(int potionId, int potionDuration, int potionAmplifier, float potionProbability) { setPotionEffect(potionId, potionDuration, potionAmplifier, potionProbability); return this; } public ItemEatWeirdlySeed setBrewEffect(String brewEffect) { setPotionEffect(brewEffect); return this; } public ItemEatWeirdlySeed setNameAndIcon(String name, String icon) { setUnlocalizedName(name); func_111206_d(icon); return this; } private void func_111206_d(String icon) { } @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean par4) { if (this.subText != null && this.subText.length > 0) { for (String text : this.subText){ list.add(text); } } } } And in The main class. package Brenden; //Package directory /* * Basic importing */ import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemSeedFood; import net.minecraft.item.ItemSeeds; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.potion.PotionHelper; import net.minecraft.src.ModLoader; import net.minecraft.stats.Achievement; import net.minecraft.world.World; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.relauncher.Side; @Mod(modid="Potion Items",name="Eat Weirdly",version="v1") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class Potionitems { public void preInit(FMLPreInitializationEvent event) { int replaceId; replaceId = Item.blazePowder.itemID; Item.itemsList[replaceId] = new ItemEatWeirdly(replaceId - 256, 2, 0.3F, true, "hi", "another line").setNameAndIcon("blazePowder", "blaze_powder").setBrewEffect(PotionHelper.blazePowderEffect).setEatEffect(Potion.damageBoost.id,10, 0, 1.0F); replaceId = Item.netherStalkSeeds.itemID; Item.itemsList[replaceId] = new ItemEatWeirdlySeed(replaceId - 256, 2, 0.3F, Block.netherStalk.blockID, Block.slowSand.blockID, "SubText", "another line", "you can keep adding strings here").setNameAndIcon("netherStalkSeeds", "nether_wart").setBrewEffect("+4").setCreativeTab(CreativeTabs.tabMaterials); I probably did something wrong but you cant eat blazepowder and there is no subtext.
  11. Hey can someone please help me add subtext to blaze powder? I dont know what Im doing wrong. Here is the code package Brenden; import java.util.List; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class blazePowder extends ItemFood { public blazePowder(int par1, int par2, float par3, boolean par4) { super(par1,par2, par3, par4); this.setCreativeTab(CreativeTabs.tabBrewing); } @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean B) { if(stack.getItem() == Item.itemsList[item.blazePowder.itemID]) { list.add("Gives Ypu Strength For 10 Seconds"); } } } Thanks
  12. Main Mod Class package Brenden; //Package directory /* * Basic importing */ import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemSeedFood; import net.minecraft.item.ItemSeeds; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.potion.PotionHelper; import net.minecraft.src.ModLoader; import net.minecraft.stats.Achievement; import net.minecraft.world.World; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.relauncher.Side; /* * Basic needed forge stuff */ @Mod(modid="Potion Items",name="Eat Weirdly",version="v1") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class Potionitems { //Declaring Init @Init public void load(FMLInitializationEvent event){ Item.speckledMelon = ((ItemFood) (new ItemFood(126, 3, 0.3F, true)).setPotionEffect(PotionHelper.speckledMelonEffect).setUnlocalizedName("speckledMelon")).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 3, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.sugar = ((ItemFood) (new ItemFood(97, 1, 0.3F, true)) .setPotionEffect(PotionHelper.sugarEffect) .setUnlocalizedName("sugar")).setAlwaysEdible().setPotionEffect(Potion.moveSpeed.id,10, 1, 1.0F).setCreativeTab(CreativeTabs.tabMaterials); Item.itemsList[item.blazePowder.itemID] = ((ItemFood) (new ItemFood(121, 2, 0.3F, true)).setPotionEffect(PotionHelper.blazePowderEffect).setUnlocalizedName("blazePowder")).setAlwaysEdible().setPotionEffect(Potion.damageBoost.id,10, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.magmaCream = ((ItemFood) (new ItemFood(122, 4, 0.3F, true)).setPotionEffect(PotionHelper.magmaCreamEffect) .setUnlocalizedName("magmaCream")).setAlwaysEdible().setPotionEffect(Potion.fireResistance.id,10, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.slimeBall = ((ItemFood) (new ItemFood(85, 8, 0.3F, true)).setUnlocalizedName("slimeball")).setAlwaysEdible().setPotionEffect(Potion.moveSlowdown.id, 10, 2, 1.0F) .setCreativeTab(CreativeTabs.tabMisc); Item.lightStoneDust = ((ItemFood) (new ItemFood(92, 4, 0.3F, true)).setPotionEffect(PotionHelper.glowstoneEffect) .setUnlocalizedName("yellowDust")).setAlwaysEdible().setPotionEffect(Potion.digSpeed.id,7, 2, 1.0F) .setCreativeTab(CreativeTabs.tabMaterials); Item.ghastTear = (((ItemFood) new ItemFood(114, 1, 0.3F, true).setPotionEffect(PotionHelper.ghastTearEffect).setUnlocalizedName("ghastTear")).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 6, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing)) ; Item.goldenCarrot = ((ItemFood) (new ItemFood(140, 6, 1.2F, true)).setPotionEffect(PotionHelper.goldenCarrotEffect).setUnlocalizedName("carrotGolden")).setAlwaysEdible().setPotionEffect(Potion.jump.id,15, 3, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.fermentedSpiderEye = ((ItemFood) (new ItemFood(120, 6, 1.2F, true )).setPotionEffect(PotionHelper.fermentedSpiderEyeEffect).setUnlocalizedName("fermentedSpiderEye")).setAlwaysEdible().setPotionEffect(Potion.poison.id,5, 2, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Item.netherStalkSeeds = ((ItemFood) (new ItemSeedFood(136, 2, 0.10F, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds")).setAlwaysEdible().setPotionEffect("+4").setCreativeTab(null); Item.gunpowder = ((ItemFood) (new ItemFood(33, 2, 1.2F, true )).setPotionEffect(PotionHelper.gunpowderEffect).setUnlocalizedName("sulphur")).setAlwaysEdible().setCreativeTab(CreativeTabs.tabMaterials); } } The Extended class package Brenden; import java.util.List; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class blazePowder extends Item { public blazePowder(int par1) { super(par1); this.setCreativeTab(CreativeTabs.tabBrewing); } @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean B) { if(stack.getItem() == Item.itemsList[item.blazePowder.itemID]) { list.add("Gives Strength For 10 Seconds"); } } } thanks
  13. Ok so I put that in my main mod class in my item list and it still didnt work. sorry im pretty stupid.
  14. So I goto item.java and put Item.itemsList infront of the blaze powder
  15. like? Item.blazePowder = ((ItemFood) (new ItemFood(121, 2, 0.3F, true)).setPotionEffect(PotionHelper.blazePowderEffect).setUnlocalizedName("blazePowder")).setAlwaysEdible().setPotionEffect(Potion.damageBoost.id,10, 0, 1.0F).setCreativeTab(CreativeTabs.tabBrewing); Or the code above.
  16. Hello once again! Ive been into trying to add item subtext to blaze powder. now people have told me to extend the class which im pretty sure i did. . And if anyone knows how to help with this or help me adding the subtext that would be great. code. package Brenden; import java.util.List; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class blazePowder extends Item { public blazePowder(int par1) { super(par1); this.setCreativeTab(CreativeTabs.tabBrewing); } @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean B) { if(stack.getItem() == Item.blazePowder) { list.add("Gives Strength For 10 Seconds"); } } } Thanks a million
  17. Hey how are you guys today?? I was wondering if some one could help me make nether warts edible. I do have Skype (obviously) so if you would want to PM me or even leave it down below that would be great! (I do have code editited but thats what I need your help with to make work) (Code) Item.netherStalkSeeds = ((ItemFood) (new ItemSeedFood(136, 2, 0.10F, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds")).setAlwaysEdible().setPotionEffect("+4").setCreativeTab(null); -minecraftdotjarr
  18. Are you thinking that I edited the Items.java file and didnt create a modding file? (Class) I did create a like a new class for this mod
  19. Define "editable". Do you mean you can eat it? You can't eat nether wart but you would probably have to make a netherwart class and have it extend ItemFood. If you want to be required to shift click, just say if(par1EntityPlayer.isSneaking) or whatever it is. For the gunpowder you have to make it extend ItemFood, and then you could start a timer lasting for a certain amount of ticks, and then at the end you would stop the timer, do par1World.createExplosion(x,y,z) where x y and z are the coordinates of the player. Then you would probably have to do .setDead, or maybe it will already do that when you explode. Yes so you can eat it lol What does extend ItemFood mean? (im sorry im new lol) And what would I put in the netherwart class? And where would I put the "if(par1EntityPlayer.isSneaking)" on the the nether wart line? this is what I changed "public static Item netherStalkSeeds = (new ItemSeedFood(136, 1, 0.3F, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds").setPotionEffect("+4");" and I only put that in my main mod class because I dont know what to put in my nether wart class
  20. Hi I did try that but I couldn't plant it.
  21. Hey guys! I'm fairly new to modding, but im making a mod where you can eat the potion items (i.e Glistering Melon) and I manged to give that a potion effect of regeneration for 3 seconds. But my two real questions are... 1- How to make nether warts still plant able (on soul sand) but editable all the time so (maybe shift click to plant) lol 2- When you eat gun powder you have ten seconds before you explode! If someone could help man that would be great!!!!!!1

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.