MINERUSTCRAFT / AUTO FARMS
Minecraft Cod Farm
An ocean tank combines natural fish spawning space, magma columns and a circulating hopper minecart that delivers drops into a chest.

How the tank works
Here I explain the working part of the farm and how to prepare it for its first run. Cod naturally spawn in suitable water inside an ocean biome. The central stone patch leaves calm water columns for spawning. Magma blocks around it create downward bubble columns that bring fish toward the damaging floor. A hopper minecart below that floor collects drops through the blocks, and nine unloading hoppers deliver them into a chest.

Location and height
The build targets Minecraft Java worlds with the normal sea level of Y=63. Choose an Ocean biome and place the schematic’s bottom layer at world Y=47. Its tank floor then sits at Y=50 and its water at Y=51…63. The structure measures 12 × 18 × 12 blocks. Wrong elevation, unsuitable biomes and flat worlds with a different sea level can prevent cod spawning.
Separate the interior water completely from the surrounding ocean. Other water bodies compete for aquatic mob capacity, so results depend on the location. Wait more than 24 blocks from the central spawning columns while keeping the structure simulated. A reference position is local X=32, Y=10, Z=6 from the schematic’s bottom northwestern corner. In a normal ocean this point is underwater. Build a separate dry, sealed waiting chamber with its floor at world Y=56 and roof at Y=60, drain its interior and provide safe access. The chamber and approach are not in the file.
The native test used Java 1.21.5. Other versions, Bedrock and an external import interface were not tested. The schematic does not change biomes; choose the ocean location separately.
What I suggest preparing
- 298 stone bricks and 16 ordinary stone blocks.
- 48 magma blocks and 504 glass blocks.
- 9 hoppers, 1 chest and 1 hopper minecart.
- 54 normal rails, 18 powered rails and 18 redstone blocks.
- Water filling 832 source positions. Two buckets, kelp and temporary floor blocks help with manual filling; 832 individual buckets are not required.


Base and unloading
- Build a 12 × 12 stone brick base at world Y=47. This is local Y=0.
- At local Y=1 place the chest at X=0, Z=1. Point X=1, Z=1 west into it. Point the other eight hoppers at X=1, Z=2…9 north. The cart passes above this line and unloads gradually.
- Fill the remaining Y=1 cells with stone bricks except X=4 and X=7, Z=2…9. Put 16 redstone blocks there to power the inner tracks.
- Lay the serpentine rail circuit at Y=2 following the plan. Eight rows at X=2…9, Z=2…9 connect alternately at their eastern and western ends. The return track runs along X=1, Z=2…9. The loop contains 72 rail positions.
- Powered rails sit at X=4 and X=7 in every inner row and at Z=3 and Z=7 on the return track. Power the last two with additional redstone blocks at X=0, Y=2, Z=3 and Z=7.
- Check every corner, add one hopper minecart and push it around the loop. Verify that it completes both the serpentine and return sections without stopping.

Floor and water tank
- At local Y=3 build the tank floor across X=1…10, Z=1…10. Its perimeter uses stone bricks. The interior X=2…9, Z=2…9 is the fish floor.
- Keep 16 ordinary stone blocks in the central patch X=4…7, Z=4…7. The other 48 interior cells use magma. For manual filling, temporary full blocks can occupy those positions until the water is converted to sources.
- Build glass walls around X=1…10, Z=1…10 from Y=4 through Y=17. Leave the top open.
- Fill the interior X=2…9, Z=2…9 with water from Y=4 through Y=16. All 13 levels must contain source blocks rather than falling water alone. Kelp can convert filled columns into sources; remove all kelp after filling.
- Install magma in its 48 floor positions and check for downward bubble columns. Preserve the 16 central stone blocks and their calm water columns.

Importing the schematic
Align its bottom layer with world Y=47. Check the Ocean biome, source water and bubble updates after importing. The file contains blocks and water but no minecart, fish or output items. Temporarily open an accessible floor section over the tracks to place the cart, then restore it. Keep water out of the unloading tunnel.

Troubleshooting an empty chest
- Check that natural mob spawning is enabled and the tank is in an Ocean biome.
- Verify world elevations, the normal sea level and the waiting position’s distance.
- If fish appear without drops, inspect the magma and downward columns. Preserve the central calm-water patch; covering the whole floor with magma removes spawning space.
- If drops remain on the floor, check cart movement, inventory space and every track corner.
- If unloading stalls, inspect all nine hopper directions and chest capacity. Keep external redstone signals from locking the unloading line.
Native test result
The isolated test registered 34 naturally spawned cod. At the stopping point, the output chest held 12 raw cod and 17 ink sacs from squid as byproducts. The minecart visited all 72 rail positions. Remaining live fish and items still in transit are not included in those 12 collected cod. Other aquatic mobs can also spawn in the ocean tank; the chest holds combined drops rather than an isolated result for each species.
The test site’s Ocean biome was assigned with a command. No fish, squid or output items were supplied, and no loot tables were called directly. Native spawning, magma damage and minecart pickup produced the chest contents. Natural mob spawning was temporarily enabled and restored to the test world’s original disabled state afterward. Other world rules, random ticks, time and weather were unchanged. This verifies production and delivery rather than normal hourly throughput. The build does not provide fishing treasures and uses no fishing rod.


Discussion 0
Share your experience, ask questions and help other players.
It is quiet here. Your experience could help someone.