A court has heard how a man was caught with cannabis worth more than £2,000, plus swords and a scythe, in his home.