The Farmer is currently only able to plant one sort of plant for a whole field (
|
private IBlockState getFirstPlantablePlantFromSlots(BlockPos pos){ |
|
for(int i = 0; i < 6; i++){ |
|
ItemStack stack = this.slots[i]; |
|
if(stack != null){ |
|
IPlantable plantable = null; |
|
|
|
Item item = stack.getItem(); |
|
if(item instanceof IPlantable){ |
|
plantable = (IPlantable)item; |
|
} |
|
else if(item instanceof ItemBlock){ |
|
Block block = Block.getBlockFromItem(item); |
|
if(block instanceof IPlantable){ |
|
plantable = (IPlantable)block; |
|
} |
|
} |
|
|
|
if(plantable != null){ |
|
IBlockState state = plantable.getPlant(this.worldObj, pos); |
|
if(state != null && state.getBlock() instanceof BlockCrops && state.getBlock().canPlaceBlockAt(this.worldObj, pos)){ |
|
this.decrStackSize(i, 1); |
|
return state; |
|
} |
|
} |
|
} |
|
} |
|
return null; |
|
} |
). I think It would be quite usefull if the Planter can plant multiple plants, maybe in a simmilar way that dispensers/droppers shoot out items.