![](https://forums.minecraftforge.net/uploads/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
version & libraries finished with 1 failure
larsgerrits replied to Unkonwen's topic in Support & Bug Reports
1.7.10 is no longer supported on this forum. Please update if you want support. -
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()).
-
Try updating to Java 8. And set your Java compatibility in your guild.gradle to 1.8.
-
1.7.10 is no longer supported on this forum. Please update if you want support.
-
Forge 1.11.2 crashing before title screen loads in
larsgerrits replied to Ultra_Bendy_794's topic in Support & Bug Reports
Make your own thread. This thread is almost 6 months old. -
MCP Eclipse | How can i add a login panel?
larsgerrits replied to mpcraft084's topic in Modder Support
You already had a post exactly like this one, in which you just didn't respond anymore. Don't make duplicate threads. Also: -
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.
-
Calling a function with parameters from a separate class
larsgerrits replied to RustyGearGames's topic in Modder Support
http://mcforge.readthedocs.io/en/latest/networking/simpleimpl/ -
No, you're still using 1.7.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'?
-
1.7.10 is no longer supported on this forum. Please update if you want support.
-
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.
-
1.7.2 is no longer supported on this forum.
-
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.
-
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.
-
[Solved] Need some guidance on custom world generation
larsgerrits replied to American2050's topic in Modder Support
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. -
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?
-
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...
-
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.
-
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.
-
We assumed you had basic Java knowledge, which you should have before modding Minecraft...
-
Need A ItemPickup Event For Achievements [1.11.2]
larsgerrits replied to Emerald_Galaxy's topic in Modder Support
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... -
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.
-
Need A ItemPickup Event For Achievements [1.11.2]
larsgerrits replied to Emerald_Galaxy's topic in Modder Support
Have you tried making an ItemPickupEvent handler?