Under the loot house is a pressure plate that is wired to the redstone torch on the roof. When loot activates the pressure plate, it lights up the torch on the roof and I know to go collect. The cactus is to kill any chickens or pigs that get past the trap (which happens a lot).