Pumpkins and melons are a great source of food other than bread, beetroots, potatoes, etc. You can use Pumpkin/melon not only as a food source, but you can also use pumpkins as decoration blocks, and you can make fancy blocks from melons, so you should make their automatic farm in Minecraft.
The Materials required to make a pumpkin or melon farm are 2 pistons, a bucket of water, a hoe, dirt blocks, 2 Redstone dust, some glass, 5 hoppers, cocoa seed or pumpkin seed, a stack of temporary blocks, and some torches.
Steps to build Minecraft automatic Pumpkin/melon farm
Place down 5 blocks, making a line.
After that, place 3 blocks on both sides, creating a small box with one side open.
Then, place 3 dirt or grass blocks on the edge of the box.
From the middle, break one block in the back of the box.
Then place 2 blocks one block behind.
Place a bucket of water in the hole in front of those blocks.
Place a block in front of the water. Then place the observer in such a way that it faces forward.
Then add two pistons on both sides of the observer, such that they are facing forwards.
Now dig a 3*2 box and one block outside, as shown in the figure.
Place down a double chest at the corner.
Fill the rest of the box with a hopper that connects to the chest. Hold crouch while placing the hoppers next to the chest and from one hopper to another.
You can place some torches to prevent mobs from spawning near the area.
Now use the hoe to plow the dirt in front of the observer.
- Read: Most Powerful Mobs List
Then place a pumpkin seed or a melon seed in the plowed dirt to start farming of your choice in Minecraft.
Place Redstone dust behind the pistons. If placing 2 doesn’t work, try 3 Redstone dust by removing the block behind the observer.
The Pumpkin or Milon producing farm is ready in Minecraft, so now you will need to cover the farm. Place some glass blocks in front of the farm, then cover the farm with any blocks.
Once the pumpkin\melon produces on the farm, the piston will push them into the hopper, and the chest will store them. Pumpkin/Melon are slower to grow than other Minecraft crops like wheat, and carrot, so do not rush into thinking this automatic farm doesn’t work.
It also gives food in low amounts, so you can increase the food you get from pumpkin or melon farms by adding more observers, water bodies, pistons, hoppers, etc.