I noticed that the couple of warp mods available don't have a command line option to teleport. Supergamer has a UI option that allows you to teleport to coordinates, but it doesn't support negative integers so I wrote a quick and simple mod to allow you to do that.
If you'd like to also be able to see your coordinates on the screen to make it easier to find those you're playing with I used code by softmage114486 to make XYZ2 which incorporates my simple teleport mod into an old XYZ mod that shows you your coordinates on the screen and adds the /TP command.
Note: If the coordinates don't show up on a multiplayer session type /on and it will load XYZ2. Also use one or the other, not both mods. For those who are new, you need BlockLauncher to use these mods.
I can't download the Mod correctly... Did you tested if the download works?
Yes, I just downloaded both after reading your post. Try using Firefox to download it or click the link in the post which brings you to the hosting site it's on, then right click on the filename and select "save as" or "save link as"
7 people have downloaded the first link successfully so far and 2 have grabbed the xyz2 one.
If you're stilll having trouble downloading from that site, here is the code if you want to paste them into .js files:
//tp.js
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0]=="tp"){
setPosition(getPlayerEnt(), cmd[1], cmd[2], cmd[3]);
}
}
// XYZ2 based on code by softmage114486, expanded by TooTechie
var textview;
var ctx;
var simpleGUI;
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0]=="tp"){
setPosition(getPlayerEnt(), cmd[1], cmd[2], cmd[3]);
}
if(cmd[0]=="on"){
newLevel();
}
}
function getXYZ() {
if(ctx!=null) {
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
if(textview != null) {
textview.setText("X: " + Math.round(Player.getX()) + " , Y: " + Math.round(Player.getY()) + " , Z: " + Math.round(Player.getZ()));
}
}catch(err){
//print("Error: "+err); //will cause spam of dialogue boxes because of modTick
}
}}));
}
}
function newLevel(){
ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
simpleGUI = new android.widget.PopupWindow();
var layout = new android.widget.RelativeLayout(ctx);
textview = new android.widget.TextView(ctx);
textview.setTextColor(android.graphics.Color.WHITE);
getXYZ();
layout.addView(textview);
simpleGUI.setContentView(layout);
simpleGUI.setWidth(600);
simpleGUI.setHeight(60);
simpleGUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.CENTER_HORIZONTAL | android.view.Gravity.TOP, 30, 0);
}catch(err){
print("Error: "+err);
}
} }));
}
I noticed that the couple of warp mods available don't have a command line option to teleport. Supergamer has a UI option that allows you to teleport to coordinates, but it doesn't support negative integers so I wrote a quick and simple mod to allow you to do that.
Here is the simple teleport mod:
http://s000.tinyupload.com/?file_id=64744755733762171697
usages: /tp x y z like /tp 1841 16 -172
If you'd like to also be able to see your coordinates on the screen to make it easier to find those you're playing with I used code by softmage114486 to make XYZ2 which incorporates my simple teleport mod into an old XYZ mod that shows you your coordinates on the screen and adds the /TP command.
Note: If the coordinates don't show up on a multiplayer session type /on and it will load XYZ2. Also use one or the other, not both mods. For those who are new, you need BlockLauncher to use these mods.
http://s000.tinyupload.com/?file_id=53456468516730534870
Here is a screenshot of how XYZ2 looks. Note the coordinates at the top of the screen:
I can't download the Mod correctly... Did you tested if the download works?
Yes, I just downloaded both after reading your post. Try using Firefox to download it or click the link in the post which brings you to the hosting site it's on, then right click on the filename and select "save as" or "save link as"
7 people have downloaded the first link successfully so far and 2 have grabbed the xyz2 one.
If you're stilll having trouble downloading from that site, here is the code if you want to paste them into .js files:
//tp.js
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0]=="tp"){
setPosition(getPlayerEnt(), cmd[1], cmd[2], cmd[3]);
}
}
// XYZ2 based on code by softmage114486, expanded by TooTechie
var textview;
var ctx;
var simpleGUI;
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0]=="tp"){
setPosition(getPlayerEnt(), cmd[1], cmd[2], cmd[3]);
}
if(cmd[0]=="on"){
newLevel();
}
}
function getXYZ() {
if(ctx!=null) {
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
if(textview != null) {
textview.setText("X: " + Math.round(Player.getX()) + " , Y: " + Math.round(Player.getY()) + " , Z: " + Math.round(Player.getZ()));
}
}catch(err){
//print("Error: "+err); //will cause spam of dialogue boxes because of modTick
}
}}));
}
}
function newLevel(){
ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
simpleGUI = new android.widget.PopupWindow();
var layout = new android.widget.RelativeLayout(ctx);
textview = new android.widget.TextView(ctx);
textview.setTextColor(android.graphics.Color.WHITE);
getXYZ();
layout.addView(textview);
simpleGUI.setContentView(layout);
simpleGUI.setWidth(600);
simpleGUI.setHeight(60);
simpleGUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.CENTER_HORIZONTAL | android.view.Gravity.TOP, 30, 0);
}catch(err){
print("Error: "+err);
}
} }));
}
function modTick() {
getXYZ();
}
function leaveGame(){
if(ctx!=null) {
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
if(simpleGUI != null) {
simpleGUI.dismiss();
simpleGUI = null;
}
}catch(err){
print("Error: "+err);
}
}}));
}
}
Okay, thanks, I like to see my coords