Jump to content

snipes2083

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by snipes2083

  1. I am quite sure that this is functionality that many mods could take advantage of. Is there anybody out there that could help point me in the rite direction? As of the time of writing this, there has been 55 views in a short two days. It is apparent that there are a few people out there that have taken an interest in this. As of rite now, I do not have anything further to add to this but will be attempting to modify forge and some of the base classes that are involved in order to try and add this functionality. If there is anybody out there that has any advice or fore sight that would be useful to me before I attempt this, it would be greatly appreciated. Thank forge community.
  2. I have been programming since I was 13 years old and am now 29. I am no where near an expert programmer, but am able to jump in and out of many languages. While, I do not have very much experience with Java, it is very similar to many other languages. At no point would I expect somebody to write my mod as I care less about the end state of the mod than I do the learning experience of getting there. I appreciate you taking the time to look this subject up but I fear that you are going to find the same results as I did. I see that forge has some hooks put in various classes that pertain to events that are fired and are able to build there wrapper around those hooks. It almost looks to me like that area just has not really been fully completed. I would really like access to more events that are fired and do not really want to modify forge or minecraft classes. Making a forge mod that is incompatible with other forge mods completely defeats the purpose of using forge.
  3. Hello forge community. I have been apprehensive to post a question in here as I have much to learn and it appears that people that are new often get crucified for asking questions the advanced would see as simple... How ever, I feel that I have looked high and low and would like conformation that my findings are correct. I am looking for an event listener that deals with blocks. Actually the following link pretty much sums it up. http://www.minecraftforge.net/forum/index.php/topic,2462.msg18956.html#msg18956 After days of going through the code I finally stumbled on the above entry. It is quite old and I didn't want to resurrect the thread. The particular event I am interested in is one that fires when a player destroys a block, adds a block and when a block is blown up. I know that by doing the following: @Override public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5){ System.out.println("The block was destroyed"); } You can get access to this event but only for blocks that you create. My question is, Do I have to go in and add the events to one of the net.minecraftforge.event packages, modify some of the base classes or look harder because there is a way that I am missing. I thank you in advance for your time and assistance.
  4. Hello there, I would like to first say that I am by no means what you could even call a moder as I have a million questions my self. I decided to try and solve this issue, and at my level, I found that it is not quite as easy as what you had shown. This is the code that would be put in the @Init part of your main class. GameRegistry.addRecipe(new ItemStack(Item.swordWood, 1), new Object[] { "XYX", 'X', Block.planks, 'Y', new Item.swordWood }); However, the problem with this is that it does not accept a damaged item. While I have some suspicions as to ways you could go about this, I lack the experience with the base classes and forge classes to figure it out yet. On a positive note, I believe that you can use an Anvil to do the same thing that you are trying to make a recipe for. With a quick google search: [lmgtfy]minecraft anvil[/lmgtfy], I was able to come up with the following results. http://www.minecraftwiki.net/wiki/Anvil http://www.minecraftwiki.net/wiki/Anvil_mechanics On a final thought, you may be able to make a modified crafting table, with functionality of the anvil. Good luck to you.
  5. Thank you for sharing your bit of code there. I was wondering if you could or would share some of your 1.5* GUI knowledge. I have been racking my brain over it for days and it seems as though there is not a decent tutorial out for 1.5 and later as of yet. I know you don't know me and do not have a reason to care, but I am sure that I speak on behalf of many new moders when I say, it would be greatly appreciated.
×
×
  • Create New...

Important Information

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