Well, here's my question: I'm trying to script custom NPC and I want to make a mob that, when collide with a player on range 1 (x=1, y=1, z=1 talking about range) it explodes and the mob dies. I imagine that the script must be on the collide section, but I don't know the full script. If someone knows the full script would be a huge help!
I'm using version 1,7,10, ECMA language ty