Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Everything posted by GamingTom

  1. Hi, I am looking for some help with adding an overlay to the game, something like the health bar. I have tried looking through "GuiIngame.class" but it looks complicated and I don't understand it to well. At the moment, I have: And that works, but I was looking for something that resembles: And when one of your stats changes, one or more of the little bars change. I would create the textures myself, but I just need to know how to render them and for the changes to take place. If anyone would kindly walk me through what I am asking for, of send me to a useful tutorial, I would great
  2. Could you perhaps explain in a little more detail please? I am still learning, so any help will be great. If you know of any useful tutorials that may help in this area, that would also be good. Many thanks, Tom.
  3. How would I use the EntityItem class? I've been looking into it a little, but I don't know how I would use it. Would I need to take some code and add it to, lets say, BlockPedestal.class? I am still learning how to mod, so if you could try and explain what and how to do things, that would be great.
  4. I don't know how you would detect if an item is in the inventory, but I have been detecting when an item is picked up for my mod. For example, when an item is picked up, a specified action takes place. public class PickupHandler implements IPickupNotifier { @Override public void notifyPickup(EntityItem item, EntityPlayer player) { if (item.getEntityItem().itemID == Items.yourItem.itemID){ <perform an action> } } } Hope this helps!
  5. I am currently developing a mod based on the popular game, 'The Binding of Isaac'. I am having a little bit of trouble adding the item pedestal. What I need is a block or tile entity which renders a randomly selected item from a range of item id's which is added to an inventory slot in the pedestal. It would also be good if I can swap out the item in the inventory and for it to render the current item. I hope this makes sense and any help would greatly be appreciated. Many thanks, Tom.
  6. That doesn't seem to do what I want it to do What I want is for when the player hold right click, it constantly fires the projectile but with a certain delay in-between each fire. With the code you suggested, when holding right click, it doesn't fire a projectile. I might have added the code wrong, so again, any help would be appreciated.
  7. I don't have any useful input about the projectile rate yet (hopefully that changes when I get to the "Skeleton Machinegun" part of my "Ultrasoftcore" mod project), but after reading your second question, I took a look at the code for the soul sand block. It's not much, but it might give you a starting point. Thanks! I have successfully got the speed variables working! Can you maybe explain what I have to change that to? If so, I think it may work! I added that code to my ItemTear.class and changed 'return 0;' to 'return 32' but it doesn't seem to change anythi
  8. First things first, I have two classes (EntityTear.class and EntityThrowable.class) which I coppied straight from the Minecraft src, EntityTear was EntitySnowball. I've been looking through the 2 classes and can't figure out a way to limit how fast the item is used. What I want is maybe a second delay inbetween each item use so the entity is fired slower. My code: EntityTear.class: package tbos.entity.projectile; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.DamageSource; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; impor
  9. Hi, I'm currently developing a mod based on 'The Binding of Isaac' and I have an item which will be modified depending on which items are picked up. However, I don't know how to change a variable in another class when a function in another is called. I tried using a 'public static' variable but I recently read that they are only ever updated at the start of an application, and I need them to always be updated. Here is my Pickup Handler class: package tbos.network; import tbos.items.ItemInfo; import tbos.items.Items; import tbos.player.Stats; import net.minecraft.entity.item.EntityIte
  10. Ah, many thanks everyone! I had the achievement for making a workbench, which needed the 'Getting Wood' achievement first. So I changed it to 'Getting Wood' and it works!
  11. Yeah, I realized that I only needed it once after posting, and swiftly changed it, however, I tried it with it only once, in both PreInit and Load, however that didn't work. Which one does it need to be in? PreInit or Load?
  12. Hi, thanks for the replies. I decides to do a bit of research on 'IPickupNotifier' and found some tutorials. However, they don't seem to be working... I decided to test it with picking up an item and receiving an achievement. I believe I have done it right, but I'm not sure, here is my code: Any help with this would be greatly appreciated!
  13. I need some help figuring out if there is a way to perform a certain action when an item is picked up or when it's detected in the players inventory. At the moment I have quite a few items that I'm wanting to change a variable of another item when the item is picked up. However, I don't know if this is possible or if it is, how I'm meant to do it. Is there an 'onItemPickup' function or something? And is there somewhere to find all the functions and what they do? I hope this makes sense, if not, please tell me and I'll try and make myself clear. Many thanks, Tom.
  14. Thanks for all your help, Lex. I managed to get the forge install working on another computer and by copying over the files, I managed to fix the issue. So I'll just have to install it on another computer from now on. But once again, thanks for all your help!
  15. After I reinstalled my Java's, I re-added the paths of them. And after typing "java -version" in a command prompt, I get: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Thomas>java -version java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) C:\Users\Thomas> So it might just be something screwing up with my computer... I'll try running install.cmd on another computer and try copying the files over. I'll report back soon with
  16. Okay, hopefully this is the right one! http://pastebin.com/pnsPri6P
  17. Didn't know if you wanted me to change the fml.py from the same install or a clean install so... Clean install log with edited fml.py: http://pastebin.com/ZpzZnQHW Already installed log with edited fml.py: http://pastebin.com/pnsPri6P Hope this helps.
  18. Okay, I assume you meant run the install.cmd after making the changes, and these are the results of the command prompt: C:\Users\Thomas\Downloads\forge\fml>echo off Traceback (most recent call last): File "install.py", line 56, in <module> decompile=options.decompile, gen_conf=False) File "install.py", line 8, in fml_main from fml import download_mcp, setup_mcp, decompile_minecraft, apply_fml_patc hes, finish_setup_fml File "C:\Users\Thomas\Downloads\forge\fml\fml.py", line 663 pprint(results) ^ IndentationError: unexpected indent Press any key to continue .
  19. After trying to install multiple versions of the Forge source from http://files.minecraftforge.net/, I always get a fatal error. I've tried about 5 different versions of the Forge src but nothing seems to work. Log from "\forge\mcp\logs\mcp.log": http://pastebin.com/wRWAkKEn I also tried to open the files in eclipse from "C:\forge\mcp\eclipse" but it fails to launch the game with the error: Aug 29, 2013 4:21:35 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker Aug 29, 2013 4:21:35 PM net.minecraft.launchwrapper.Log
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.