Agricultural Automation [​1.20 - 1.21]
This is an updated version of the Original Data Pack by Chewbarcus
Inspired by the Bonsai Tree Mod, this Datapack aims to bring the mod to Vanilla in a similar fashion using commands to automate tree/flower/shrub/cactus/bamboo farming. Simply place a hopper with an item frame on the side, a pot on the top of the hopper and then whatever you fancy farming into the pot. Next up, either place a Diamond Axe, Hoe or Sword (See pictures for help) into the item frame to being the process. Every 30 seconds you'll be rewarded with one of the drops from custom loot tables, you can even hook the hoppers up to a redstone circuit to turn this off as the Automation will only work on hoppers that are unpowered.
[​Tools & Drops]
Diamond Axe:
- Oak Sapling          Logs, Sapling, Leaves, Apples
- Dark Oak Sapling        Logs, Sapling, Leaves, Apples
- Acacia Sapling         Logs, Sapling, Leaves
- Birch Sapling         Logs, Sapling, Leaves
- Spruce Sapling          Logs, Sapling, Leaves
- Cherry Sapling          Logs, Sapling, Leaves
- Jungle Sapling          Logs, Sapling, Leaves, Vines, Cocoa Beans
- Mangrove Propagule      Logs, Propagule, Leaves, Roots
- Azalea Bush           Oak Logs, Azalea Bush, Leaves, Moss
- Flowering Azalea Bush   Oak Logs, Flowering Azalea Bush, Leaves, Flowering Leaves, Moss
- Crimson Fungus         Logs, Fungus, Wart Blocks, Shroomlight, Vines
- Warped Fungus          Logs, Fungus, Wart Blocks, Shroomlight, Vines
- Red Mushroom         Red Mushroom
- Brown Mushroom        Brown Mushroom
- Cactus             Cactus, Green Dye
Diamond Hoe:
- Allium             Flower, Dye
- Azure Bluet          Flower, Dye
- Blue Orchid          Flower, Dye
- Cornflower           Flower, Dye
- Dandelion           Flower, Dye
- Lily of the Valley        Flower, Dye
- Orange Tulip          Flower, Dye
- Oxeye Daisy          Flower, Dye
- Pink Tulip            Flower, Dye
- Poppy             Flower, Dye
- Red Tulip            Flower, Dye
- Torchflower          Flower, Dye, Seeds
- White Tulip           Flower, Dye
- Wither Rose           Flower, Dye
- Fern              Fern, Wheat Seeds, Melon Seeds, Pumpkin Seeds, Beetroot Seeds
- Crimson Roots         Crimson Roots
- Warped Roots         Warped Roots
Diamond Sword:
- Bamboo            Bamboo
- Dead Bush           Dead Bush, Sticks
Simply pop this into your saves/[​world]/datapacks folder and play!
For comments check out the Planet Minecraft Page here