Jump 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.

J3FF97

Members
  • Joined

  • Last visited

  1. I see what you mean, Weird thing is that I do exactly the same thing in another mod of mine and it works. I should probably get rid of the loop though since as far as I know it does not add anything except for just another crash possibility. Thanks anyways Now I just gotta fix shift clicking and this block is done~
  2. Thanks I checked the load orders, but that did not seem to be a problem It's probably a very minor typo or something like that, knowing myself, but I just can't figure it out
  3. I specify it in a class called CraftingHandler and register it in my commonproxy. SeedInfuserRecipes.addInfusing(Items.melon_seeds, Items.magma_cream, new ItemStack(ModItems.fireMelonSeeds)); That's the line that registers it. I forgot to tell but the crash occurs whenever I place this recipe into the gui. (This is the only recipe I've registered for the block as a test.)
  4. Hey everyone~ Whilst making an infuser block (2 inputs, 1 output, no fuel) I stumbled upon this crash: http://pastebin.com/xztWZ7KH The code that goes with the mod is here: https://github.com/J3FF97/Elemental-Melons/blob/1.7.10/src/main/java/j3ff97/elementalmelons/tileentity/TileEntitySeedInfuser.java The line that apparantly gives a NullPointer is: ItemStack stack = SeedInfuserRecipes.instance().getInfusingResult(slots[0].getItem(), slots[1].getItem()); I've checked and that line should only be null if I would not have specified any recipes, which I did. In another mod this (almost exact) same code is working. Anyone who can enlighten me? ~J
  5. Formats are exactly the same for naming and texturing. They only differ between items and blocks. IDE is your development environment, I.E IntelliJ IDEA or Eclipse.
  6. Actually the ID does not HAVE to be lower case, since you can call upon it with id.toLowerCase(), but that aside, it is true that for everything that needs the id it's gonna be in lower case. Anyways, could you show us your item class? also if I'm not misstaken you can remove the Tweaks: from the setTextureName, depending on how you do it in the item class.
  7. So if I'm correct just the diamond hammer renders correctly? The others just give the famous black/purple block? I've taken a gaze through your code and just can't find anything. check all the punctuation and capitalization, if there's a difference between the diamond hammer and the others that's probably where your problem is. I'll put it in a dev environment in a sec to test
  8. I see, upon closer inspection those methods are indeed in the BlockFurnace class. I simply overlooked them. That's what I get for using an outdated tutorial and trying to fix things myself. Although I should look into how those things work better. Thank you [closed]
  9. I am making a machine and, like most modders, I want the machine to face me whenever I place it. For this I used the code from BlockFurnace. However, this crashes me. In 1.7 this was done quite differently if I remember correctly. Crash Report: http://pastebin.com/zwpNfSMf Source: https://github.com/J3FF97/Steel-Industries/blob/1.8/src/main/java/com/j3ff97/steelindustries/blocks/BlockHighOven.java Please do mind the entire machine thing isn't working yet. However as a normal block it should work. Something with the propertyDirection, but I can't figure out what's going on exactly. Anyone who can enlighten me? ~J3ff97
  10. After fixing the nullpointer that had to do with the crop I stumbled upon another crash Log: http://pastebin.com/ntJgkG3C This happens randomly, I expect whenever it spawns a new melon block, as they never appear. Anyone who can help? Again, Source is on Github: https://github.com/J3FF97/Elemental-Melons/tree/1.8 [EDIT] Again, this is something with the loadorder, since if I load the melons before I load the stems, it works. However, If the loadorder is blocks - stems - items, I won't get any items if I break a melon. If the loadorder is stems - blocks - items OR stems - items - blocks , It crashes. If I load the items before the stems, the same crash as earlier happens. Also, the connected melon stems (connected to a block) appear as untextured which for some reason I can't find a way to fix (The model files clearly refer to the minecraft textures, and all the other states work [EDIT 2] Another edit whee~ After screwing around with the loadorder some more (and making my code look more horrible than I would've liked ' ) I got it sort of working. I have split up the items into seeds and slices and the blocks into melons and stems. The current load order is slices - melons - stems - seeds. This seems to have fixed everything except the textures. Hence I'm assuming that part is fixed. All that's left is the textures... What the log shows for the textures: http://pastebin.com/Kx52wiqd Source on git, etc etc.
  11. Hmm okay, I get it. I don't get why it still would crash when I planted the crop, because it has loaded the crop by then right? Or is it because it has loaded the crop as a null? Anyways, it's working now ^.^ Thanks Sometimes I just need someone to take a look at my code
  12. Haha Believe me, I've had worse
  13. first of all, wow... Ehmm.... That's gotta be the first MC mod about this that I'll see Second, You made the world generator class and functions and everything, but you forgot to add the actual generation for this block. I assume you want to add this block in the overworld, so you basically have to add the generateOre(blablabla); in the generateSurface. Something like this: private void generateSurface(World world, Random random, int x, int z) { generateOre(//Here go the needed things); } I think it should work after you do that Good luck with your mod, whatever your intentions are haha
  14. I haven't tried that yet honestly, since it doesn't crash during startup, meaning that everything got registered the way it's supposed to, I'l try it as soon as I get home, but I doubt it'll work to be honest EDIT: Wow... That actually worked... Thanks! I just thought it would not, because I thought that could only cause problems at startup... hmm.. anyways, thanks
  15. I've implemented the RecipeItemSeedFood class (as SeedHelper) and made the necessary adjustments. Still crashes. Server log: http://pastebin.com/Gh6pEV6r Client log: http://pastebin.com/zHjxa7C1 Again, getting a server log while I'm only on client, dunno where that came from Running through the log, I can only see 1 line in which it crashed in my code, that is in the seedhelper: parWorld.setBlock(parX, parY+1, parZ, crop); That's where the crash is.

Important Information

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

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.