@Override
public void onEntityWalking(World world, int x, int y, int z, Entity entity)
{
if (entity instanceof EntityPlayer)
{
entity.setPosition([x pos], [y pos], [z pos]);
}
}
@Override
public void onEntityWalking(World world, int x, int y, int z, Entity entity)
{
if (entity instanceof EntityPlayer)
{
entity.setPosition([x pos], [y pos], [z pos]);
}
}
and replace the [x pos]... with coords
Where to find block class?
And what do you mean by "entity instance of entity player"?
Can you please explain?? Hehe
Im a beginner so..pls help..
Sorry for my bad english
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Does anyone know the codes for this..??
"If you step on a block, you will be teleported to the given coords"
Please Help
function modTick(){
if(getTile(Player.getX()Player.getY(),Player.getZ())==blockId){ //put your block ID there
setPosition(getPlayerEnt(),Player.getX()+how far,Player.getY()+how high ,Player.getZ()+how far)
}
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAdd this in your block class:
@Override public void onEntityWalking(World world, int x, int y, int z, Entity entity) { if (entity instanceof EntityPlayer) { entity.setPosition([x pos], [y pos], [z pos]); } }and replace the [x pos]... with coords
Where to find block class?
And what do you mean by "entity instance of entity player"?
Can you please explain?? Hehe
Im a beginner so..pls help..
Sorry for my bad english