Also, I wonder how long and often you make these tutorials.
I'm working on re-doing most of these tutorials, along with formatting them to archive older version tutorials, to allow for an easier update to say 1.8.
It takes me about an hour to two hours to do a single tutorial. Just finding the time is the hard part for me.
When I open Eclipse, there is no Browse button. What do I do and am I even opening Eclipse correctly? I am opening eclipse.exe and I don't know if that is right. I'm so sorry with all the questions I've been asking, I hope you understand!
Rollback Post to RevisionRollBack
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
When I open Eclipse, there is no Browse button. What do I do and am I even opening Eclipse correctly? I am opening eclipse.exe and I don't know if that is right. I'm so sorry with all the questions I've been asking, I hope you understand!
This is just basic computer use. If you open Eclipse, a window will pop up asking you which workspace you want to work in.
Okay, not sure if this has been resolved for anyone else yet but I am running a Mac and when I enter "./gradlew setupDecompWorkspace I end up with this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':recompMinecraft'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
You probably imported the wrong Reference class - there are two including the one you made.
No, after making the Reference class, when I go to import it into the Main Class, I hover over Reference but it only says 'Reference cannot be resolved to a variable' and I can't import the Reference class I made.
Rollback Post to RevisionRollBack
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
No, after making the Reference class, when I go to import it into the Main Class, I hover over Reference but it only says 'Reference cannot be resolved to a variable' and I can't import the Reference class I made.
Uhh I need some help, im getting an error on line 51 because of the "x, y" part heres a paste bin link. http://pastebin.com/MGCDms9g
Please tell me why its giving me an error. I clicked Ctrl+Shift+O like 20 times so I know I dont need to import anything. So what do i do?
Change it to chunkX and chunkZ instead, based on your parameters. Also, move those two #addOreSpawn methods to the #generateSurface method - It will make your code more manageable and easier to read.
How do I make multiple items? Are they all in the same class? Also I couldn't figure out how to make items show up in the creative tab.
Yes you can make multiple items in the same class. You can look at my items and blocks. I could in fact combine the blocks and items into one class or put them into separate classes. Remember the .setCreativeTab. As you can see I put it in the McreativeTabs.tabItems.
Items:
</p> <p>package com.mod.item;</p> <p>import com.mod.blocks.Mblocks;<br>import com.mod.creativetabs.McreativeTabs;<br>import com.mod.lib.RefStrings;<br>import com.mod.main.MainRegistry;<br>import com.mod.tools.OAxe;<br>import com.mod.tools.OHoe;<br>import com.mod.tools.OPick;<br>import com.mod.tools.OSpade;<br>import com.mod.wepons.OSpear;<br>import com.mod.wepons.OSword;</p> <p>import cpw.mods.fml.common.registry.GameRegistry;<br>import net.minecraft.init.Blocks;<br>import net.minecraft.item.Item;<br>import net.minecraft.item.Item.ToolMaterial;<br>import net.minecraft.item.ItemArmor.ArmorMaterial;<br>import net.minecraft.item.ItemSeeds;<br>import net.minecraftforge.common.util.EnumHelper;</p> <p>public class Mitems {</p> <p>public static void mainRegistry() {<br> initialize();<br> registeritem();<br> }<br> <br> public static ToolMaterial oShard = EnumHelper.addToolMaterial("Obsidian Shard", 3, 2000, 13.0f, 4.5f, 10);<br> public static ArmorMaterial oArmor = EnumHelper.addArmorMaterial("Obsidian Armor", 33, new int[]{4, 8, 4, 4}, 10);<br> <br> //Items<br> public static Item oIngot;<br> public static Item ItemModFood;<br> public static Item ostick;<br> public static Item oSeed;<br> public static Item oShardPiece;<br> public static Item Copper;<br> public static Item Topaz;<br> public static Item Citrine;<br> public static Item Yttrium;<br> //Tools<br> public static Item oPick;<br> public static Item oAxe;<br> public static Item oSpade;<br> public static Item oSword;<br> public static Item oHoe;<br> public static Item oSpear;<br> //Armor<br> public static Item oHelmet;<br> public static Item oChestplate;<br> public static Item oLeggings;<br> public static Item oBoots;<br> <br> public static void initialize() {<br> //Items<br> ostick = new Item().setUnlocalizedName("ostick").setCreativeTab(McreativeTabs.tabItems).setTextureName(RefStrings.MODID + ":OStick");<br> oSeed = new ItemSeeds(Mblocks.oCrop, Blocks.farmland).setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("oSeed").setTextureName(RefStrings.MODID + ":oCrop");<br> oShardPiece = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("OshardPieceItem").setTextureName(RefStrings.MODID + ":oShardPiece");<br> oIngot = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("oIngot").setTextureName(RefStrings.MODID + ":oShardPiece");<br> ItemModFood = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("ItemModFood").setTextureName(RefStrings.MODID + ":ItemModFood");<br> Copper = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("Copper").setTextureName(RefStrings.MODID + ":Copper");<br> Topaz = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("Topaz").setTextureName(RefStrings.MODID + ":Topaz");<br> Citrine = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("Citrine").setTextureName(RefStrings.MODID + ":Citrine");<br> Yttrium = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("Yttrium").setTextureName(RefStrings.MODID + ":Yttrium");<br> //Tools<br> oPick = new OPick(oShard).setUnlocalizedName("oPick").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OPick");<br> oAxe = new OAxe(oShard).setUnlocalizedName("oAxe").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OAxe");<br> oSpade = new OSpade(oShard).setUnlocalizedName("oSpade").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OSpade");<br> oSword = new OSword(oShard).setUnlocalizedName("oSword").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OSword");<br> oHoe = new OHoe(oShard).setUnlocalizedName("oHoe").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OHoe");<br> oSpear = new OSpear(oShard).setUnlocalizedName("oSpear").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":OSpear");<br> //Armor<br> oHelmet = new oArmor(oArmor, MainRegistry.proxy.addArmor("oArmor"), 0).setUnlocalizedName("oHelmet").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":oHelmet");<br> oChestplate = new oArmor(oArmor, MainRegistry.proxy.addArmor("oArmor"), 1).setUnlocalizedName("oChestplate").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":oChestplate");<br> oLeggings = new oArmor(oArmor, MainRegistry.proxy.addArmor("oArmor"), 2).setUnlocalizedName("oLeggings").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + "oLeggings");<br> oBoots = new oArmor(oArmor, MainRegistry.proxy.addArmor("oArmor"), 3).setUnlocalizedName("oBoots").setCreativeTab(McreativeTabs.tabTools).setTextureName(RefStrings.MODID + ":oBoots");<br> <br> }<br> <br> public static void registeritem() {<br> //Items<br> GameRegistry.registerItem(ostick, ostick.getUnlocalizedName());<br> GameRegistry.registerItem(oSeed, oSeed.getUnlocalizedName());<br> GameRegistry.registerItem(oShardPiece, oShardPiece.getUnlocalizedName());<br> GameRegistry.registerItem(oIngot, oIngot.getUnlocalizedName());<br> GameRegistry.registerItem(ItemModFood, ItemModFood.getUnlocalizedName());<br> GameRegistry.registerItem(Copper, Copper.getUnlocalizedName());<br> GameRegistry.registerItem(Topaz, Topaz.getUnlocalizedName());<br> GameRegistry.registerItem(Citrine, Citrine.getUnlocalizedName());<br> GameRegistry.registerItem(Yttrium, Yttrium.getUnlocalizedName());<br> //Tools<br> GameRegistry.registerItem(oPick, oPick.getUnlocalizedName());<br> GameRegistry.registerItem(oAxe, oAxe.getUnlocalizedName());<br> GameRegistry.registerItem(oSpade, oSpade.getUnlocalizedName());<br> GameRegistry.registerItem(oSword, oSword.getUnlocalizedName());<br> GameRegistry.registerItem(oHoe, oHoe.getUnlocalizedName());<br> GameRegistry.registerItem(oSpear, oSpear.getUnlocalizedName());<br> //Armor<br> GameRegistry.registerItem(oHelmet, oHelmet.getUnlocalizedName());<br> GameRegistry.registerItem(oChestplate, oChestplate.getUnlocalizedName());<br> GameRegistry.registerItem(oLeggings, oLeggings.getUnlocalizedName());<br> GameRegistry.registerItem(oBoots, oBoots.getUnlocalizedName());<br> <br> }<br>}</p> <p>
Blocks:
</p> <p>package com.mod.blocks;</p> <p>import com.mod.creativetabs.McreativeTabs;<br>import com.mod.lib.RefStrings;</p> <p>import net.minecraft.block.Block;<br>import net.minecraft.block.material.Material;<br>import cpw.mods.fml.common.registry.GameRegistry;</p> <p>public class Mblocks {<br> public static void mainRegistry() {<br> initialize();<br> registeritem();<br> }<br> //Ores<br> public static Block ComStone;<br> public static Block TopazOre;<br> public static Block CopperOre;<br> public static Block CitrineOre;<br> public static Block YttriumOre;<br> //Crops<br> public static Block oCrop;<br> <br> public static void initialize() {<br> //Ores<br> ComStone = new ComStone(Material.ground).setBlockName("ComStone").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":ComStone");<br> TopazOre = new ComStone(Material.ground).setBlockName("Topaz Ore").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":TopazOre");<br> CopperOre = new ComStone(Material.ground).setBlockName("Copper Ore").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":CopperOre");<br> CitrineOre = new ComStone(Material.ground).setBlockName("Citrine Ore").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":CitrineOre");<br> YttriumOre = new ComStone(Material.ground).setBlockName("Yttrium Ore").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":YttriumOre");<br> //Crops<br> oCrop = new ObsidianCrop().setBlockName("oCrop").setCreativeTab(McreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":ocrop");<br> }<br> <br> public static void registeritem() {<br> GameRegistry.registerBlock(ComStone, ComStone.getUnlocalizedName());<br> GameRegistry.registerBlock(oCrop, oCrop.getUnlocalizedName());<br> GameRegistry.registerBlock(TopazOre, TopazOre.getUnlocalizedName());<br> GameRegistry.registerBlock(CopperOre, CopperOre.getUnlocalizedName());<br> GameRegistry.registerBlock(CitrineOre, CitrineOre.getUnlocalizedName());<br> GameRegistry.registerBlock(YttriumOre, YttriumOre.getUnlocalizedName());<br> }<br>}</p> <p>
The basics:
Remember to put in these.
public static Item oIngot;
oIngot = new Item().setCreativeTab(McreativeTabs.tabItems).setUnlocalizedName("oIngot").setTextureName(RefStrings.MODID + ":oShardPiece");
Can you make more than 16 tutorials please?
Also, I wonder how long and often you make these tutorials.
I'm working on re-doing most of these tutorials, along with formatting them to archive older version tutorials, to allow for an easier update to say 1.8.
It takes me about an hour to two hours to do a single tutorial. Just finding the time is the hard part for me.
When I open Eclipse, there is no Browse button. What do I do and am I even opening Eclipse correctly? I am opening eclipse.exe and I don't know if that is right. I'm so sorry with all the questions I've been asking, I hope you understand!
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
This is just basic computer use. If you open Eclipse, a window will pop up asking you which workspace you want to work in.
Okay, not sure if this has been resolved for anyone else yet but I am running a Mac and when I enter "./gradlew setupDecompWorkspace I end up with this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':recompMinecraft'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Any suggestions?
Thanks!!!
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
When I try to import my Reference class it says 'Reference cannot be resolved to a variable' and wont let me import.
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
You probably imported the wrong Reference class - there are two including the one you made.
No, after making the Reference class, when I go to import it into the Main Class, I hover over Reference but it only says 'Reference cannot be resolved to a variable' and I can't import the Reference class I made.
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
Post relevant code.
I am trying to make a tool set using a ModArmory class, but I get an error because of "EnumHelper"
Have you imported it?
Uhh I need some help, im getting an error on line 51 because of the "x, y" part heres a paste bin link. http://pastebin.com/MGCDms9g
Please tell me why its giving me an error. I clicked Ctrl+Shift+O like 20 times so I know I dont need to import anything. So what do i do?
Change it to chunkX and chunkZ instead, based on your parameters. Also, move those two #addOreSpawn methods to the #generateSurface method - It will make your code more manageable and easier to read.
Thanks!
How do I make multiple items? Are they all in the same class? Also I couldn't figure out how to make items show up in the creative tab.
Yes, multiple items all go in ModItems. Are you sure in YourModItem that you are using ModTabs.whateverYourTabNameIs as the tab?
My tools don't show up in game despite all of code being there. I have the items registered, the ModArmory is complete and also the items files.
Is it possible/necessary to make a tutorial on creating add-ons for other other mods, and/or using APIs from other mods?
Yes you can make multiple items in the same class. You can look at my items and blocks. I could in fact combine the blocks and items into one class or put them into separate classes. Remember the .setCreativeTab. As you can see I put it in the McreativeTabs.tabItems.
Items:
Blocks:
The basics:
Remember to put in these.