on break of obsidian:
cancel drops
if player's tool is a diamond pickaxe:
cancel drops
give player (2 * (level of fortune of player's tool)) of nether star
else:
cancel drops
give player a nether star
Just copy paste the code in don't change the parentheses