-
Get the Sub Item of an Item
I'm super super sorry for posting a non-supported version of forge on here but I've been researching this for 5 days to no avail! I'm really really desperate and any help is needed. It also took my 7 hours to set up this Forge thing on my computer, and I really don't want to deal with another 7 hours of errors which is why I I'm trying to avoid updating. When I finally got it to work with 1.8.9 I was really happy but I don't want to repeat that hell again. Thanks for the help! ALSO! IT WORKED!!! THANK YOU SO MUCH!!!!! I'VE BEEN TRYING TO DO THIS FOR DAYS NOW. And if you think I'm exaggerating about the 7 hours, I'm not lol... my parents came into my room and said "are you alive"? I was up until 1 AM... I was getting gradle errors, java errors, java vm errors, -Xmx256 errors, environment errors, eclipse errors, and I hadn't even started making the mod yet! It just wasn't setting up correctly.... things just kept going wrong. Anyways, it worked!!! thank you so much for helping me! Also acknowledging your description to your forge profile (I think that's a description or a bio? something like that), the fact that you helped me proves that you aren't a jerk. And people who do call you a jerk are just being ungrateful. Trust me, I know. I am an official "Helper" and an "Expert" on the Java discord server, and some people are just complete asses. I will try to walk them through a problem and then they yell at me and say I'm treating them as morons. and I ESPECIALLY agree with you on the statement "If you do not understand Java, I WILL NOT HELP YOU". There are lots of people who just ping me and ask me to do their assignment for them.
-
Get the Sub Item of an Item
How do I reference a subtype of an item (I think that's what it's called)? When doing crafting recipes I do this: new ItemStack(ModItems.fertilizer, 1, 1) However in this case I want to do if (tileEntity.getStackInSlot(0).getItem() == subitem) You would think that you could do if (tileEntity.getStackInSlot(0).getItem() == new ItemStack(ModItems.fertilizer, 1, 1).getItem()) but instead it just gets you the default item (fertilizer with a meta of 0). how would i reference a subtype of an item that I could compare that specific type in an if statement?
-
ITickable update() constant?
Thank you for the first part ("correct"). The second response, I understand how to reduce it, but I was wondering if there was a more efficient way to reduce. The way I did it was have 2 variables: growingTime, reductionGear Every update the reductionGear goes up by 1. Every 25 times it increments, the growing time increments. I'm not an idiot (well actually I am since I'm still in 9th grade although I did skip 1 entire grade and got bumped up in CS&E and Spanish class), but I was wondering if there was like an @Override method that did that same thing more efficiently. Such as maybe a @Override changeUpdateInterval(int interval) or something like that.
-
ITickable update() constant?
Sorry, but I also don't know how to reduce the time in between each time the update() is called. Any suggestions?
-
ITickable update() constant?
oh okay. so this is only something that would happen if the game was extremely slow. but if one was running okay, and another was running really well, they would be called at the rates right?
-
ITickable update() constant?
Oh ok, so that was actually my question: if the game is slower, will the update method be called less, and when it's faster, will the update method be called more frequently? If that's the case, how do I solve this? I remember doing something to fix that once in a pure Swing Java program, but I don't know how I would do that in minecraft.
-
ITickable update() constant?
Thank you! Yes it is a TileEntity. I'm just using the update method so what I think you are saying is that the update() from ITickable is called a constant rate. Thank you very much
-
ITickable update() constant?
I'm using the ITickable#update() method to update the loading progress of my Growing Chamber. However I do want to make sure that the update() method is called in between constant intervals. I couldn't find any confirmation online, and for anyone helping I did research ahead of time. Pestering people on forums is always my last resort. Thank you in advance!
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
one sec
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
I'm just pressing the run button. everything works- all the functionalities and everything, it's just getting a file not found exception. Here is a link to the error I'm getting in case you need an aid https://hatebin.com
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
yeah well it wasn't working for some reason. Either way, I just ran that command and it said it built successfully. unfortunately I still got the error when running it
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
It was insane. The gradle versions were off then Eclipse couldn't run the VM or something like that and then my JDK was corrupted and I switched to IntelliJ which had problems with the environment variables and then the JAVA_OPTIONS and JAVA_HOME were causing problems so I had to switch versions and oh man it was honestly a nightmare- but worth it im having a lot of fun coding my poop mod
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
just to make sure, this won't mess up any of my setup right? I spent 7 hours trying to get this to work while combing through errors and I do not feel obligated to do it again....
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
do I run it in powershell? To build my files I just do .\gradlew build do I do .\gradlew genIntelliJRuns?
-
FileNotFoundException invoked when ran un IDE but not when built to Jar and run in Minecraft Forge
I did some research and I can't find where genIntelliJRuns is. It's not in my project nor in my project folder.
IPS spam blocked by CleanTalk.