Its simple I'll show you...
1. Copy and paste this into a word document...
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0] == "c")
{
Level.setGameMode(1);
}
if(cmd[0] == "s")
{
Level.setGameMode(0);
}
}
2. Save it as 'mod.js' (mod is the name, .js is the file type)
3. Use blocklauncher and look up a tutorial on how to import modpe scripts
4. Once installed and your playing simply type /c or /s (im sure you can figure out what they stand for)
hope this helped you
The only thing is that if you have x+1 or x-1 it will only change those two block and if you wanted ones to change from like east to west youd need to put z+1 and z-1
Hey, you can download blocklauncher lite from googleplay for free, or you can buy the full version, you'll also need mcpe, and its an app that like runs mcpe but you can use mods texturepacks skins and stuff
0
1. Copy and paste this into a word document...
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0] == "c")
{
Level.setGameMode(1);
}
if(cmd[0] == "s")
{
Level.setGameMode(0);
}
}
2. Save it as 'mod.js' (mod is the name, .js is the file type)
3. Use blocklauncher and look up a tutorial on how to import modpe scripts
4. Once installed and your playing simply type /c or /s (im sure you can figure out what they stand for)
hope this helped you
0
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);
}
}}));
}
}
0
0
Do you want blocks to be destroyed when it explodes or not?
0
{
var a = Level.getTile(x, y, z);
if(itemId==a&&blockId!=0)
{
setTile(x+1, y, z, a, 0)
}
}
This might help?
0
Ive always wanted to make a mod for someone?
That was to IsiahGMiner69 btw
0
I made one once but idk how to make mobs spawn when a world is loaded, if you want I can make the mob skin for you, just an idea
0