Can you build a monster farm on an iron farm in Minecraft?

Sn
1

Can you build a monster farm on an iron farm in Minecraft?

Pa

Build it next to it