hey guys,i have a problem again
about setpotition mob
this is the crashed mod
ModPE.setFoodItem(500,7,12,"Carrot");
ModPE.setItem(501,8,12,"Western Wheat");
function destroyBlock(x, y, z,itemId,blockId,side) {
if(blockId==59) {
Level.dropItem(x, y, z, 1, 501, 1);
}
}
function attackHook(attacker, victim) {
var breed = getCarriedItem();
var mob = 0;
var mob1 = 0;
var mob2 = 0;
var mob3 = 0;
var age = 0;
var cow = 0;
var sheep = 0;
var pig = 0;
var chicken =0;
if(breed==296&&mob==0) {
preventDefault();
print("tap another mob to start breeding!");
cow = 0;
} else if(breed==296&&cow==0) {
Entity.setPosition(mob)getPositionX()+1,getPositionY(),getPositionModPE.setFoodItem(500,7,12,"Carrot");
ModPE.setItem(501,8,12,"Western Wheat");
function destroyBlock(x, y, z,itemId,blockId,side) {
if(blockId==59) {
Level.dropItem(x, y, z, 1, 501, 1);
}
}
if you know the correct script please tell me!!!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
about setpotition mob
this is the crashed mod
ModPE.setFoodItem(500,7,12,"Carrot");
ModPE.setItem(501,8,12,"Western Wheat");
function destroyBlock(x, y, z,itemId,blockId,side) {
if(blockId==59) {
Level.dropItem(x, y, z, 1, 501, 1);
}
}
function attackHook(attacker, victim) {
var breed = getCarriedItem();
var mob = 0;
var mob1 = 0;
var mob2 = 0;
var mob3 = 0;
var age = 0;
var cow = 0;
var sheep = 0;
var pig = 0;
var chicken =0;
if(breed==296&&mob==0) {
preventDefault();
print("tap another mob to start breeding!");
cow = 0;
} else if(breed==296&&cow==0) {
Entity.setPosition(mob)getPositionX()+1,getPositionY(),getPositionModPE.setFoodItem(500,7,12,"Carrot");
ModPE.setItem(501,8,12,"Western Wheat");
function destroyBlock(x, y, z,itemId,blockId,side) {
if(blockId==59) {
Level.dropItem(x, y, z, 1, 501, 1);
}
}
if you know the correct script please tell me!!!