Jump to content

Cyani

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Cyani

  1. Anyone?
  2. I need a bit of help with the textures for my mod. The Problem is that I do not know what folder I put my textures in, nor where that folder is. Please help. Thanks - Luke
  3. your mod doesnt go into minecraft.jar, the zip goes into mods folder. You have to make an mcmod.info, there is no other way
  4. Ok thanks, but , are there any detailed tutoraials on this? I am still a bit confused
  5. Ok thanks, but , are there any detailed tutoraials on this? I am still a bit confused
  6. I have a render, but what would I do to make the block show up as it?
  7. I have a render, but what would I do to make the block show up as it?
  8. for the link. he didnt help me at all. I already knew that
  9. for the link. he didnt help me at all. I already knew that
  10. Told the solution to the problem. http://www.minecraftforge.net/wiki/Containers_and_GUIs Tutorial on GUI's and stuff. Should get ya going. Once you can open your own GUI from an item using player.openGui method (If it's still named so?) then you should be ready to do what you are attempting to do ^^ Finally, some actual help. You, sir, are a fricking GENIUS
  11. Told the solution to the problem. http://www.minecraftforge.net/wiki/Containers_and_GUIs Tutorial on GUI's and stuff. Should get ya going. Once you can open your own GUI from an item using player.openGui method (If it's still named so?) then you should be ready to do what you are attempting to do ^^ Finally, some actual help. You, sir, are a fricking GENIUS
  12. Are there any tutorials on this?
  13. Are there any tutorials on this?
  14. Anyone? Please!
  15. Anyone? Please!
  16. Does anyone actually have any code I can use? I am not too good with understanding how the GUI part of minercaft works, but I need some code so I can finish my mod.
  17. Please stop arguing and get back to the point. Look at my code listed a few posts above and tell me how I implement a way of opening the Crafting Gui From An ITEM --thanks
  18. It still doesnt work, i dont know why. Could someone give me an exact tutorial of what to do? heres my code: My Basefile: //package package cyani.portutils; //imports start of list import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.LanguageRegistry; import cyani.core.CommonProxy; import cyani.core.ClientProxy; //end //mod info @Mod(modid="PortableUtils", name="Portable Utilities", version="1.0.0") //sided requirement @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class PortableUtilities { @Instance("Portable Utilities") public static PortableUtilities instance; private final static Item PortableCraftingTable = new PortableCraftingTable(5000).setUnlocalizedName("PortableCrafter");; public static CreativeTabs PortableUtilities = new CreativeTabs("tabPortUtils") { public ItemStack getIconItemStack() { return new ItemStack(PortableCraftingTable, 1, 0); } }; @SidedProxy(clientSide="cyani.core.ClientProxy", serverSide="cyani.core.CommonProxy") public static CommonProxy proxy; @PreInit public void preInit(FMLPreInitializationEvent event) { } @Init public void load(FMLInitializationEvent event) { proxy.registerRenderers(); LanguageRegistry.addName(PortableCraftingTable, "Portable Crafting Table"); LanguageRegistry.instance().addStringLocalization("itemGroup.tabPortUtils", "en_US", "Portable Utilities"); //Creative tab setting PortableCraftingTable.setCreativeTab(PortableUtilities); } @PostInit public void postInit(FMLPostInitializationEvent event) { } } and here is my PortableCraftingTable.java code: package cyani.portutils; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class PortableCraftingTable extends Item { public PortableCraftingTable(int id) { super(id); }{ this.setMaxStackSize(1); } @Override public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(!world.isRemote) { player.displayGUIWorkbench(x, y, z); } return true; } }
  19. Doesnt work! Screenshot: http://i.imgur.com/zX0WBDy.png
  20. I put the code in my portable crafting table . java file, which is what my items extends, and I doesnt crahses minecraft when I try to use it!
  21. It doesnt Work!
  22. How do I make it open the crafting table GUI?
×
×
  • Create New...

Important Information

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