Jump to content

Recommended Posts

Posted

Hey guys,

 

I'm having my first attempt at crops today. I couldn't find any tutorials, so I've been trying to learn from the Still Hungry source.

 

My crop loads up, I can plant the seed to get a crop. However, it doesen't seem to grow. I left myself AFK on a test world for around 30-40 minutes (with T pressed so time will still pass), and it hadn't budged. Bonemeal doesn't work either - but I know for saplings you need a handler for that so I'd assume the same here.

 

Anyway, has anyone got any ideas what I missed? Probably something quite obvious, but yeah I don't really know what's needed :P

 

Crop class:

http://pastebin.com/nLqx33Xp

 

Let me know if you need any other classes. I can place my seed on tilled dirt so I assume everything else works, just the crop that doesn't.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Posted

You might want to override

protected boolean canThisPlantGrowOnThisBlockID(int par1)

 

Bonemeal calls

public void fertilize(World par1World, int par2, int par3, int par4)

You should look at it in case that doesn't do what you want.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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