Ok guys ShaderGameing here and i just learned java script and php !!! So I've edited some modpe scripts but it was small changes ! I want to make my own ! i just need to know.what these functions do so if u know please COMMENT like this
Ex: SetTile= Change that block to a different block
These are some functions
Quote
function Entity.setVelX(ent, amount);
function Entity.setVelY(ent, amount);
function Entity.setVelZ(ent, amount);
function Entity.setRot(ent,x,y);
function Entity.rideAnimal(player, target);
function Entity.setPosition(ent,x,y,z);
function Entity.setPositionRelative(ent,x,y,z);
function Entity.getYaw(ent);
function Entity.getPitch(ent);
function getLevel();
function getMCPE();
function getYaw();
function getPitch();
function setPosition(ent,x,y,z);
function setPositionRelative(ent,x,y,z);
function setRot(ent,x,y);
function getTile(x,y,z);
function setVelX(ent, amount);
function setVelY(ent, amount);
function setVelZ(ent, amount);
I will give you credit in every modpe i make Thanks also im getting help from hexdro ! Thanks hexdro !
I WANT TO KNOW HOW I CAN USE THESE FUNCTIONS
I Want To make this a mod
Build that tap it with a iron sword and ir follows u ! and when it touchs u u take damage !!
I also need u to put in the comment how i can use these functions in my code !!! Thanks
0
I want a modpe function list but put like this
function : Does this , you can use it by doing this !
function Entity.setVelX(ent, amount); moves a entity x function Entity.setVelY(ent, amount); moves a entity y function Entity.setVelZ(ent, amount); moves a entity z function Entity.setRot(ent,x,y); sets the entity rotation to... function Entity.rideAnimal(player, target); ride animal? function Entity.setPosition(ent,x,y,z); sets a entity at xyz cords function Entity.setPositionRelative(ent,x,y,z); ???? function Entity.getYaw(ent); ??? function Entity.getPitch(ent); ???
function getLevel(); function getMCPE(); function getYaw(); function getPitch(); function setPosition(ent,x,y,z); i belive this teleports the player to the cords function setPositionRelative(ent,x,y,z); ???? function setRot(ent,x,y); sets player rotation? function getTile(x,y,z); ???? function setVelX(ent, amount); sets player moving x function setVelY(ent, amount); sets player moving y function setVelZ(ent, amount); sets player moving z
hope that this helps!!! can i be a beta tester for you please?
function Entity.setVelX(ent, amount); moves a entity x function Entity.setVelY(ent, amount); moves a entity y function Entity.setVelZ(ent, amount); moves a entity z function Entity.setRot(ent,x,y); sets the entity rotation to... function Entity.rideAnimal(player, target); ride animal? function Entity.setPosition(ent,x,y,z); sets a entity at xyz cords function Entity.setPositionRelative(ent,x,y,z); ???? function Entity.getYaw(ent); ??? function Entity.getPitch(ent); ???
function getLevel(); function getMCPE(); function getYaw(); function getPitch(); function setPosition(ent,x,y,z); i belive this teleports the player to the cords function setPositionRelative(ent,x,y,z); ???? function setRot(ent,x,y); sets player rotation? function getTile(x,y,z); ???? function setVelX(ent, amount); sets player moving x function setVelY(ent, amount); sets player moving y function setVelZ(ent, amount); sets player moving z
hope that this helps!!! can i be a beta tester for you please?
thanks!
can i use function setVelX(ent, amount) to male blocks move ? and if so how ?
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
Ok guys ShaderGameing here and i just learned java script and php !!! So I've edited some modpe scripts but it was small changes ! I want to make my own ! i just need to know.what these functions do so if u know please COMMENT like this
Ex: SetTile= Change that block to a different block
These are some functions
Quote
function Entity.setVelX(ent, amount);
function Entity.setVelY(ent, amount);
function Entity.setVelZ(ent, amount);
function Entity.setRot(ent,x,y);
function Entity.rideAnimal(player, target);
function Entity.setPosition(ent,x,y,z);
function Entity.setPositionRelative(ent,x,y,z);
function Entity.getYaw(ent);
function Entity.getPitch(ent);
function getLevel();
function getMCPE();
function getYaw();
function getPitch();
function setPosition(ent,x,y,z);
function setPositionRelative(ent,x,y,z);
function setRot(ent,x,y);
function getTile(x,y,z);
function setVelX(ent, amount);
function setVelY(ent, amount);
function setVelZ(ent, amount);
I will give you credit in every modpe i make Thanks also im getting help from hexdro ! Thanks hexdro !
I WANT TO KNOW HOW I CAN USE THESE FUNCTIONS
I Want To make this a mod
Build that tap it with a iron sword and ir follows u ! and when it touchs u u take damage !!
I also need u to put in the comment how i can use these functions in my code !!! Thanks
0
I want a modpe function list but put like this
function : Does this , you can use it by doing this !
Ex: SetTile= Change that block to a different block
These are some functions
function Entity.setVelX(ent, amount);
function Entity.setVelY(ent, amount);
function Entity.setVelZ(ent, amount);
function Entity.setRot(ent,x,y);
function Entity.rideAnimal(player, target);
function Entity.setPosition(ent,x,y,z);
function Entity.setPositionRelative(ent,x,y,z);
function Entity.getYaw(ent);
function Entity.getPitch(ent);
function getLevel();
function getMCPE();
function getYaw();
function getPitch();
function setPosition(ent,x,y,z);
function setPositionRelative(ent,x,y,z);
function setRot(ent,x,y);
function getTile(x,y,z);
function setVelX(ent, amount);
function setVelY(ent, amount);
function setVelZ(ent, amount);
I WANT TO KNOW HOW I CAN USE THESE FUNCTIONS
I Want To make this a mod
Build that tap it with a iron sword and ir follows u ! and when it touchs u u take damage !!
I also need u to put in the comment how i can use these functions in my code !!! Thanks
- 0
I want a modpe function list but put like thisfunction : Does this , you can use it by doing this !
If you don't wanna COMMENT pm me !
function Entity.setVelY(ent, amount); moves a entity y
function Entity.setVelZ(ent, amount); moves a entity z
function Entity.setRot(ent,x,y); sets the entity rotation to...
function Entity.rideAnimal(player, target); ride animal?
function Entity.setPosition(ent,x,y,z); sets a entity at xyz cords
function Entity.setPositionRelative(ent,x,y,z); ????
function Entity.getYaw(ent); ???
function Entity.getPitch(ent); ???
function getLevel();
function getMCPE();
function getYaw();
function getPitch();
function setPosition(ent,x,y,z); i belive this teleports the player to the cords
function setPositionRelative(ent,x,y,z); ????
function setRot(ent,x,y); sets player rotation?
function getTile(x,y,z); ????
function setVelX(ent, amount); sets player moving x
function setVelY(ent, amount); sets player moving y
function setVelZ(ent, amount); sets player moving z
hope that this helps!!! can i be a beta tester for you please?
thanks!
can i use function setVelX(ent, amount) to male blocks move ? and if so how ?
I am secretly a modder, who works only for himself, seldom publishes.
if(itemId == 267) {
setTile(x+1,y,z,2);
setTile(x+1,y,z,0);
setTile(x+2,y,z,2);
setTile(x+2,y,z,0);
setTile(x+3,y,z,2);
But no i want it to move !!!!!
// Snow Golem mod by kacperski1
// version 0.2
var gX;
var gY;
var gZ;
var preX;
var preY;
var preZ;
var direction;
var active = 0;
var tickCurrent = 0;
var tickDuration = 30;
var debugActive = 0;
var activationItem = 332;
var actBlock1 = 103;
var actBlock2 = 80;
var actBlock3 = 80;
function useItem(x,y,z,itemId,blockId)
{
if(itemId == activationItem)
{
if(blockId == actBlock1 && getTile(x,y-1,z) == actBlock2 && getTile(x,y-2,z) == actBlock3)
{
gX = x;
gY = y - 2;
gZ = z;
preX = x;
preY = y - 2;
preZ = z;
direction = Math.floor((Math.random()*4)+1);
active = 1;
}
if(blockId == actBlock2 && getTile(x,y+1,z) == actBlock1 && getTile(x,y-2,z) == actBlock3)
{
gX = x;
gY = y - 1;
gZ = z;
preX = x;
preY = y - 1;
preZ = z;
direction = Math.floor((Math.random()*4)+1);
active = 1;
}
if(blockId == actBlock3 && getTile(x,y+1,z) == actBlock2 && getTile(x,y+2,z) == actBlock1)
{
gX = x;
gY = y;
gZ = z;
preX = x;
preY = y;
preZ = z;
direction = Math.floor((Math.random()*4)+1);
active = 1;
}
}
}
function moveTick()
{
tickCurrent++;
if(tickCurrent >= tickDuration)
{
tickCurrent = 0;
return 1;
}
return 0;
}
function checkExistence()
{
if(getTile(gX,gY,gZ) == actBlock3)
{
if(getTile(gX,gY+1,gZ) == actBlock2)
{
if(getTile(gX,gY+2,gZ) == actBlock1)
{
return 1;
}
}
}
return 0;
}
function modTick()
{
if(active == 1)
{
if(!checkExistence()) {active = 0;}
if(moveTick())
{
if(Math.floor((Math.random()*5)+1) == 4)
{
direction = Math.floor((Math.random()*4)+1);
}
switch(direction)
{
case 1:
if((getTile(gX+1,gY,gZ) == 0 || getTile(gX+1,gY,gZ) == 78) && getTile(gX+1,gY+1,gZ) == 0 && getTile(gX+1,gY+2,gZ) == 0)
{
setTile(gX,gY,gZ,78);
setTile(gX,gY+1,gZ,0);
setTile(gX,gY+2,gZ,0);
setTile(gX+1,gY,gZ,actBlock3);
setTile(gX+1,gY+1,gZ,actBlock2);
setTile(gX+1,gY+2,gZ,actBlock1);
gX = gX+1;
}
else {direction = Math.floor((Math.random()*4)+1);}
break;
case 2:
if((getTile(gX-1,gY,gZ) == 0 || getTile(gX-1,gY,gZ) == 78) && getTile(gX-1,gY+1,gZ) == 0 && getTile(gX-1,gY+2,gZ) == 0)
{
setTile(gX,gY,gZ,78);
setTile(gX,gY+1,gZ,0);
setTile(gX,gY+2,gZ,0);
setTile(gX-1,gY,gZ,actBlock3);
setTile(gX-1,gY+1,gZ,actBlock2);
setTile(gX-1,gY+2,gZ,actBlock1);
gX = gX-1;
}
else {direction = Math.floor((Math.random()*4)+1);}
break;
case 3:
if((getTile(gX,gY,gZ+1) == 0 || getTile(gX,gY,gZ+1) == 78) && getTile(gX,gY+1,gZ+1) == 0 && getTile(gX,gY+2,gZ+1) == 0)
{
setTile(gX,gY,gZ,78);
setTile(gX,gY+1,gZ,0);
setTile(gX,gY+2,gZ,0);
setTile(gX,gY,gZ+1,actBlock3);
setTile(gX,gY+1,gZ+1,actBlock2);
setTile(gX,gY+2,gZ+1,actBlock1);
gZ = gZ+1;
}
else {direction = Math.floor((Math.random()*4)+1);}
break;
case 4:
if((getTile(gX,gY,gZ-1) == 0 || getTile(gX,gY,gZ-1) == 78) && getTile(gX,gY+1,gZ-1) == 0 && getTile(gX,gY+2,gZ-1) == 0)
{
setTile(gX,gY,gZ,78);
setTile(gX,gY+1,gZ,0);
setTile(gX,gY+2,gZ,0);
setTile(gX,gY,gZ-1,actBlock3);
setTile(gX,gY+1,gZ-1,actBlock2);
setTile(gX,gY+2,gZ-1,actBlock1);
gZ = gZ-1;
}
else {direction = Math.floor((March.random()*4)+1);}
break;
}
}
if(getTile(gX,gY-1,gZ) == 0)
{
setTile(gX,gY+2,gZ,0);
setTile(gX,gY+1,gZ,actBlock1);
setTile(gX,gY,gZ,actBlock2);
setTile(gX,gY-1,gZ,actBlock3);
gY--;
}
}
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Well mr.Pro can you help lol whats the function ? How can it be used and what do i need pesides that code to use it ??
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumPmed you.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
so can i beta test for you? thanks!
Made a new account
may i please beta test for you when you start to mod? thanks!
Yes