Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Would you really want to use setTile repeatedly? And the structures in this mod were taken from a world I made. I used the StructureJS tool to copy it from the world.
function mainMenu(){
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
try{
var menuLayout = new android.widget.LinearLayout(ctx);
menuLayout.setOrientation(1);
var button = new android.widget.Button(ctx);
var edittext = new android.widget.EditText(ctx);
var applybtn = new android.widget.Button(ctx);
var title = new android.widget.TextView(ctx);
title.setText(" Time Warper\n");
title.setTextSize(24);
function mainMenu(){
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
try{
var menuLayout = new android.widget.LinearLayout(ctx);
menuLayout.setOrientation(1);
var button = new android.widget.Button(ctx);
var edittext = new android.widget.EditText(ctx);
var applybtn = new android.widget.Button(ctx);
var title = new android.widget.TextView(ctx);
title.setText(" Time Warper\n");
title.setTextSize(24);
Go back to your thread where you asked this question. I posted an answer.
Rollback Post to RevisionRollBack
I'M BACK!
Want GUI Templates? Done! https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
The first mod like this? I don't know....
This mod shows off the power of StructureJS!
Current buildings:
*2 Houses
*1 Well
*3 Types of trees
*Underground lava pools
*Tall grass patches
*Bushes
The structures will randomly generate around your world on the surface!
They won't generate below the ground!
How too Install:
In the zip archive there will be the following contents:
*The script
*The structure files (.xtr)
*README file (Has the instructions)
Place the structure files into the root of you sdcard and enable the script in blocklauncher!
Enjoy!
Download:
https://db.tt/lQ3QutoF
Thanks!
Submit some buildings below!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
No folders.
Would you really want to use setTile repeatedly? And the structures in this mod were taken from a world I made. I used the StructureJS tool to copy it from the world.
Make sure you open it with your vrowser and not es downloader.
*New types of trees
*Underground lava pools
*1 Volcano
*Sky islands
I don't care about any of that apart from the volcano...
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Volcano isn't added yet...
Use StructureJS!:D
Could you please tell me my mistake?
Im still kinda n00by with GUI
/*
TimeLord Mod
by Darth377
for use with the
Darth377 modPack
*/
var simpleGUI
var menu;
ModPE.setItem(460,"nether_star",0,"Time Warper");
function newLevel() {
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try{
simpleGUI = new android.widget.PopupWindow();
var mlayout = new android.widget.RelativeLayout(ctx);
var mbutton = new android.widget.Button(ctx);
mbutton.setText("Warp Time");
//button.setWidth(75);
//button.setHeight(75);
mbutton.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg) {
mainMenu();
simpleGUI.dismiss();
}
}));
mlayout.addView(mbutton);
simpleGUI.setContentView(mlayout);
simpleGUI.setWidth(75);
simpleGUI.setHeight(75);
simpleGUI.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT));
simpleGUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.TOP, 20, 90);
}catch(err){
print("Error: "+err);
}
} }));
}
function mainMenu(){
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
try{
var menuLayout = new android.widget.LinearLayout(ctx);
menuLayout.setOrientation(1);
var button = new android.widget.Button(ctx);
var edittext = new android.widget.EditText(ctx);
var applybtn = new android.widget.Button(ctx);
var title = new android.widget.TextView(ctx);
title.setText(" Time Warper\n");
title.setTextSize(24);
applybtn.setText("Apply");
edittext.setHint("GameSpeed, default is 20");
applybtn.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg){
ModPE.setGameSpeed(parseInt(edittext.getText()));
}
}));
button.setText("Exit");
button.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg){
menu.dismiss();
newLevel();
}
}));
menuLayout.addView(title);
menuLayout.addView(edittext);
menuLayout.addView(applybtn);
menuLayout.addView(button);
//Add more buttons in this section
menu = new android.widget.PopupWindow(menuLayout, ctx.getWindowManager().getDefaultDisplay().getWidth()/2, ctx.getWindowManager().getDefaultDisplay().getHeight());
menu.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK));
menu.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.TOP, 0, 0);
}catch(error){
print("An error occured: " + error);
}
}}));
}
function leaveGame(){
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
if(simpleGUI != null){
simpleGUI.dismiss();
}
if(menu != null) {
menu.dismiss();
}
}}));
}
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
Caiden "Eihthype" Crawfish
Go back to your thread where you asked this question. I posted an answer.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
DO I NEED ROOT?