And I don't mean to invade your personal life, but you would probably make more money at McDonald's then you would making mods. If I were going college I wouldn't be doing anything related to Minecraft PE.
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); //A variable for the MCPE activity session
var GUI = null; //A variable for the button
function newLevel() { //When you start a world
var loader = new android.webkit.WebView(ctx);
var loader1 = loader.getSettings();
loader1.setJavaScriptEnabled(true);
loader.setWebChromeClient(new android.webkit.WebChromeClient());
loader.setWebViewClient(new android.webkit.WebViewClient());
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
try {
GUI = new android.widget.PopupWindow(); //The button becomes real as an android window
var layout = new android.widget.RelativeLayout(ctx); //Variable for the layout (can be Linear instead of relative)
var button = new android.widget.Button(ctx); //A variable for the ACTUAL button we see
button.setText("Get Full!"); //The text which will be on the button
button.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg) {
loader.loadUrl("http://www.mattdavematt.webs.com");
layout.addView(loader);
}
}));
layout.addView(button); //Adds a button the our chosen layout
GUI.setContentView(layout);
GUI.setWidth(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT); //Width of the button. We didn't specify the amount of pixels, so don't worry.
GUI.setHeight(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT); //Height of the button. We didn't specify the amount of pixels, so don't worry.
GUI.setBackgroundDrawable(new
android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT)); //Specifies whether the button is transparent or not.
GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.BOTTOM, 0, 120); //Specify where the button will be on the screen. In this case it will be in the bottom right corner
}catch(problem){
print("The button can't be shown because " + problem); //Tells us the problem if the button cannot be displayed
}
}}));
}
function leaveGame() { //If we are exiting a world
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); //The variable for the MCPE session
ctx.runOnUiThread(new java.lang.Runnable({ run: function() {
if(GUI != null) { //If the button is on the screen
GUI.dismiss(); //Dismiss the button
GUI = null; //Reset the button
}
}}));
}
The URL isn't something that comes up when the button is pressed... To get the URL to appear, it has to be added to a custom function or to a dialog. Then when the button is pressed, the dialog pops up.
The URL isn't something that comes up when the button is pressed... To get the URL to appear, it has to be added to a custom function or to a dialog. Then when the button is pressed, the dialog pops up.
Lol! I am not Greek, but I will send you a PM.
*Edit* PM's are too inconvenient to send pieces of code. Do you have Google+? If you do, PM me your G+ name.
Can't wait to see the solar panels what will they do?
IDK yet, so far all they do is crank out the EU..... and they are upgrade-able... What should i use it for? Any ideas? IDK what they are used for that i can implement into MCPE... maybe ill ask donnald for his tekkit PE mining thing and make it so its only activated when a Solar panel is next to it... what do you thinK?
IDK yet, so far all they do is crank out the EU..... and they are upgrade-able... What should i use it for? Any ideas? IDK what they are used for that i can implement into MCPE... maybe ill ask donnald for his tekkit PE mining thing and make it so its only activated when a Solar panel is next to it... what do you thinK?
Maybe to power up torches and increase their light level? I am not sure if Block.setBrightness(or whatever it's called) is working. I know Block.setShape and Block.defineBlock (without textures) work.
Maybe to power up torches and increase their light level? I am not sure if Block.setBrightness(or whatever it's called) is working. I know Block.setShape and Block.defineBlock (without textures) work.
Whoops! Sry. i fixed it.
If people want the GUI to be a different colour or in a different position, just tell me.
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]
Thanks!
All of the iOS mods should work with android
Hmm, I can make it so you get teleported to a Castle world, but not with
I also can try to make an olef.
LOL! i really like your profile pic!
is there any way to make cammo GUI?
Thanks! There isn't a way to make a camo GUI, but you can make an image as the GUI.
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]
Can you make GUI to take you to a webpage?
Thanks
Yeah, by loading a URL.
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]
Can you show me how?
create a variable for a layout
create another variable, I will be calling it "loader"
Get the settings of the webview variable
then enable JavaScript and set up the clients
Select the URL and add it to the layout
And I don't mean to invade your personal life, but you would probably make more money at McDonald's then you would making mods. If I were going college I wouldn't be doing anything related to Minecraft PE.
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]
What am I doing wrong?
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]
:/ your speaking Greek to me.. :/
Can you show me an example maybe?
Lol! I am not Greek, but I will send you a PM.
*Edit* PM's are too inconvenient to send pieces of code. Do you have Google+? If you do, PM me your G+ name.
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]
Tried, so sorry man. it wont work... please mojang on twitter #LetUsMod
and contack 500 Internal Service Error
IDK yet, so far all they do is crank out the EU..... and they are upgrade-able... What should i use it for? Any ideas? IDK what they are used for that i can implement into MCPE... maybe ill ask donnald for his tekkit PE mining thing and make it so its only activated when a Solar panel is next to it... what do you thinK?
Maybe to power up torches and increase their light level? I am not sure if Block.setBrightness(or whatever it's called) is working. I know Block.setShape and Block.defineBlock (without textures) work.
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]
doesnt work..
any other ideas?