Posted August 30, 20196 yr Hi, and thanks for reading. I'm having a strange problem setting up Eclipse w/Forge 1.14.4 where I don't have any references to the net.minecraft.item.ItemBlock class. Let me walk you through my setup and what I've tried so far. My system is a standard Windows 10 64-bit Intel PC. I have Java JDK and JRE version 1.8.0_221 installed: JAVA_HOME is set to the JDK directory: First, to start fresh I rebooted my PC, then deleted both the .gradle and .eclipse folders from my C:\Users\<myUser> directory, and also deleted my Eclipse workspace folder. Next, I downloaded the latest 1.14.4 Forge MDK from https://files.minecraftforge.net/: I unzipped it to an empty directory named "TestMod": I didn't change anything in build.gradle, I left it at its "factory defaults". Then, I opened a command prompt and ran "gradlew genEclipseRuns". It took about 4 1/2 minutes to do its thing and said it was successful: Then, I ran "gradlew eclipse", successfully: Then, I opened Eclipse version 2019-06 (4.12.0) and selected File > Import > Existing Gradle Project: I set the project root directory to the TestMod folder that I've been working in: I clicked Next to go the Import Options: Without changing anything, I clicked Next again. It took a couple seconds to work, then it showed this: In ExampleMod.java, trying to import a reference to ItemBlock fails to resolve (and using CTRL-SHIFT-O to auto-create an import statement finds 0 references). I then saved the file, closed Eclipse, and ran "gradlew --refresh-dependencies": I then re-opened Eclipse, and refreshed my Gradle project: ... but no joy, the reference to ItemBlock still can't be resolved. Anything obvious that I'm doing wrong? Thanks! Burt
August 30, 20196 yr Author lol whoops. Is that brand new in 1.14.4? I was following a tutorial for 1.14.3 and it was still using the ItemBlock class, which is why I was so confused why mine wasn't matching up. I looked at a bunch of changelogs for 1.14.4 releases and I didn't see anything, either.
August 30, 20196 yr 4 minutes ago, Burt said: Is that brand new in 1.14.4? No, I don't believe so. I was following McJty's tutorials for 1.14, and he starts in 1.14.2 with BlockItem. I'm not sure what the tutorial you're using is doing. Just a heads up though, from what I understand a lot of classes have changed names in a similar way. Edited August 30, 20196 yr by TheMikeste1
August 30, 20196 yr Author 2 minutes ago, TheMikeste1 said: No, I don't believe so. I was following McJty's tutorials for 1.14, and he starts in 1.14.2 with BlockItem. I'm not sure what the tutorial you're using is doing. Just a heads up though, from what I understand a lot of classes have changed names in a similar name. Gotcha, I'll keep that in mind. Thanks for the assist, and the quick reply. FWIW, this is the tutorial I'm using: Edited August 30, 20196 yr by Burt
August 30, 20196 yr 1 minute ago, Burt said: FWIW, this was the tutorial I'm using: Yeah, that's for 1.13. Also, I've not seen his stuff myself, but I've seen some moderators say that Harry Talks uses a lot of bad practices. You might want to consider checking some other tutorials. If you haven't gone through them yet, try reading through https://mcforge.readthedocs.io/en/1.13.x/. It's outdated, but the basics are the same. Something that has also helped me a lot were the aforementioned tutorials by McJty, as well as peering through vanilla code and the MC Forge GitHub, particularly the test sections (though I mostly have used Forge code for more "advanced" things).
August 30, 20196 yr Author 1 minute ago, TheMikeste1 said: Yeah, that's for 1.13. Also, I've not seen his stuff myself, but I've seen some moderators say that Harry Talks uses a lot of bad practices. You might want to consider checking some other tutorials. If you haven't gone through them yet, try reading through https://mcforge.readthedocs.io/en/1.13.x/. It's outdated, but the basics are the same. Something that has also helped me a lot were the aforementioned tutorials by McJty, as well as peering through vanilla code and the MC Forge GitHub, particularly the test sections (though I mostly have used Forge code for more "advanced" things). ? thanks for the tips buddy!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.