Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. 1.7.10 is no longer supported on this forum. Please update if you want support.
  2. It will throw an NPE, however, not in the line you quoted. It's actually the next line, when entity is being used (entity.setDead()).
  3. Try updating to Java 8. And set your Java compatibility in your guild.gradle to 1.8.
  4. 1.7.10 is no longer supported on this forum. Please update if you want support.
  5. Make your own thread. This thread is almost 6 months old.
  6. You already had a post exactly like this one, in which you just didn't respond anymore. Don't make duplicate threads. Also:
  7. See section "Problematic Code" issue #5. Also, I just noticed you're using 1.7.10 or older. Those versions are no longer supported on this forum.
  8. http://mcforge.readthedocs.io/en/latest/networking/simpleimpl/
  9. No, you're still using 1.7.10:
  10. As far as I know, ForgeMultipart's latest version on Curse is for Minecraft 1.7.10, which is no longer supported on this forum. I might be stupid, but what do you mean with this? The chicken_bones'?
  11. 1.7.10 is no longer supported on this forum. Please update if you want support.
  12. Right now, everything from 1.8.9 and higher are supported on this forum. However, we strongly encourage modders to use the latest version. As for which build to use: the release of the first recommended build is when most modders start updating their mods. After that, it's relatively safe to use the latest Forge version. I'd say you should always use the latest recommended build, unless a mod specifies otherwise.
  13. 1.7.2 is no longer supported on this forum.
  14. No, he can't: That only get's posted on the client side You don know which key get pressed You can't interact with anything from there I don know for sure, but I think KeyInputEvent only get's called when there's no Keybinding for that keycode.
  15. Did you really not get that? He's asking how to interact with the player inventory from code, because, you know, he's modding.... @OP, Item::onItemRightClick is called when you right click the Item. If you want to check if the player e.g. is sneaking, you can check if Entity::isSneaking.
  16. There was a custom shapeless recipe matching system added in Forge 1.12.2-14.23.0.2552. Maybe there's a bug in there. Can you try with a version below that?
  17. From a bit of reading, this would work: make a new WorldType (it's automatically registered) and override WorldType::getChunkGenerator to return a custom IChunkGenerator, in which you only generate the first chunk.
  18. You can try overriding Item::isValidArmor to return true if the EntityEquipmentSlot is not EntityEquipmentSlot.OFFHAND. Also, why not fix the bugs instead of making the player unable to use this Item in the offhand? What are the bugs?
  19. I haven't used Eclipse in a few years, so I don't know if there's an option for that. I'd imagine there is, but then again, it's Eclipse...
  20. You're probably using Java 9, where -Xincgc has been removed. Also, FML doesn't work with Java 9 (yet), so you'll have to downgrade to Java 8 anyway.
  21. Are you sure you aren't just setting the NBT values way too high? What are the NBT values? For example, cooked beef/pork has 8 "food" + 0.8 saturation and cooked chicken gives 6 "food" + 0.6 saturation. Also this code will crash: if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { playerIn.openGui(ElectronicLunchbox.instance, ModGuiHandler.electronicLunchboxGuiID, worldIn, (int)playerIn.posX, (int)playerIn.posY, (int)playerIn.posZ); } Keyboard is a class only available on the client side, so this will crash on the server. I assume you want the player sneaking to be abe to open the GUI, so you can use Entity::isSneaking instead.
  22. larsgerrits

    cps

    We assumed you had basic Java knowledge, which you should have before modding Minecraft...
  23. This is the official documentation for events, you should give it a read: http://mcforge.readthedocs.io/en/latest/events/intro/ This is for 1.11.2...
  24. It's an issue with Biomes O' Plenty, make sure you're using the latest version, and report it to the author if it still crashes.
  25. Have you tried making an ItemPickupEvent handler?
×
×
  • Create New...

Important Information

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