Everything posted by larsgerrits
-
version & libraries finished with 1 failure
1.7.10 is no longer supported on this forum. Please update if you want support.
-
Detect entity you're looking at
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()).
-
Issues with "gradlew setupDecompWorkplace"
Try updating to Java 8. And set your Java compatibility in your guild.gradle to 1.8.
-
1.7.10 won't install
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
Make your own thread. This thread is almost 6 months old.
-
MCP Eclipse | How can i add a login panel?
You already had a post exactly like this one, in which you just didn't respond anymore. Don't make duplicate threads. Also:
-
TileEntity inventory readFromNBT bug.
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
http://mcforge.readthedocs.io/en/latest/networking/simpleimpl/
-
1.7.10 Crash, why ?
No, you're still using 1.7.10:
-
ForgeMultiPart
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'?
-
Modded Server Setup using Fluctis
1.7.10 is no longer supported on this forum. Please update if you want support.
-
Questions: Latest or Recommended/Which MC versions are supported?
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 forge help
1.7.2 is no longer supported on this forum.
-
onItemLeftClick?
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.
-
onItemLeftClick?
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.
-
[1.12.2] Shapeless Ore Recipes w/ Single Ingredient Type can be Substituted for Any Item
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?
-
[Solved] Need some guidance on custom world generation
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.
-
Make item not wearable on offhand
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?
-
Unrecognized option: -Xincgc
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...
-
Unrecognized option: -Xincgc
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.
-
Food Item with changing hunger values
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.
-
cps
We assumed you had basic Java knowledge, which you should have before modding Minecraft...
-
Need A ItemPickup Event For Achievements [1.11.2]
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...
-
Client Crash 1.12.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]
Have you tried making an ItemPickupEvent handler?
IPS spam blocked by CleanTalk.