Execute Command not working as expected
When I try to use execute Cmd. It doesn't work as I expect.
Cmd:/execute @e[type=!Player] ~ ~ ~ /summon lightningbolt ~ ~ ~
Expected: All mobs around me should be struck by lightning
Result:"All invocations failed"
If I use the same Cmd without [type=!Player] , either it strikes lightning onto me or "All invocations failed"
How am I supposed to do what I expected.