The Meaning of Life, the Universe, and Everything.
Join Date:
7/17/2014
Posts:
50
Member Details
Guys, maybe we could use block texture names and custom entity models to create like blocks that you can push around, or cool block animations like in the pc mods
For ground coordinates do you mean the surface block? If so check out Arjay's StructureJS tool stuff he is a very helpful guy
But for the sand texture stuff not at the current modding state. Maybe when custom entities are added we can have it happen.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
var textview;
var ctx;
var simpleGUI;
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.GREEN);
getXYZ();
layout.addView(textview);
simpleGUI.setContentView(layout);
simpleGUI.setWidth(400);
simpleGUI.setHeight(60);
simpleGUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.LEFT | android.view.Gravity.BOTTOM, 0, 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);
}
}}));
}
}