Actually Additions

Actually Additions

66M Downloads

Make Farmer be able to plant Multiple Plants

garantiertnicht opened this issue ยท 1 comments

commented

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.

commented

No, sorry, I don't want this feature for the Farmer. Yes, it would be useful, but I prefer if they just use multiple ones :) It's not like they're super expensive or anything :P