Everything posted by Animefan8888
-
[1.7.10] Entity Is Invulnerable Unless Hit With Damage Source
Since this forum no longer supports 1.7.10 it will get locked when a mod gets on. Though I will give you a hint look at attackEntityFromDamageSource in other EntityLiving...class and you will find your issue. Any more 1.7.10- problems figurre them out yourself from previous tutorials/forum posts and of course from VANILLA SOURCE. Just thought I would stress that as it is the best source if you are making something similar.
-
[Solved] [1.10.2] Can't color custom armor with ItemArmor#getColor
Post the solution so other that have this problem can fix it as well.
-
[1.10.2] Blockstates
Look at the furnace JSON's and code or even BlockColored JSON's and code for some examples notice some similarities in the code.
-
[1.10] RegisterEntityRenderingHandler
You don't need to know every notch and cranny you just need to know enough to know what you are doing.
-
[1.8.9] Creating a txt file, and accessing with a command.
What do you think is null on line 30, maybe the variable you haven't initialized yet, that you are trying to use to initialize itself.
-
[1.10] RegisterEntityRenderingHandler
Of course it will, that is the language that minecraft and forge use.
-
[1.8.9] Creating a txt file, and accessing with a command.
Sorry I left out the word "be" in that sentence it should have been "You need the variable in your main mod class to be the substring stuff." That means public void preInit(FMLPreInitializationEvent event) { path = event.getSourceFile().getAbsolutePath().substring(0,absolutePath.lastIndexOf(File.separator)); Then go about adding the files name to the end in your Command. Sorry for not being helpful, but if you don't understand Java you need to learn before coming here and asking for help.
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
It is not registered.
-
[1.8.9] Creating a txt file, and accessing with a command.
No I can not, if you don't understand you need to learn java.
-
[1.8.9] Creating a txt file, and accessing with a command.
You need the variable in your main mod class to the substring stuff.
-
[1.8.9] Creating a txt file, and accessing with a command.
You did not implement this File file = File("C:\\abcfolder\\textfile.txt"); String absolutePath = file.getAbsolutePath(); String filePath = absolutePath.substring(0,absolutePath.lastIndexOf(File.separator)); // ^Important part
-
[1.8.9] Creating a txt file, and accessing with a command.
Show me the preInit
-
[1.8.9] Creating a txt file, and accessing with a command.
Sorry I must have misread the title of this forum thread, I was fairly sure it said "Modder Support". Though if you don't know Java we won't teach it, there are plenty of tutorials out there for that. Now the last step is to modify the snippet of code I gave to suit your own needs if you run into any trouble after that come back.
-
[1.8.9] Creating a txt file, and accessing with a command.
Actually I understand // Use this method preInit(FMLPreInitializationEvent event) // ^ preevent
-
[1.8.9] Creating a txt file, and accessing with a command.
That is not what I meant make a static variable in your main mod class, then initialize it like I told you to.
-
[1.8.9] Creating a txt file, and accessing with a command.
That was just a guess, but what you will want to do is make a String set it equal to preevent.getSourceFile().getAbsolutePath() And use something like this to get rid of the file name on the end then add your own file name to the end. File file = File("C:\\abcfolder\\textfile.txt"); String absolutePath = file.getAbsolutePath(); String filePath = absolutePath. substring(0,absolutePath.lastIndexOf(File.separator));
-
[1.8.9] Creating a txt file, and accessing with a command.
You need to set the path. This path is probably in your c drive "wpartylist.txt".
-
[1.8.9] Creating a txt file, and accessing with a command.
Poof a tutorial thanks google. https://www.caveofprogramming.com/java/java-file-reading-and-writing-files-in-java.html Look at the tutorial, until you understand it. Then edit it to your desires.
-
[1.8.9] Creating a txt file, and accessing with a command.
Load to a ArrayList from the File and write to that file, look up how to write to a txt file in Java.
-
[Solved] [1.8.9] Scrollwheel as input
Then you may want to look at this in your message. if(player.getItemInUse().getItem() == CustomItems.noiseFill && player.isSneaking()) {
-
[Solved] [1.8.9] Scrollwheel as input
I hope you mean is not sneaking or holding the item, but there since you are performing on the client again you should use EntityPlayerSP.
-
[Solved] [1.8.9] Scrollwheel as input
It is possible for the ItemStack to be null you need to check if it is != null
-
[Solved] [1.8.9] Scrollwheel as input
Don't use EntityPlayerSP for this if you are editing NBT or any data it must be handled by the server, which means use EntityPlayerMP and you can't use Minecraft...thePlayer. You should use... if (ctx.side == Side.SERVER) EntityPlayerMP player = ctx.getServerHandler().playerEntity; or something similar.
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
Does it error here as well? https://github.com/TeamWizardry/Wizardry/blob/master/src/main/java/com/teamwizardry/wizardry/common/core/EventHandler.java#L79 Also do you ever send the "syncing" packet?
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
Alright, try putting if (hasCapability(...)) before you call getCapability(...)
IPS spam blocked by CleanTalk.