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.

TLHPoE

Members
  • 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. 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
  4. 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");
  5. You could look into how the /give command works. I'm 100% sure it's method uses the item's/block's ID.
  6. 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
  7. Here's a video: http://www.youtube.com/watch?v=euGIvUfWA6M&feature=youtu.be
  8. 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?
  9. 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?
  10. 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
  11. 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
  12. Oh, thanks. Forgot about unlocalized names.
  13. TLHPoE replied to TreeBek's topic in Modder Support
    Try looking into the nether portal block class for how it teleports the player back to the overworld.
  14. 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(); } }
  15. Try using EntityItem. There's a variable for the amount of time it takes to pick up.
  16. 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.
  17. 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
  18. 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; }
  19. Oh, found the problem. I was using the wrong parameters for the addInformation method.
  20. The breaks fixed the depositing/withdrawing part. Information still doesn't display though. :I
  21. What would the distance variable be?
  22. 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.
  23. It doesn't crash or give off errors any more, but it never displays the information. http://pastebin.com/8Z8P8pUb

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.