Oh my gysh I'm sow exutd fr hiss modth. Cin wi hav prewf?
Can we have proof? If u were legit you would have a stinking modpe script. U haven't even learned. I bet ur just opening up the minecraft pe binary code and messing with it usinga text viewer
var explode = false;
function procCmd(cmd)
{
cmd = cmd.split(' ');
if(cmd[0]=="testMod")
{
explode = true;
}
}
function modTick()
{
if(explode){
explode(getPlayerX(),getPlayerY(),getPlayerZ(),4.4);
explode = false;
}
}
Oops. I just realized what you were trying to do
Sorry. It won't work because Item ID doesn't work in procCmd. Although, you could maybe use getCarriedItem()?
function procCmd (cmd)
{
var data = cmd.split (" ");
if (cmd[0] == "testMod")
{
addItemInventory(2,1);
}
}
}
You Were Trying To Add Air in Your Inventory
Thank you but I think you missed my point! I could get things added to my inventory but what I wanted to do is to enable a function through a command. (I lost my Mathematical Dessert title ;( )
Okay so I am making a mod that requires commands. The only problem is.. I CAN'T GET THEM TO WORK!!!!!
So heres the dealio I can get them to work when I do something like
function procCmd (cmd)
{
var data = cmd.split (" ");
if (data[0] == "testMod")
{
addItemInventory(1,1);
}
}
}
But what I want to do is....
function procCmd (cmd)
{
var data = cmd.split (" ");
if (data[0] == "testMod")
{
if(itemId==280)
{
explode(getPlayerX()+10,getPlayerY(),getPlayerZ(),4.4);
}
}
Do you see my point? All in all I can't get it to work any help?
0
0
0
0
0
0
0
0
0
0
0
So heres the dealio I can get them to work when I do something like
But what I want to do is....
Do you see my point? All in all I can't get it to work any help?
0
0
1
1