Posted December 28, 20168 yr So in my process of making a mod similar to magical crops, but with melons, I have ran into the problem of not being able to understand how to implement the melons themselves. I have both the Melon Block and Item created, but I cannot make sense of the vanilla code on how to make them grow using the BlockStem class. Can anyone point me in the direction of a tutorial on how to make these grow, or help me understand it a little better?
December 28, 20168 yr You need two blocks and a seed. One block is the crop (the stem) and the other is the melon. When the stem is fully grown (and not attached to a melon) and it grows, it picks a random side that is clear and places the melon there. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 28, 20168 yr Author So from what I understand I need a BlockMelonStem type class and a BlockMelon class for each melon, and have that choose a side when it is fully grown?
December 28, 20168 yr Pretty much. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 28, 20168 yr Author The problem that I am running into is that I cannot extend the BlockStem class, nor use it to declare new Stems in my Items Class. In this case I would have to write a new class basically copying the vanilla version. Right?
December 28, 20168 yr public class BlockTestStem extends BlockStem { public BlockTestStem(Block crop) { super(crop); } } Worked for me, what's the problem? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 28, 20168 yr Author Not sure what It was. tried it again and it worked. thanks for the help! This should let me progress a little more
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.