this is like my mod.(i lose the file :c)
ModPE.setItem(500,"blaze_rod",0,"CreeperSpawn")//make a new item(id 500)
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==500)//if you use your new item in any block
{
Level.spawnMob(x,y,z,36,"newcreepertexturensme.png");
clientMessage("ยง4Creeper spawned");
}
ithink 36 is creeper id if i wrong pick id in mcpe data values site
give me +1 if i helped and good luck with your mod ^^
To the new creeper have a new skin you need to create/downoad a creeper skin and put in your texture.To make the texture you will extract the mcpe game and put the new skin in mob folder and rename like A.png and use in your mod in Level.spawnMob(x,y,z,36,"A.png")
ModPE.setItem(501,"blaze_rod",0,"Spawn Creeper");
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId == 501){
Level.spawnMob(x, y, z, 33, "mob/newcreeper.png");
}
}
You can do this too
ModPE.setItem(501,"blaze_rod",0,"Spawn Creeper");
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId == 501){
var creeper = Level.spawnMob(x, y, z, 33, "mob/newcreeper.png");
Entity.setHealth(creeper,100);
}
}
ModPE.setItem(500,"blaze_rod",0,"CreeperSpawn")//make a new item(id 500)
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==500)//if you use your new item in any block
{
Level.spawnMob(x,y,z,36,"newcreepertexturensme.png");
clientMessage("ยง4Creeper spawned");
}
ithink 36 is creeper id if i wrong pick id in mcpe data values site
give me +1 if i helped and good luck with your mod ^^
To the new creeper have a new skin you need to create/downoad a creeper skin and put in your texture.To make the texture you will extract the mcpe game and put the new skin in mob folder and rename like A.png and use in your mod in Level.spawnMob(x,y,z,36,"A.png")
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId == 501){
Level.spawnMob(x, y, z, 33, "mob/newcreeper.png");
}
}
You can do this too
ModPE.setItem(501,"blaze_rod",0,"Spawn Creeper");
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId == 501){
var creeper = Level.spawnMob(x, y, z, 33, "mob/newcreeper.png");
Entity.setHealth(creeper,100);
}
}