//making the monster spawn
function useItem(x, y, z, itemId, blockId, side){
if itemId == 480{
spawnCreeper(x, y, z,"mob/creeper.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 481{
spawnSpider(x, y, z,"mob/spider.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 482{
spawnSkeleton(x, y, z,"mob/skeleton.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 483{
spawnZombie(x, y, z,"mob/zombie.png")
}
};
funtion useItem(x, y, z, itemId, blockId, side){
if itemId == 484{
var angryCow = spawnSpider(x, y, z,"mob/angryCow.png")
Entity.setRenderType(angryCow,7)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 485{
var angryCow = spawnSpider(x, y, z,"mob/angrySheep.png")
Entity.setRenderType(angryCow,9)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 486{
var angryCow = spawnSpider(x, y, z,"mob/angryPig.png")
Entity.setRenderType(angryCow,8)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 487{
var angryCow = spawnSpider(x, y, z,"mob/angryChicken.png")
Entity.setRenderType(angryChicken,6)
}
};
//get all of the stuff using a mod with the give command
Rollback Post to RevisionRollBack
knowing how to CODE is the closest thing to having a super power
... most of these functions don't even exist, you've written half of the functions and hooks wrong, and your missing brackets.... I'm not sure where to start...
//hostile spawn eggs
/**
by ethanol gaming
do not modify redistribute or claim as yours without
permission
*/
//reference
/**
6 = chicken
7 = cow
8 = pig
9 = sheep
11 = zombie
12 = skeleton
13 = spider
3 = pigzombie
16 = creeper
*/
//eggs
ModPE.setItem(500, 15, 1,"creeper spawn egg");
ModPE.setItem(501, 15, 8,"skeleton spawn egg");
ModPE.setItem(502, 15, 0,"zombie spawn egg");
ModPE.setItem(503, 14, 1,"hostile cow spawn egg");
ModPE.setItem(504, 14, 0,"hostile chicken spawn egg");
ModPE.setItem(505, 14, 2,"hostile pig spawn egg");
ModPE.setItem(506, 14, 3,"hostile sheep spawn egg");
ModPE.setItem(507, 15, 3,"spider spawn egg");
//making the monster spawn
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==500)
{
Entity.spawnMob(x,y+1,z,32,"mob/creeper.png");
}
else if(itemId==501)
{
Entity.spawnMob(x,y+1,z,33,"mob/skeleton.png");
}
else if(itemId==502)
{
Entity.spawnMob(x,y+1,z,36,"mob/zombie.png");
}
else if(itemId==503)
{
var HostileCow = Entity.spawnMob(x,y+1,z,34,"mob/cow.png");
Entity.setRenderType(HostileCow,7);
}
else if(itemId==504)
{
var HostileChicken = Entity.spawnMob(x,y+1,z,34,"mob/chicken.png");
Entity.setRenderType(HostileChicken,6);
}
else if(itemId==505)
{
var HostilePig = Entity.spawnMob(x,y+1,z,34,"mob/pig.png");
Entity.setRenderType(HostilePig,8);
}
else if(itemId==506)
{
var HostileSheep = Entity.spawnMob(x,y+1,z,34,"mob/sheep.png");
Entity.setRenderType(HostileSheep,9);
}
else if(itemId==507)
{
Entity.spawnMob(x,y+1,z,34,"mob/spider.png");
}
}
//get all of the stuff using a mod with the give command
I had to rewrite the code because there was to many errors! Give me a +1 if i helped
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
To post a comment, please login or register a new account.
//hostile spawn eggs
/**
by ethanol gaming
do not modify redistribute or claim as yours without
permission
*/
//reference
/**
6 = chicken
7 = cow
8 = pig
9 = sheep
11 = zombie
12 = skeleton
13 = spider
3 = pigzombie
16 = creeper
*/
//eggs
ModPE.setItem(480, 15, 1,"creeper spawn egg");
ModPE.setItem(482, 15, 8,"skeleton spawn egg");
ModPE.setItem(483, 15, 0,"zombie spawn egg");
ModPE.setItem(484, 14, 1,"hostile cow spawn egg");
ModPE.setItem(485, 14, 0,"hostile chicken spawn egg");
ModPE.setItem(486, 14, 2,"hostile pig spawn egg");
ModPE.setItem(487, 14, 3,"hostile sheep spawn egg");
ModPE.setItem(488, 15, 3,"spider spawn egg");
//making the monster spawn
function useItem(x, y, z, itemId, blockId, side){
if itemId == 480{
spawnCreeper(x, y, z,"mob/creeper.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 481{
spawnSpider(x, y, z,"mob/spider.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 482{
spawnSkeleton(x, y, z,"mob/skeleton.png")
}
};
function useItem(x, y, z, itemId, blockId, side){
if itemId == 483{
spawnZombie(x, y, z,"mob/zombie.png")
}
};
funtion useItem(x, y, z, itemId, blockId, side){
if itemId == 484{
var angryCow = spawnSpider(x, y, z,"mob/angryCow.png")
Entity.setRenderType(angryCow,7)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 485{
var angryCow = spawnSpider(x, y, z,"mob/angrySheep.png")
Entity.setRenderType(angryCow,9)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 486{
var angryCow = spawnSpider(x, y, z,"mob/angryPig.png")
Entity.setRenderType(angryCow,8)
}
};
ntion useItem(x, y, z, itemId, blockId, side){
if itemId == 487{
var angryCow = spawnSpider(x, y, z,"mob/angryChicken.png")
Entity.setRenderType(angryChicken,6)
}
};
//get all of the stuff using a mod with the give command
Look at other peoples scripts. If you know Javascript then this should be quite easy for you.
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
//hostile spawn eggs /** by ethanol gaming do not modify redistribute or claim as yours without permission */ //reference /** 6 = chicken 7 = cow 8 = pig 9 = sheep 11 = zombie 12 = skeleton 13 = spider 3 = pigzombie 16 = creeper */ //eggs ModPE.setItem(500, 15, 1,"creeper spawn egg"); ModPE.setItem(501, 15, 8,"skeleton spawn egg"); ModPE.setItem(502, 15, 0,"zombie spawn egg"); ModPE.setItem(503, 14, 1,"hostile cow spawn egg"); ModPE.setItem(504, 14, 0,"hostile chicken spawn egg"); ModPE.setItem(505, 14, 2,"hostile pig spawn egg"); ModPE.setItem(506, 14, 3,"hostile sheep spawn egg"); ModPE.setItem(507, 15, 3,"spider spawn egg"); //making the monster spawn function useItem(x, y, z, itemId, blockId, side) { if(itemId==500) { Entity.spawnMob(x,y+1,z,32,"mob/creeper.png"); } else if(itemId==501) { Entity.spawnMob(x,y+1,z,33,"mob/skeleton.png"); } else if(itemId==502) { Entity.spawnMob(x,y+1,z,36,"mob/zombie.png"); } else if(itemId==503) { var HostileCow = Entity.spawnMob(x,y+1,z,34,"mob/cow.png"); Entity.setRenderType(HostileCow,7); } else if(itemId==504) { var HostileChicken = Entity.spawnMob(x,y+1,z,34,"mob/chicken.png"); Entity.setRenderType(HostileChicken,6); } else if(itemId==505) { var HostilePig = Entity.spawnMob(x,y+1,z,34,"mob/pig.png"); Entity.setRenderType(HostilePig,8); } else if(itemId==506) { var HostileSheep = Entity.spawnMob(x,y+1,z,34,"mob/sheep.png"); Entity.setRenderType(HostileSheep,9); } else if(itemId==507) { Entity.spawnMob(x,y+1,z,34,"mob/spider.png"); } } //get all of the stuff using a mod with the give commandI had to rewrite the code because there was to many errors! Give me a +1 if i helped
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->