Jump to content

TLHPoE

Members
  • Posts

    638
  • Joined

  • Last visited

Everything posted by TLHPoE

  1. Oh I feel like a retard. THANKS MAZE.
  2. How would I find an available ID for my slot? In my container, I have the player's inventory and my 6 slots. How would I decide what numbers to use? ContainerAccessories:
  3. Oh. Thanks.
  4. I'm currently trying to make my custom furnace open up the default Minecraft's craft GUI (I'll be making my own Container files and GUIs later), but it never opens the GUI. I know it's firing up because the prints are being printed in console. GuiHandler: http://paste.minecraftforge.net/view/9c1d2f1c BlockGFurnace: http://paste.minecraftforge.net/view/8e45bcf6
  5. My bad, the /give command uses an ItemStack. You could get the item itself by using the findItem method in GameRegistry. All you need is the mod's ID and the item's name. Item item = GameRegistry.findItem("ic2", "copperIngot");
  6. You could look into how the /give command works. I'm 100% sure it's method uses the item's/block's ID.
  7. I'm currently trying to make my mob use my armor and an iron sword, but it won't equip anything. Am I missing something? http://gw.minecraftforge.net/XD6X
  8. Here's a video: http://www.youtube.com/watch?v=euGIvUfWA6M&feature=youtu.be
  9. Don't really understand, but would I make a TickHandler, add a method to count the ticks, and then make a call to the TickHandler from the Event?
  10. I had to mess around with a bunch of stuff, but whenever I kill a pig, it prints nothing. EventEnderDragon EventBase DarkOriginsEvent Do you have any other suggestions to try to add a delay?
  11. I'm currently trying to add a 2 second delay after a pig's death, but it just ends up freezing the pig for 2 seconds and then doing everything else. Is there a way to wait 2 seconds without freezing the game's thread? EventEntity
  12. I'm currently trying to make my mob use the biped model. Every time I spawn it, it has the right texture, and the right model. But when I hit it, it just starts stuttering everywhere. Am I doing something wrong? DarkOriginsEntities EntityDroneI RegistryBase
  13. Oh, thanks. Forgot about unlocalized names.
  14. Try looking into the nether portal block class for how it teleports the player back to the overworld.
  15. I'm currently messing around with my items, and then I finally noticed that all my items are named "Crate Series 1". I have more mods in my workspace and their names are "Crate Series 1" too. I'm guessing that my mod with "Crate Series 1" is the last mod loaded. Am I doing something wrong? package assets.tf2stuff; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import assets.tlhpoe.ConfigurationUtil; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.*; import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "tf2stuff", name = "TF2 Stuff", version = "1.0", dependencies = "required-after:tlhpoe") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class TF2Stuff { public static Item key; public static Item crate1; @Instance("tf2hats") public static TF2Stuff instance = new TF2Stuff(); @EventHandler public void preInit(FMLPreInitializationEvent event) { ConfigurationUtil.addItemID("Key"); ConfigurationUtil.addItemID("Crate Series 1"); } @EventHandler public void init(FMLInitializationEvent event) { key = new ItemKey(ConfigurationUtil.getID(0, "Key")).setCreativeTab(CreativeTabs.tabFood).setTextureName("key"); crate1 = new ItemCrate(ConfigurationUtil.getID(0, "Crate Series 1"), 1).setCreativeTab(CreativeTabs.tabFood).setTextureName("crate"); LanguageRegistry.addName(key, "Mann Co. Supply Crate Key"); LanguageRegistry.addName(crate1, "Crate Series 1"); } @EventHandler public void postInit(FMLPostInitializationEvent event) { ConfigurationUtil.postInit(); } }
  16. Try using EntityItem. There's a variable for the amount of time it takes to pick up.
  17. Is there anyway to add another line of information to an already existing item? Without making it a coremod? An already existing item, like I get a diamond sword and craft it with my item and it returns the diamond sword with a new list of information.
  18. I made my item send a message to the player to check the mode the item is in, but the message always displays twice. The chat to the player is on line 20 & 21. http://pastebin.com/zHEV8up6
  19. I just semi-finished my lightning sword. It basically shoots lightning where the player is pointing when they right click. Only problem is that the flames from the lightning strike spawn right next to the player. Is there anyway to stop this? public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer player) { Random r = new Random(); player.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack)); par1ItemStack.damageItem(3, player); Vec3 vec3 = player.getPosition(1.0F); Vec3 vec3a = player.getLook(1.0F); Vec3 vec3b = vec3.addVector(vec3a.xCoord * 64, vec3a.yCoord * 64, vec3a.zCoord * 64); MovingObjectPosition movingobjectposition = world.clip(vec3, vec3b); if(movingobjectposition != null) //null check { world.spawnEntityInWorld(new EntityLightningBolt(world, movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)); } return par1ItemStack; }
  20. Oh, found the problem. I was using the wrong parameters for the addInformation method.
  21. Works like a charm.
  22. The breaks fixed the depositing/withdrawing part. Information still doesn't display though. :I
  23. What would the distance variable be?
  24. Your UltimateGemSword class should look more like this: package yourpackage.examplemod import net.minecraft.everything.*; public class UltimateGemSword extends ItemSword { public UltimateGemSword(yourparams) { super(par1, par2Material); } @Override public void doStuff() { //example stuff } public void addInformation() { //example stuff } } To my knowledge, I don't think you should be placing methods inside of other methods.
  25. It doesn't crash or give off errors any more, but it never displays the information. http://pastebin.com/8Z8P8pUb
×
×
  • Create New...

Important Information

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