You need about 100 Mejoberries. You should probably tame it around a bushy area, so you can keep collecting berries. Do not attack a Diplodocus! Just get close and start feeding it mejoberies. Feed it one mejoberry every time it says to. Diplodocus will knock you around during taming. This is not an attack. It's just playing.