This is my first mod, so its not that good, but it is fun to play with the mod with your friends,
hope u enjoy if u use it on youtube put the link in the comments and I will add it to the forum post.
Here is the mod download below hope u enjoy and leave me feedback in the comments
Kingbudderjr is such a d*ck he thinks that he's the only one that thought about a certain mod He wants all the fame for himself even though people aren't even copying his code.. Tsk tsk
Lol , I am Not updating this mod anymore sorry, It was my first mod and I Done with it, But I am eventually going to add the FlameThrower
into HaloCraft(The Mod Me and ngamebro are working on)
And the minigun function is already on the Needler and soon to be assault rifle.
hope u enjoy if u use it on youtube put the link in the comments and I will add it to the forum post.
Here is the mod download below hope u enjoy and leave me feedback in the comments
https://www.dropbox.com/s/4vebqxjibl2khrg/Shadow_Guns.js?m=
To get weapons type /guns
Or add these Item ID's
500 = Bazooka
501 = Minigun
502 = FlameThrower
?
Ok if u do it on yt put the link in the comments
Kingbudderjr is such a d*ck he thinks that he's the only one that thought about a certain mod He wants all the fame for himself even though people aren't even copying his code.. Tsk tsk
into HaloCraft(The Mod Me and ngamebro are working on)
And the minigun function is already on the Needler and soon to be assault rifle.
ModPE.setItem(500,"blaze_rod",0,"§6TntGun"); ModPE.setItem(501,"blaze_rod",0,"§2ArrowGun"); ModPE.setItem(502,"blaze_rod",0,"§4FlameThrower"); var digg=0; var velX; var velY; var velZ; var flame; var dig; function modTick() { var playerYaw = Entity.getYaw(Player.getEntity()); var playerPitch = Entity.getPitch(Player.getEntity()); if(Player.getCarriedItem()==500) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); var tnt = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-2,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,65); setVelX(tnt,velX); setVelY(tnt,velY); setVelZ(tnt,velZ); } else if(getCarriedItem()==501) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); var arrow = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-2,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,80); setVelX(arrow,velX); setVelY(arrow,velY); setVelZ(arrow,velZ); } else if(getCarriedItem()==502) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); flame = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-2,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,81); setVelX(flame,velX); setVelY(flame,velY); setVelZ(flame,velZ); } } function entityRemovedHook(entity) { flame=81; if(Entity.getEntityTypeId(entity)==flame) { setTile(Entity.getX(entity),Entity.getY(entity)+1,Entity.getZ(entity),51); } } function procCmd(cmd) { var cmd = cmd.split(" "); if(cmd[0]=="guns") { addItemInventory(500,1); addItemInventory(501,1); addItemInventory(502,1); } }"Your mod":
ModPE.setItem(500,"iron_horse_armor",0,"§6Bazooka"); ModPE.setItem(501,"diamond_horse_armor",0,"§2Minigun"); ModPE.setItem(502,"gold_horse_armor",0,"§4FlameThrower"); var digg=0; var velX; var velY; var velZ; var flame; var dig; function newLevel() { clientMessage("§2Mod Creator:§6ShadowWolf1014"); } function modTick() { var playerYaw = Entity.getYaw(Player.getEntity()); var playerPitch = Entity.getPitch(Player.getEntity()); if(Player.getCarriedItem()==500) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); var tnt = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-0.5,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,65); setVelX(tnt,velX); setVelY(tnt,velY); setVelZ(tnt,velZ); } else if(getCarriedItem()==501) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); var arrow = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-0.5,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,80); setVelX(arrow,velX); setVelY(arrow,velY); setVelZ(arrow,velZ); } else if(getCarriedItem()==502) { velY = Math.sin((playerPitch - 180) / 180 * Math.PI); velX = 3.5 * (Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); velZ = 3.5 * (-1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI)); flame = Level.spawnMob(Player.getX() + Math.sin(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,Player.getY()-0.5,Player.getZ() + -1 * Math.cos(playerYaw / 180 * Math.PI) * Math.cos((playerPitch - 180) / 180 * Math.PI) ,81); setVelX(flame,velX); setVelY(flame,velY); setVelZ(flame,velZ); } } function entityRemovedHook(entity) { flame=81; if(Entity.getEntityTypeId(entity)==flame) { setTile(Entity.getX(entity),Entity.getY(entity)+1,Entity.getZ(entity),51); } } function procCmd(cmd) { var cmd = cmd.split(" "); if(cmd[0]=="guns") { addItemInventory(500,1); addItemInventory(501,1); addItemInventory(502,1); } }Sorry about that.
(HaloCraftPE = http://www.minecraftforum.net/topic/2672465-beta-halocraft-v-003-update-includes-new-armour-new-mobs-updated-weapons-crafting-recipes-and-now-has-textures/)