One thing I did notice is that your mod should only have one main function -- try giving the other functions different titles - try naming functions based on what they do. Like: powers for the function that gives you powers.
Also, start with small numbers and gradually work your way up. Try summoning three zombies at first, and giving yourself an effect that lasts a few seconds.
And to debug, remove some blocks and then test to see where the problem area might be. It's easier to make a mod with only a few blocks in it at first, then test to make sure it works, then gradually add more blocks,
In your main function, you should call the other functions. (check out the skills and drills < functions badges on how to call functions)