Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. 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.
  2. Post the solution so other that have this problem can fix it as well.
  3. Look at the furnace JSON's and code or even BlockColored JSON's and code for some examples notice some similarities in the code.
  4. You don't need to know every notch and cranny you just need to know enough to know what you are doing.
  5. 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.
  6. Of course it will, that is the language that minecraft and forge use.
  7. 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.
  8. No I can not, if you don't understand you need to learn java.
  9. You need the variable in your main mod class to the substring stuff.
  10. 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
  11. 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.
  12. Actually I understand // Use this method preInit(FMLPreInitializationEvent event) // ^ preevent
  13. That is not what I meant make a static variable in your main mod class, then initialize it like I told you to.
  14. 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));
  15. You need to set the path. This path is probably in your c drive "wpartylist.txt".
  16. 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.
  17. Load to a ArrayList from the File and write to that file, look up how to write to a txt file in Java.
  18. Then you may want to look at this in your message. if(player.getItemInUse().getItem() == CustomItems.noiseFill && player.isSneaking()) {
  19. 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.
  20. It is possible for the ItemStack to be null you need to check if it is != null
  21. 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.
  22. 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?
  23. Alright, try putting if (hasCapability(...)) before you call getCapability(...)

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.