Usage: tap mob with wheat will toggle script on/off. When enabled, tap any block with stick to create joystick. Then tap joystick buttons with stick to manipulate mob. Tap center to jump. Jump a little higher than usual, so be careful with fences.
// mobControl by MelomanCool
var RCset = 0;
var pad = 0;
var Center = 1;
var Timer = 0;
var mob = null;
var xUp = 0;
var zUp = 0;
var xDown = 0;
var zDown = 0;
var xLeft = 0;
var zLeft = 0;
var xRight = 0;
var zRight = 0;
var xCenter = 0;
var zCenter = 0;
var xUL = 0;
var zUL = 0;
var xUR = 0;
var zUR = 0;
var xDL = 0;
var zDL = 0;
var xDR = 0;
var zDR = 0;
var yAll = 0;
function attackHook(attacker, victim)
{
if(getCarriedItem() == 296) // Wheat
{
if(RCset == 0)
{
RCset = 1;
clientMessage("RC mode on");
mob = victim;
}
else
{
RCset = 0;
pad = 0;
clientMessage("RC mode off");
}
preventDefault();
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId == 280) // Stick
{
if(pad == 1 && RCset == 1)
{
if(x == xCenter && y == yAll && z == zCenter && Center == 1)
{
setVelY(mob, 0.5);
Center = 0;
}
if(x == xUp && y == yAll && z == zUp)
{
setVelX(mob, 0.5);
}
if(x == xDown && y == yAll && z == zDown)
{
setVelX(mob, -0.5);
}
if(x == xLeft && y == yAll && z == zLeft)
{
setVelZ(mob, -0.5);
}
if(x == xRight && y == yAll && z == zRight)
{
setVelZ(mob, 0.5);
}
if(x == xUL && y == yAll && z == zUL)
{
setVelX(mob, 0.5);
setVelZ(mob, -0.5);
}
if(x == xUR && y == yAll && z == zUR)
{
setVelX(mob, 0.5);
setVelZ(mob, 0.5);
}
if(x == xDL && y == yAll && z == zDL)
{
setVelX(mob, -0.5);
setVelZ(mob, -0.5);
}
if(x == xDR && y == yAll && z == zDR)
{
setVelX(mob, -0.5);
setVelZ(mob, 0.5);
}
}
if(RCset == 1 && pad == 0)
{
yAll = y;
xCenter = x;
zCenter = z;
setTile(xCenter, yAll, zCenter, 18);
x = x+1;
xUp = x;
zUp = z;
setTile(xUp, yAll, zUp, 20);
x = x-2;
xDown = x;
zDown = z;
setTile(xDown, yAll, zDown, 20);
x = x+1;
z = z-1;
xLeft = x;
zLeft = z;
setTile(xLeft, yAll, zLeft, 20);
z = z+2;
xRight = x;
zRight = z;
setTile(xRight, yAll, zRight, 20);
x = x+1;
z = z-2;
xUL = x;
zUL = z;
setTile(xUL, yAll, zUL, 5);
z = z+2;
xUR = x;
zUR = z;
setTile(xUR, yAll, zUR, 5);
x = x-2;
z = z-2;
xDL = x;
zDL = z;
setTile(xDL, yAll, zDL, 5);
z = z+2;
xDR = x;
zDR = z;
setTile(xDR, yAll, zDR, 5);
pad = 1;
}
}
}
function modTick()
{
if(Center == 0 && Timer < 10)
{
Timer = Timer+1;
}
if(Timer == 10)
{
Center = 1;
Timer = 0;
}
}
padTP
Teleport to any place by entering coordinates
Usage: tap any wool block with yellow flower to make numerical keyboard. it have format:
1 2 3
4 5 6
7 8 9
0
enter coordinates using iron hoe: X, Y, Z (if you want to enter 64, enter 064, if you want 1, enter 001, and for 0 enter 000) and you will be teleported.
I can't get it to work... I tap a mob with the wheat and get the message like you said but when I tap a block with a stick nothing happens... I'm on iOS if it makes any difference.
Gonna change wheat to pokballs now XD also has anyone ever thought what will happen when minecraft is updated yet cause its coming soon and we need to get ready for the coming of it
mobControl
Manipulate the mobs with the joystick.
Usage: tap mob with wheat will toggle script on/off. When enabled, tap any block with stick to create joystick. Then tap joystick buttons with stick to manipulate mob. Tap center to jump. Jump a little higher than usual, so be careful with fences.
Download: https://www.dropbox....b/mobControl.js
or use treebl's repo ID: 93
padTP
Teleport to any place by entering coordinates
Usage: tap any wool block with yellow flower to make numerical keyboard. it have format: enter coordinates using iron hoe: X, Y, Z (if you want to enter 64, enter 064, if you want 1, enter 001, and for 0 enter 000) and you will be teleported.
Download: https://www.dropbox....svz9ou/padTP.js
or use treebl's repo ID: 2429
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Now in a ModPE Scripts no such possibility