I created a lightning rod that can shoot 10 times then breaks. I want to make it so the lightning doesnt damage the player that is using the rod but does damage other players and mobs. I also want to create an interval so you can't just spam click it 10 times. If you need the code I can give it to you. I would really like to have this.
I have an idea so when you use the item it destroys it then gets spawned back in your inventory after 3 seconds so it can't be spammed but it only will get spawned in 10 times and then you have to craft a new one any idea on how to do that?