Hi guy, i learning the coding for java and i want to create a custom crops for my mod, but i have a problems, if i write "public static Item name;" eclipse give me an error on the ";", how i can create those crops? i want to create first a little list to insert all crops, not create a class with all crops, but multi class, for crops.
ex: strawberry, tomato, and cocumb class's separate, and a class named "cropslist" with them inside, can you help me?
(p.s: i watched a tutorial of neale gaming - but i haven't solved the problem)
In my tutorials I don't like to give code you can fully copy because I believe you only learn by doing coding yourself. So mostly I'm trying to give the ideas and hopefully you know enough Java to figure out how to adapt it to your needs. For example, I doubt you're making a blueberry bush so it is up to you to make your own seeds and such.
What you should be doing is looking at the constructor to see what it needs then you'll understand what blockscrops.BlockBlueberry might be. It is very likely a singleton instance of the blueberry bush block.