Jump to content

ModMCdl

Members
  • Posts

    188
  • Joined

  • Last visited

Everything posted by ModMCdl

  1. Then I'll keep it around. I'm planning on doing more with these in the future, so it will probably come in handy.
  2. Again, I am an idiot. Lol. But that still doesn't fix the "crash upon planting" problem. So after all of this, do these changes make my dpetal class necessary? Because I have defined everything for it in my ModItems now, I believe.
  3. So, because I have never done it that way before, and this is the way I taught myself, how would I go about doing this? (I feel like I'm learning to mod all over again)...
  4. So I should register my blocks before my Items? I swear, I've never encountered problems with this setup before in the past.
  5. This method has worked for me countless times in the past. I don't really know what you mean. UPDATE: I can get the game to launch, but then it crashes upon planting with an unexpected error: https://pastebin.com/xBduBhmb
  6. *facepalm* Lol I'm an idiot. Can't believe I missed that. Even more of an idiot because now I'm totally confused at what's happening. ModBlocks class: https://pastebin.com/hsxtuxES Am aware of the ItemModelMesher again, just a habit I need to break.
  7. So I would define Dpetals as a ItemSeeds instead of a normal item like public class ItemDpetal extends ItemSeeds { instead of public class ItemDpetal extends Item {
  8. Updated error: https://pastebin.com/3miFG37w
  9. Hmmm... dpetal = new ItemSeeds(ModBlocks.darklilac, Blocks.FARMLAND).setUnlocalizedName("dpetal").setRegistryName(new ResourceLocation(Reference.MOD_ID, "dpetal")); This is seemingly how I could go about it, but now I get a "Attempt to register a null object" error. So I would replace ItemSeeds with ItemDpetal? Wouldn't it not be recognized as a crop anymore? Or am I completely missing something here? Again, really stupid questions I'm asking, but crops are seemingly alluding me right now...
  10. Ohhh... so that's where I was going wrong. Lol, I knew it was something stupid, and I just needed another set of eyes. So I just would use dpetal= new ItemSeeds(ModBlocks.darklilac, Blocks.FARMLAND), ItemDpetal(); or would I write a new line for it and have two dpetal = new etc.? (Stupid question probably, but bear with me here...) As for the ItemModelMesher, I suppose it is a bad habit of mine. I've always used it since I was modding, and it never really failed me, but I should really get around to changing soon.
  11. Heyo everyone! I'm trying to create a new crop for an upcoming mod of mine. I'm pretty good with java and have modded a bit before, but this being my first time delving into crops and such, I'm at a bit of a loss. I'm getting an error saying that there's no registry name set for my "ItemSeeds" which I can't find anywhere. I have "dpetal" set as my "ItemSeeds," and I think I registered dpetal properly, but apparently I didn't. Can someone help me here? Crash Report: https://pastebin.com/FaR2DBd0 ModItems Class: https://pastebin.com/kCnJE216 ItemDpetal Class: https://pastebin.com/Hgqb3TX3 Thanks for your help! I know this is probably a stupid mistake, but it's just flying over my head here.
×
×
  • Create New...

Important Information

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