Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. Hey everyone, I wanted to split up my mod into parts, because one felt more like an addon. So I finished my first, compiled and its all just fine. Question right now is how to use it as a basic for the second? I know that the first thing I need to do is set the dependencies, but how do I get a decompiled version of the mod that works when I throw it in the mods folder?
  2. Another idea, if you have a Server available, would be to connect to that via Sockets and let it request The most recent Version and compare that to The actual. That would mean no need to download a file every time
  3. If you use gradlew setupDecompWorkspace to setup ur workspace you will have The whole Minecraft code decompiled under referenced libraries
  4. Read my post. You dont use breakevent to drop items. You use harvest drops. U just need to fix ur errors and itll work
  5. It is casting a Wolf to player BC u tell it to do so. The event gets called every time an entity is diing. Even if its due to Fall DMG, Explosion, wolves what so ever. Before you cast The source to player, check if it is an instance of player and you are fine
  6. [.code] Epic code here[./code] (Of course without the dots I dont know how to post unformatted text) you are clearing the list and then you iterate over the size.. so you will ALWAYS iterate over an empty list. so you wont be doing anything.
  7. you are getting a worldobj inside that method. use that and iterate over the list from getEntitiesWithinAABB
  8. when do you want it? on random tick? maybe World#getEntitiesWithinAABB can help you
  9. I only used HarvestDrops and BreakSpeed and its working. show your code? are u using subscribe annotations? are u registering ur event handler?
  10. Look up the signature of the method u want to override. ask eclipse for help with overwriting. check if u extended the class correct.
  11. you need to learn java seriously. the @override annotation is there to warn you that you are NOT overwriting. and you are like "oh its giving me a compile error, ill better be deleting that"
  12. Minecraft is not designed to show Websites ingame
  13. Oh I missunderstood. I thought u wanted The DMG like DMG when hitting an enemy
  14. There is no need to use that. Just create The recipe and give an enchanted itemstack as output
  15. Wasnt it Item#addEnchantment? Enchantments ALWAYS need nbt. How else would u store The information?
  16. First of all: Code tags please. Second. I dont think you can change The DMG of vanilla items with nbt. Whats you could do is add enchantments to The items
  17. You overwrite The method in The item
  18. Oh yeah dumb me. The return says if The interaction is sucessfull
  19. No idea where these are stored, since I never messed with them sorry.. Try to use ur idea and check The EntityPlayer. Other way would be to search The gui package, look where The statistics gui is and how it accesses The informations. Second way should be The best
  20. And please please please use spoiler tags for logs and code tags for code..
  21. This forum is for modder support, not for supporting player that need help instaling and playing mods. There are tons of Videos out there showing you how to do that.
  22. I messed a lot with that and it seems that set harvest level wont work for vanilla Blocks as you might expect. My solution was to use breakspeed check for (in my case). Iron ore, if its iron speed It up and you got The harvest speed. For The drops use harvest drop,check for diamonds,if its diamond ore and The player isnt already getting items add some diamonds (make sure to check that The list is empty so he wont get diamonds twice when mining with iron)
  23. Are you sure The code gets called? That ur statements are turning true
  24. You could access the Statistik used by vanilla itself or create eventhandler to save all the things you want
  25. 1.5.2 is no longer supported. Update to 1.7/1.8 please
×
×
  • Create New...

Important Information

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