Jump to content

sep87x

Members
  • Posts

    68
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Germanie
  • Personal Text
    That guy from there.

sep87x's Achievements

Stone Miner

Stone Miner (3/8)

3

Reputation

  1. I knew that there was something wrong with the setup >w< Thanks anyways.
  2. Still doesn't seem to work. Now there's this error. Have I screwed something up in the process of installation? It seems so.
  3. Yesterday, a bird tweeted me that there is a new Forge update available, namely 10.13.0.1180, so I updated my workspace to the latest recommended version by the corresponding tutorial in Forge's Wiki. However, as I updated my 1.7.2 mods today and wanted to run the client it didn't even show the Minecraft window; literally no sign of life when I tried to launch it. The only thing I saw in the system log was that the LaunchWrapper class tried to launch the main class, but it failed as it can be seen from the recent log. I seriously don't know where to start since this is the first time this error occured. Any recommendations on how to fix this issue?
  4. ... but it matters. You can't simply break a Java convention.
  5. Not really. It's always better to create an extra class implementing an interface just to make your whole project look neatly arranged. However, if you're merging multiple functionalities of the same type to one big compound of methods, then you could also make some kind of handler which handles all events of the same type. Speaking of that, wouldn't it be a good idea to implement the IFuelHandler interface directly into the item to which it belongs to?
  6. Most of the parts of this tutorial still work. The only thing you'll need to do is change Item.customItem.itemID to Item.getIdFromItem(Items.apple) If your problem is to determine the item's ID, then please mention it in your root post. Otherwise we're all unable to help.
  7. You may want to look up the corresponding page in the Forge Wiki. Otherwise I highly recommend learning more about interfaces in Java.
  8. I need to get the stack out of the player's inventory container which is currently being hovered with the mouse. Basically, I have this code set up which checks for a keybinding and invokes onKeyPressed() when the button is pressed. (The KeyBindingWrapper is a utility class I wrote for myself, it's not available in Forge) What's the best way to accomplish this? I've looked through the inventory's GUI and container class, but I haven't found fields or methods which could be of any use yet.
  9. Well, for some reason and I can't explain why, the event handling worked as I restarted and reopened my IDE for the third time in total. Hope it'll stay working as good as it does now.
  10. ForgeUtils.getForgeEventBus().register(new SkillCombatListener()); is basically just an alias for MinecraftForge.EVENT_BUS.register(new SkillCombatListener()); I wrote the ForgeUtils class for me so it's easier for me to get into the new 1.7.2 system. In the first place I wrote the class to distinguish the Forge event bus from the FML event bus because they're two things on their own ... soooo the typo can't be at this place. Edit: I might just take a nap and make a new attempt tomorrow. I'll let you guys know whether your advice was helping me out or not.
  11. @SubscribeEvent public void onLivingHurt(LivingHurtEvent event) { System.out.println("FEHFOUHUOjhgriwgwrg"); if (!(event.entity instanceof EntityPlayer)) { System.out.println(event.entity.getDistanceToEntity(ForgeUtils.getPlayer()) + " " + event.source.damageType); } } I already expected that, but I was too lazy to change this. However, this wouldn't change anything in how the handler works. As I said in my first post, I've already tried some standard logging (like above) but it doesn't even send the output to the console. It should work and that's my main problem here.
  12. Oh, that's my fault. I misspelt something in my post. Of course I want the hurt event, not the kill event.
  13. Hey, I'm back with another problem, At first, thanks to everyone who was helping me in my previous question about how to come along with the "new" event system. However, I discovered another hurdle on my way to a new release. I set up a LivingHurtEvent and want to find out the distance between the player and the dead hurt entity, but for some reason Forge won't let me know if there's been an entity murdered hurted. Here the most important code snippets: Main Mod Class: @EventHandler public void onInit(FMLInitializationEvent event) { ForgeUtils.getForgeEventBus().register(new SkillCombatListener()); // registered at MinecraftForge.EVENT_BUS } Death Handler: @SubscribeEvent public void onLivingHurt(LivingHurtEvent event) { if (event.entity instanceof EntityLiving && !(event.entity instanceof EntityPlayer)) { System.out.println(event.entity.getDistanceToEntity(ForgeUtils.getPlayer()) + " " + event.source.damageType); } } I've tried to find typos in the code with some basic console logging but Forge doesn't even seem to call the LivingHurtEvent. Though LivingHurtEvent extends LivingEvent it doesn't seem to do anything. Am I just missing something or is this a bug? Greets from Germany ~sep87x
  14. Hello everybody, recently I've been trying to get into the "new" Forge 1.7.2 and I'm kind of saddened because it seems like the tick handling system got a complete overhaul. In 1.6.x and earlier you were able to implement the ITickHandler interface to detect ticks on client- and server side. However, this doesn't seem to work anymore. My whole ideas are based on these tick handlers and I'd seriously like to know how to get this tick interface back. I've seen a TickEvent in some package, but it doesn't seem to do the job like I imagine. So where did this interface go and how do I need to set up a tick handler in the 1.7.x version? Greets from Germany ~sep87x
  15. Yes, I am. That's what confuses me ...
×
×
  • Create New...

Important Information

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