Hey! I'm back! On the 4th tutorial on volume 3 I'm not exactly sure what I should do to fix this. On the line "public static Item itemName = new ItemCE("itemName");" It's giving me an error on "ItemCE" Should I make it into a class and add a constructor?
EDIT: I really need to read the entire tutorial before I ask these questions. Sorry!
No problem; it's a good thing to ask questions because if you don't, you'll get stuck for hours trying to figure something out (and I'm saying this from previous experiences).
Hello! I'm back YET AGAIN, to ask: I'm on your creative tab tutorial, (in volume one,) and my game is crashing. Whenever I open up the creative menu it shows that there is another page. However, when I click the arrow, it crashes. Any help?
Rollback Post to RevisionRollBack
The duck walked up to the lemonade stand. You're singing it now. aren't you?
Hello! I'm back YET AGAIN, to ask: I'm on your creative tab tutorial, (in volume one,) and my game is crashing. Whenever I open up the creative menu it shows that there is another page. However, when I click the arrow, it crashes. Any help?
Could you post your code to pastebin or gist, so I can look at it there?
So, I've been following your tutorial series on 1.7 and so far I have gotten through all of them except the 3rd "Proxies and Helper Classes". I am at the very last bit where we add in the LogHelper. So far I don't have any other errors, but the first one that pops up is where I add in the first block of log helper code initializing the FMLLog Level. I getan error on "log", adn then one for every classification such as "FATAL", "TRACE", and "WARN". I have no idea whats going wrong.
This is the code, and I am sure that since you wrote the tutorials, you can decipher what parts are customized to my mod. I have also gone over it several times comparing it your code, and I am sure that it matches, but of course in code, you can never be sure and you always normally need someone else to look at it.
package com.wordpress.pldyndev.ae.helpers;
import java.util.logging.Level;
import com.wordpress.pldyndev.ae.Reference;
import cpw.mods.fml.common.FMLLog;
public class LogHelper {
public static void log(Level logLevel, Object object) {FMLLog.log(Reference.NAME, logLevel, String.valueOf(object));}
public static void all(Object object) {log(Level.ALL, object);}
public static void debug(Object object) {log(Level.CONFIG, object);}
public static void error(Object object) {log(Level.FINE, object);}
public static void fatal(Object object) {log(Level.FINER, object);}
public static void info(Object object) {log(Level.INFO, object);}
public static void off(Object object) {log(Level.OFF, object);}
public static void trace(Object object) {log(Level.FINEST, object);}
public static void warn(Object object) {log(Level.SEVERE, object);}
}
Hello, i'm working on a new mod, and I created a weapon that fires a modified wither skull upon right clicking. To keep this feature from being incredibly overpowered, I have modified the damage output, but I would like the weapon to consume a certain amount of experience to activate. If there is an inefficient amount, a message will occur and the ability will fail to activate. I'm at trouble trying to find out how to subtract experience and play the message upon failure. I have the code posted if anyone would like to include this into their weapon as well. Any help would be greatly appreciated!
public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer playerEntity, int timeLeft)
//Subtract XP
So, I've been following your tutorial series on 1.7 and so far I have gotten through all of them except the 3rd "Proxies and Helper Classes". I am at the very last bit where we add in the LogHelper. So far I don't have any other errors, but the first one that pops up is where I add in the first block of log helper code initializing the FMLLog Level. I getan error on "log", adn then one for every classification such as "FATAL", "TRACE", and "WARN". I have no idea whats going wrong.
Make sure that the item in the tab is actually registered beforehand. In other words, in your #preInit method of your main class, make sure you are registering the item before the creative tab, if that makes any sense. Anyways, that's a typical issue that I usually see, so if you have any other questions about this, or if this didn't work, just say so.
I have a suggestion.. since i haven't seen A SINGLE FRICKIN PERSON make a tutorial on making a creature with an inventory that can be accessed by the player.
It's fine; sometimes I've had projects tidied up into a library, other times it's just like that. There is probably a way to get them into its own library, but I haven't looked into it enough. If it's not bothersome, it's not going to mess you up or anything.
Is there anyway you could make a tutorial for 1.7.10 on how to make a block face the player when placed? I can't find any good tutorials on it and your tutorials are plain wonderful. Thank you in advance!
-P.S: Your tutorials just flatten basically all the other tutorials I've seen for Minecraft modding.
No problem; it's a good thing to ask questions because if you don't, you'll get stuck for hours trying to figure something out (and I'm saying this from previous experiences).
Hello! I'm back YET AGAIN, to ask: I'm on your creative tab tutorial, (in volume one,) and my game is crashing. Whenever I open up the creative menu it shows that there is another page. However, when I click the arrow, it crashes. Any help?
Could you post your code to pastebin or gist, so I can look at it there?
Ok. Here is the the "tabModName" class: http://pastebin.com/KrPQMAP6
Here is the "ModTabs" class: http://pastebin.com/95eCHKcj
So, I've been following your tutorial series on 1.7 and so far I have gotten through all of them except the 3rd "Proxies and Helper Classes". I am at the very last bit where we add in the LogHelper. So far I don't have any other errors, but the first one that pops up is where I add in the first block of log helper code initializing the FMLLog Level. I getan error on "log", adn then one for every classification such as "FATAL", "TRACE", and "WARN". I have no idea whats going wrong.
This is the code, and I am sure that since you wrote the tutorials, you can decipher what parts are customized to my mod. I have also gone over it several times comparing it your code, and I am sure that it matches, but of course in code, you can never be sure and you always normally need someone else to look at it. package com.wordpress.pldyndev.ae.helpers; import java.util.logging.Level; import com.wordpress.pldyndev.ae.Reference; import cpw.mods.fml.common.FMLLog; public class LogHelper { public static void log(Level logLevel, Object object) {FMLLog.log(Reference.NAME, logLevel, String.valueOf(object));} public static void all(Object object) {log(Level.ALL, object);} public static void debug(Object object) {log(Level.CONFIG, object);} public static void error(Object object) {log(Level.FINE, object);} public static void fatal(Object object) {log(Level.FINER, object);} public static void info(Object object) {log(Level.INFO, object);} public static void off(Object object) {log(Level.OFF, object);} public static void trace(Object object) {log(Level.FINEST, object);} public static void warn(Object object) {log(Level.SEVERE, object);} }Thanks for any assistance
Hello, i'm working on a new mod, and I created a weapon that fires a modified wither skull upon right clicking. To keep this feature from being incredibly overpowered, I have modified the damage output, but I would like the weapon to consume a certain amount of experience to activate. If there is an inefficient amount, a message will occur and the ability will fail to activate. I'm at trouble trying to find out how to subtract experience and play the message upon failure. I have the code posted if anyone would like to include this into their weapon as well. Any help would be greatly appreciated!
public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer playerEntity, int timeLeft)
//Subtract XP
{
//If insufficient XP, then cancel attack
double vecX = (double)(-MathHelper.sin(playerEntity.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(playerEntity.rotationPitch / 180.0F * (float)Math.PI));
double vecY = (double)(-MathHelper.sin(playerEntity.rotationPitch / 180.0F * (float)Math.PI));
double vecZ = (double)( MathHelper.cos(playerEntity.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(playerEntity.rotationPitch / 180.0F * (float)Math.PI));
double deltaX = (double)(-MathHelper.sin(playerEntity.rotationYaw / 180.0F * (float)Math.PI));
double deltaZ = (double)( MathHelper.cos(playerEntity.rotationYaw / 180.0F * (float)Math.PI));
world.spawnEntityInWorld(new MuramasaProjectile(world, playerEntity,playerEntity.posX+deltaX,playerEntity.posY+1,playerEntity.posZ+deltaZ, vecX, vecY, vecZ));
};
Wrong LogLevel class. Import "org.apache.logging.log4j.Level"
Putting the CENDENT back in transcendent!
Make sure that the item in the tab is actually registered beforehand. In other words, in your #preInit method of your main class, make sure you are registering the item before the creative tab, if that makes any sense. Anyways, that's a typical issue that I usually see, so if you have any other questions about this, or if this didn't work, just say so.
So I add that import block but now that entire line after "import" is erroring. Am I missing a library possibly?
Edit: Nevermind, it was conflicting with the previous import statement, i fixed it.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have a suggestion.. since i haven't seen A SINGLE FRICKIN PERSON make a tutorial on making a creature with an inventory that can be accessed by the player.
I am trying to setup forge on my iMac El Capitan 10.11.2
I am getting the following error when running ./gradlew setupDecompWorkspace eclipse
gradlew_error
I have tried to run just setupDecompWorkspace by itself and no joy.
Thanks for any help you can provide.
I also made sure that my $JAVA_HOME was pointing to the Java 8 sdk home.
Please disregard this post. I found the answer to the issue on MinecraftForge forum.
Since I am on OS X I had to update my Java3D to v1.5, then it worked.
Whenever I try to launch Minecraft I get this error in the console
Error: Could not find or load main class GradleStart
What does it mean?
Have you made any run configurations?
These: ""
Putting the CENDENT back in transcendent!
Yes I searched your tutorial and couldn't find any so i found another tutorial that told me to set it up like this:
Main Class:
GradleStart
Program Arguments:
--username=Username --password=Password
This worked earlier but not now. By the way i am modding 1.7.10 and using volume 1.
It's fine; sometimes I've had projects tidied up into a library, other times it's just like that. There is probably a way to get them into its own library, but I haven't looked into it enough. If it's not bothersome, it's not going to mess you up or anything.
Return an item for your tab icon; right now, you have it set as null.
Why you no make sexy videos o:
I like the written tutorials they're awesome but because they're awesome i request some videos
To see it being done live sort of
Is there anyway you could make a tutorial for 1.7.10 on how to make a block face the player when placed? I can't find any good tutorials on it and your tutorials are plain wonderful. Thank you in advance!
-P.S: Your tutorials just flatten basically all the other tutorials I've seen for Minecraft modding.
Qutie an old thread. But i'm having issues...
exactly do you code in Stairs? and orientate-able blocks? (Like Wood Logs)
Unity, Individuality, Structure, Order