Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. override onUpdate in your custom item class(If it is ur own item)
  2. Welcome to the magic of java 8 check out lambda expressions
  3. http://www.tutorialspoint.com/java/java_using_comparator.htm there you go EDIT: Maybe show your attempts and tell us ur problem?
  4. You can use Collections.sort, create your own comparator that checks for the duration of the potion
  5. The main thing you should know is that you will limit the amount of items that ur users create anyway, because you are setting restrictions. Your machine will have 10 different features? That will make 2^10 different types of machines. Your item can be any type of tool and 5 different miningspeeds? That will make 4*5 items.
  6. I hate you ernio. You answer to fast.
  7. I guess we can assume diesieben knows a lot
  8. Well using custom Main Menus should only be used in custom modpacks
  9. well I cant see him using that. But maybe im blind. I tend to beeing blind .
  10. if(FMLCommonHandler.instance().getEffectiveSide().isClient()){ FMLCommonHandler.instance().bus().register(new KeyBindingHandler()); KeyBindingHandler.preInit(); } Dont do this. use ur proxy for deciding if ur on server or client side.
  11. correct me if Im wrong but i never see u using that properties.
  12. Look closer at your 2nd if condition.
  13. If nothing else helps download a New forge ,run setupDecompWorkspace and gradlew eclipse, Then copy The SRC folder into The New project
  14. So. You want to automatically send commands to a Server in a predefined Intervall and reconnect when disconnecting.. I am not sure if I want to know where this is heading.
  15. "I'm currently having problems with Fishing (don't know how to check if player is fishing and if player fished anything), Herbalism (don't know how to check if wheat is fully grown)"
  16. a tickhandler is running on a server. to implement a tickhandler you need to add extra code. how do you want to add extra code without adding extra code? If u want to use a mod u need to install forge
  17. gradlew is telling u what the error is. go ahead and fix it
  18. how do you want to use a tick handler on a non forge server. you cant run your own code on a non forge server, because how would u want to execute ur code?
  19. I am confused what you want. Do you want to send a package from the client to the server to make it change a block?
  20. If you want something to happen in predefined periods of time you probably want to use tickhandler
  21. try this if (itemstack.getItem()==Items.stick) epicMethod()
  22. Plot twist: He is never searching for the item that comes out. (stack.getItem() != null && stack.getItem() == Items.baked_potato)
  23. I dont know why you are chzecking if the item as pos0 is a stick? Also dont compare items by their unlocalized names. And minecraft is not the place for learning java
  24. look what you wrote, the mistake is really obvious
×
×
  • Create New...

Important Information

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