My question is about programming Minecraft mods. So i added a block to my Mod. Now I want, that when you drop a sugar on it, that it waits some time and then, if the sugar is still there, it will consume the sugar and spawn an item that i made for my mod. But I don't know how to test wether the item is sugar. I use the event onLanded with an
@Override
public void onLanded(World worldIn, Entity entityIn)
{
if(entityIn instanceof EntityItem && !worldIn.isRemote)
{
}
} }
but I don't know where to specify the item and where to get the position of the block.
I hope anyone can help me and sorry for my bad english I'm not a native speaker. Thank you in advance Nova