Created
November 12, 2015 07:03
-
-
Save HTMLCoder4555/2c7c6ef45a87491e127d to your computer and use it in GitHub Desktop.
Explosive Arrows Mod for MC: PE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Explosive Arrows Mode Made By COOLDUDE509 | |
var bomb; | |
var ex=false; | |
function entityAddedHook(ID){ | |
if(Entity.getEntityTypeId(ID)==80){ | |
bomb=ID; | |
ex=true; | |
} | |
} | |
function modTick() { | |
if(ex==true) { | |
if(getTile(Entity.getX(bomb),Entity.getY(bomb)-1,Entity.getZ(bomb))==0&&getTile(Entity.getX(bomb),Entity.getY(bomb)+1,Entity.getZ(bomb))==0&&getTile(Entity.getX(bomb)+1,Entity.getY(bomb),Entity.getZ(bomb))==0&&getTile(Entity.getX(bomb)-1,Entity.getY(bomb),Entity.getZ(bomb))==0&&getTile(Entity.getX(bomb),Entity.getY(bomb),Entity.getZ(bomb)+1)==0&&getTile(Entity.getX(bomb),Entity.getY(bomb),Entity.getZ(bomb)-1)==0) { | |
}else{ | |
Level.explode(Entity.getX(bomb),Entity.getY(bomb),Entity.getZ(bomb),10); | |
bomb=null; | |
ex=false; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment