Hey ! I just started your 1.8 tutorial ! I have an error in the Forge installation. I unzip the forge folder, and there is some missing folders : the "bin" and the "build" folders ! And when I type "gradlew setupDecompWorkspace eclipse" in Command Prompt, it says that "gradlew" isn't an internal command... Please help me D:
EDIT : OK, no problem, it's resolved, I just forgot to change the directory
EDIT 2 : But I don't have any "bin" folder, is it normal ?
So, I have a question. This is for 1.7.10, by the way. I'm trying to generate an ore in the Nether, and I followed the tutorial, but I just put the stuff that was in the generateSurface part in the generateNether part. I didn't get any errors, but the ore won't generate in the Nether. I wanted to be able to find it, so I didn't put a texture on it and I made it generate 32 times per chunk (I assume that's what it means, anyway). What could be the issue?
So, I have a question. This is for 1.7.10, by the way. I'm trying to generate an ore in the Nether, and I followed the tutorial, but I just put the stuff that was in the generateSurface part in the generateNether part. I didn't get any errors, but the ore won't generate in the Nether. I wanted to be able to find it, so I didn't put a texture on it and I made it generate 32 times per chunk (I assume that's what it means, anyway). What could be the issue?
WorldGenMinable has multiple constructors, I'm sure you should do 2 different methods because of this. Adding to the original #addOreSpawn method, you might need an addNetherSpawn method as well, like the following:
Can you please share a model for a mod in Step 4 (Proxies and Helper) I really don't understand it ! I always get errors (little light bulbs and little white crosses), and I don't know where to put methods (do they need to be in the "public class ClassName{ }" ?)
He mentions where the methods go, and tells you to put them in your class. I don't know what you mean by "model for a mod", cuz he does indeed give you the model file for a simple block and item. I'm guessing you have a bad understanding of English, since those were pretty clear.
Hi, i'm starting out modding (making not installing) and when i hover over Reference in the @Mod annotation it doesn't show me any import option and only says "Reference cannot be resolved to a variable" Thanks for the help!
Hi, i'm starting out modding (making not installing) and when i hover over Reference in the @Mod annotation it doesn't show me any import option and only says "Reference cannot be resolved to a variable" Thanks for the help!
If you have imported and created the Reference class, make sure the annotation is as following:
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
If you have only imported the Reference class, haven't created it and complained about the error here, you're not so bright.
If you have only created the Reference class, import it as (package of main class).help.Reference; and add the @Mod annotation as above.
You probably forgot to capitalize the "MODID", "NAME" and "VERSION", or you put quotes on the variables.
If you have imported and created the Reference class, make sure the annotation is as following:
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
If you have only imported the Reference class, haven't created it and complained about the error here, you're not so bright.
If you have only created the Reference class, import it as (package of main class).help.Reference; and add the @Mod annotation as above.
You probably forgot to capitalize the "MODID", "NAME" and "VERSION", or you put quotes on the variables.
I have a few things to say, one is that you can't just come onto the forums and call someone "not bright" when you know nothing about them.
And i don't think were thinking about the same step, i'm talking about the main class file near the very end and the Reference I created just wont import, plus this is the first time I've use Eclipse, and we all have those times when we don't see something obvious. I have created the Reference, but my problem is that it wont import, and I've capitalized everything correctly, but no matter how i capitalize anything, Reference will still error.
I have a few things to say, one is that you can't just come onto the forums and call someone "not bright" when you know nothing about them.
And i don't think were thinking about the same step, i'm talking about the main class file near the very end and the Reference I created just wont import, plus this is the first time I've use Eclipse, and we all have those times when we don't see something obvious. I have created the Reference, but my problem is that it wont import, and I've capitalized everything correctly, but no matter how i capitalize anything, Reference will still error.
I think we're thinking about the same step, as there's only one @Mod annotation. I don't know what you mean by "won't import", cuz all you have to do (as mentioned above) is place the following under the package:
import (package of main class).help.Reference;
I'll even show an example.
package com.hlaaftana.mods.EndOres;
import com.hlaaftana.mods.EndOres.help.Reference;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class MainClass {
(main class methods)
}
The problem may also be with your Reference class, as it should show this:
package com.hlaaftana.mods.EndOres.help;
public class Reference {
public static final String MODID = "yourmodid";
public static final String NAME = "Your Mod's Name";
public static final String VERSION = "version.number";
}
I think we're thinking about the same step, as there's only one @Mod annotation. I don't know what you mean by "won't import", cuz all you have to do (as mentioned above) is place the following under the package:
import (package of main class).help.Reference;
I'll even show an example.
package com.hlaaftana.mods.EndOres;
import com.hlaaftana.mods.EndOres.help.Reference;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class MainClass {
(main class methods)
}
The problem may also be with your Reference class, as it should show this:
package com.hlaaftana.mods.EndOres.help;
public class Reference {
public static final String MODID = "yourmodid";
public static final String NAME = "Your Mod's Name";
public static final String VERSION = "version.number";
}
like i said earlier, sometimes people don't see something obvious. that did fix it, but now its telling me "Syntax error on token ""alexbinind_forgebinindmod"", class expected" when i hover over my modid, mod name, and version. when i remove the quotation marks i put around them, it says "alexbinind_forgebinindmod cannot be resolved or is not a field" i'm just wondering if these are ignore-able or not. If its not please guide me on what to do. Like i said, im new to this, so please excuse me for anything i'm doing wrong i don't see.
like i said earlier, sometimes people don't see something obvious. that did fix it, but now its telling me "Syntax error on token ""alexbinind_forgebinindmod"", class expected" when i hover over my modid, mod name, and version. when i remove the quotation marks i put around them, it says "alexbinind_forgebinindmod cannot be resolved or is not a field" i'm just wondering if these are ignore-able or not. If its not please guide me on what to do. Like i said, im new to this, so please excuse me for anything i'm doing wrong i don't see.
sure, here. please take a look at it, i cant find what's wrong
If your Reference class is correct:
@Mod(modid = Reference.alexbinind_forgebinindmod, name = Reference."Forgebinindmod", version = Reference."A1")
should be
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
This is because you assigned the modid, name and version to variables in the Reference class, and you're using them in the main class. For example, the modid is saved in the MODID variable. In the main class, you have to get the variable from the Reference class, so you do Reference.MODID.
@Mod(modid = Reference.alexbinind_forgebinindmod, name = Reference."Forgebinindmod", version = Reference."A1")
should be
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
This is because you assigned the modid, name and version to variables in the Reference class, and you're using them in the main class. For example, the modid is saved in the MODID variable. In the main class, you have to get the variable from the Reference class, so you do Reference.MODID.
I've just started out with these tutorials, and even though I have GitHub, the Forge src, Eclipse, and JDK downloaded and installed, when I try to clone the repository into my workspace folder it says I need the command line tools for GitHub to work.
I've downloaded them twice now and it still isn't working.
after a long battle against the errors and made an item, I tried to run my mod and it gave me this crash, or what i think is a crash.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2818)
at net.minecraft.client.main.Main.main(Main.java:79)
also, how do i compile my mod into a jar (preferably a jar) or a zip so others can use it?
That's normal - it will generate later on.
So, I have a question. This is for 1.7.10, by the way. I'm trying to generate an ore in the Nether, and I followed the tutorial, but I just put the stuff that was in the generateSurface part in the generateNether part. I didn't get any errors, but the ore won't generate in the Nether. I wanted to be able to find it, so I didn't put a texture on it and I made it generate 32 times per chunk (I assume that's what it means, anyway). What could be the issue?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWorldGenMinable has multiple constructors, I'm sure you should do 2 different methods because of this. Adding to the original #addOreSpawn method, you might need an addNetherSpawn method as well, like the following:
http://pastebin.com/Wcq4CBYE
The parameters should be the same as the old addOreSpawn, the only difference is you have to put addNetherOreSpawn in generateNether.
The intro section for your 1.7 tutorial seems to link to the intro for your 1.8 tutorials.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHe's said this ten times before. That tutorial is universal, it works for both.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHe mentions where the methods go, and tells you to put them in your class. I don't know what you mean by "model for a mod", cuz he does indeed give you the model file for a simple block and item. I'm guessing you have a bad understanding of English, since those were pretty clear.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHi, i'm starting out modding (making not installing) and when i hover over Reference in the @Mod annotation it doesn't show me any import option and only says "Reference cannot be resolved to a variable" Thanks for the help!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf you have imported and created the Reference class, make sure the annotation is as following:
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
If you have only imported the Reference class, haven't created it and complained about the error here, you're not so bright.
If you have only created the Reference class, import it as (package of main class).help.Reference; and add the @Mod annotation as above.
You probably forgot to capitalize the "MODID", "NAME" and "VERSION", or you put quotes on the variables.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have a few things to say, one is that you can't just come onto the forums and call someone "not bright" when you know nothing about them.
And i don't think were thinking about the same step, i'm talking about the main class file near the very end and the Reference I created just wont import, plus this is the first time I've use Eclipse, and we all have those times when we don't see something obvious. I have created the Reference, but my problem is that it wont import, and I've capitalized everything correctly, but no matter how i capitalize anything, Reference will still error.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI think we're thinking about the same step, as there's only one @Mod annotation. I don't know what you mean by "won't import", cuz all you have to do (as mentioned above) is place the following under the package:
import (package of main class).help.Reference;
I'll even show an example.
package com.hlaaftana.mods.EndOres;
import com.hlaaftana.mods.EndOres.help.Reference;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class MainClass {
(main class methods)
}
The problem may also be with your Reference class, as it should show this:
package com.hlaaftana.mods.EndOres.help;
public class Reference {
public static final String MODID = "yourmodid";
public static final String NAME = "Your Mod's Name";
public static final String VERSION = "version.number";
}
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumlike i said earlier, sometimes people don't see something obvious. that did fix it, but now its telling me "Syntax error on token ""alexbinind_forgebinindmod"", class expected" when i hover over my modid, mod name, and version. when i remove the quotation marks i put around them, it says "alexbinind_forgebinindmod cannot be resolved or is not a field" i'm just wondering if these are ignore-able or not. If its not please guide me on what to do. Like i said, im new to this, so please excuse me for anything i'm doing wrong i don't see.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCan you just put the main class on pastebin?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumsure, here. please take a look at it, i cant find what's wrong
package com.gmail.nmdecker01.mods;
import net.minecraftforge.fml.common.Mod;
import com.gmail.nmdecker01.mods.help.Reference;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class TheKiritoMod {
ERRORS:
Reference.MODID=The value for annotation attribute Mod.modid must be a constant expression
Reference.NAME=The value for annotation attribute Mod.name must be a constant expression
Reference.VERSION=The value for annotation attribute Mod.version must be a constant expression
(I am working on the main class :))
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDid you even make Reference?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf your Reference class is correct:
@Mod(modid = Reference.alexbinind_forgebinindmod, name = Reference."Forgebinindmod", version = Reference."A1")
should be
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
This is because you assigned the modid, name and version to variables in the Reference class, and you're using them in the main class. For example, the modid is saved in the MODID variable. In the main class, you have to get the variable from the Reference class, so you do Reference.MODID.
Do you not see the text import.com.gmail.nmdecker01.mods.help.Reference?
Of course I did!
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumih, dur! im so silly! thanks for the help
I've just started out with these tutorials, and even though I have GitHub, the Forge src, Eclipse, and JDK downloaded and installed, when I try to clone the repository into my workspace folder it says I need the command line tools for GitHub to work.
I've downloaded them twice now and it still isn't working.
Do you know of any solutions?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumafter a long battle against the errors and made an item, I tried to run my mod and it gave me this crash, or what i think is a crash.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2818)
at net.minecraft.client.main.Main.main(Main.java:79)
also, how do i compile my mod into a jar (preferably a jar) or a zip so others can use it?