Slimeball is obtained from Slime mobs, which don't spawn on peaceful mode. You can trade slimeball with wandering traders for 4 emeralds.