hello there guys and girls I have a new mod that lets you play a mini game like tnt run but works on all blocks and I felt lazy again so heres the code.
var destroy = 10;
var gameOn = 0;
function modTick()
{
destroy--;
{
if (gameOn==1)
{
setTile(getPlayerX(),getPlayerY()-1,getPlayerZ(),0);
destroy = 10;
}
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)
{
if(gameOn==1)
{
gameOn = 0;
}
if(gameOn==0)
{
gameOn = 1;
}
}
}
you activate and deactivate the game by tapping a block with a stick
hello there guys and girls I have a new mod that lets you play a mini game like tnt run but works on all blocks and I felt lazy again so heres the code.
var destroy = 0;
var gameOn = 0;
function modTick()
{
destroy--;
{
if (gameOn==1)
{
setTile(getPlayerX(),getPlayerY()-1,getPlayerZ(),0);
destroy = 1;
}
}
}
function procCmd(cmd)
{
var Data = cmd.split(" ");
if (Data[0]=="on")
{
gameOn = 1;
}
if (Data[0]=="off")
{
gameOn = 0;
}
}
you activate the game when you type in chat "/on" and to turn it off type "/off"
thank you for taking a look at this
hello there guys and girls I have a new mod that lets you play a mini game like tnt run but works on all blocks and I felt lazy again so heres the code.
var destroy = 0;
var gameOn = 0;
function modTick()
{
destroy--;
{
if (gameOn==1)
{
setTile(getPlayerX(),getPlayerY()-1,getPlayerZ(),0);
destroy = 1;
}
}
}
function procCmd(cmd)
{
var Data = cmd.split(" ");
if (Data[0]=="on")
{
gameOn = 1;
}
if (Data[0]=="off")
{
gameOn = 0;
}
}
you activate the game when you type in chat "/on" and to turn it off type "/off"
thank you for taking a look at this
oh, wait i think i get it! you just run around so the ground doesn't swallow you up, right? but when you try to type in the command to turn it off you go into the void and die. :/
oh, wait i think i get it! you just run around so the ground doesn't swallow you up, right? but when you try to type in the command to turn it off you go into the void and die. :/
you have a good point will change it so you tap a block thanks for that
var destroy = 10; var gameOn = 0; function modTick() { destroy--; { if (gameOn==1) { setTile(getPlayerX(),getPlayerY()-1,getPlayerZ(),0); destroy = 10; } } } function useItem(x,y,z,itemId,blockId,side) { if(itemId==280) { if(gameOn==1) { gameOn = 0; } if(gameOn==0) { gameOn = 1; } } }you activate and deactivate the game by tapping a block with a stick
What exactly the purpose of this mod?
Thanks
oh, wait i think i get it! you just run around so the ground doesn't swallow you up, right? but when you try to type in the command to turn it off you go into the void and die. :/
you have a good point will change it so you tap a block thanks for that
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]