Hey everybody! This is my first release, and it isn't really useful. It's basically small facts about me. Here it is:
Just Copy & Paste it.
--------------------------------------------------------------------------------------------------------------
var buttonWindow = null;
function newLevel() {
var activity = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
activity.runOnUiThread(new java.lang.Runnable({ run: function() {
try {
buttonWindow = new android.widget.PopupWindow();
var layout = new android.widget.RelativeLayout(activity);
var button = new android.widget.Button(activity);
button.setText("First Mod Release");
button.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg) {
clientMessage("<???>This is TheAbandonedOne and this is my first ModPe Script so yeah... I'm only 12 so what should I know? I currently know a little of JS and I'm learning binary. So please give me some tips if you want to in the forum.");
}
}));
layout.addView(button);
buttonWindow.setContentView(layout);
buttonWindow.setWidth(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);
buttonWindow.setHeight(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);
buttonWindow.setBackgroundDrawable(new
android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT));
buttonWindow.showAtLocation(activity.getWindow().getDecorView(), android.view.Gravity.LEFT | android.view.Gravity.TOP, 0, 0);
}catch(problem){
print("Button could not be displayed: " + problem);
}
}}));
}
------------------------------
From,
TheAbandonedOne
Binary? Are you serious? If you barely know JS don't learn binary. Learn another coding language like Java. Then once you are really good at other coding languages, then you can learn binary. I recommend not to learn it this early. Also, nice GUI script. My first mod wasn't GUI and i still am not good with GUI.
Also, the color is set to transparent so i don't think you will be able to see it. Lol.
Should still be able to see the set text (which is "First Mod Release").
Mm, depending on what he wants to do (which is modding i think) he should just stick with javascript, and only javascript (no need to learn binary, though it doesnt hurt knowing).
Javascript is a pretty good language anyway, he can use it for modding, getting into game programming as well as website scripting.
It depends what he wants to do. I want to be an app developer so i learn Java and in the future C++. So it just depends on what he want to do. JavaScript is one of the best to learn first since it's easy and you can do alot with it.
Ignore the part where i said the location is undefined. But it is still transparent.
Really? The GUI buttton doesn't show? It worked on my tablet. And phone. I want to be like a webpage maker. (Not even sure if that's possible so......):P I should've put that I learned HTML first...and i forgot. I made this at like 4:00 A.M. and I felt tired so that's probably the reason i didn't know what I was doing. What i'm thinking as school passes by is to try computer science. So I learn what i need to learn.
Should still be able to see the set text (which is "First Mod Release").
Mm, depending on what he wants to do (which is modding i think) he should just stick with javascript, and only javascript (no need to learn binary, though it doesnt hurt knowing).
Javascript is a pretty good language anyway, he can use it for modding, getting into game programming as well as website scripting.
Can you guys give me some tips about MCPE Java, so that I can make mods because this will probably will be my only modscript, unless I learn more. So please help. If you ask where I'm learning Java, I go to codeacademy.com. Oh yeah, and Noahz what should i set it into instead of transparent if you can't see it?
Can you guys give me some tips about MCPE Java, so that I can make mods because this will probably will be my only modscript, unless I learn more. So please help. If you ask where I'm learning Java, I go to codeacademy.com. Oh yeah, and Noahz what should i set it into instead of transparent if you can't see it?
You can see the button and the text if you set the Color to TRANSPARENT... Transparent just means that you can see the regular minecraft PE bit that is behind the new GUI. Also this isn't really your mod... Sorry to burst your bubble, but this looks very similar to Byteandahalf's template with a few tweaks... At least change the variables or make the button do something apart from showing a ClientMessage. Apart from that, good job. Also, if you don't know Java and only know JavaScripts, you should probably stick to the regular ModPE functions.
You can see the button and the text if you set the Color to TRANSPARENT... Transparent just means that you can see the regular minecraft PE bit that is behind the new GUI. Also this isn't really your mod... Sorry to burst your bubble, but this looks very similar to Byteandahalf's template with a few tweaks... At least change the variables or make the button do something apart from showing a ClientMessage. Apart from that, good job. Also, if you don't know Java and only know JavaScripts, you should probably stick to the regular ModPE functions.
Since you want to do website scripting (now or in the future), you should just learn html and javascript for now.
You can make web apps, etc (as long as you know a bit of java, or you could use something like appgeyser instead of learning java).
If you ever want help or advice you can just PM me!
Since you want to do website scripting (now or in the future), you should just learn html and javascript for now.
You can make web apps, etc (as long as you know a bit of java, or you could use something like appgeyser instead of learning java).
If you ever want help or advice you can just PM me!
Just Copy & Paste it.
--------------------------------------------------------------------------------------------------------------
var buttonWindow = null;
function newLevel() {
var activity = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
activity.runOnUiThread(new java.lang.Runnable({ run: function() {
try {
buttonWindow = new android.widget.PopupWindow();
var layout = new android.widget.RelativeLayout(activity);
var button = new android.widget.Button(activity);
button.setText("First Mod Release");
button.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(viewarg) {
clientMessage("<???>This is TheAbandonedOne and this is my first ModPe Script so yeah... I'm only 12 so what should I know? I currently know a little of JS and I'm learning binary. So please give me some tips if you want to in the forum.");
}
}));
layout.addView(button);
buttonWindow.setContentView(layout);
buttonWindow.setWidth(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);
buttonWindow.setHeight(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);
buttonWindow.setBackgroundDrawable(new
android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT));
buttonWindow.showAtLocation(activity.getWindow().getDecorView(), android.view.Gravity.LEFT | android.view.Gravity.TOP, 0, 0);
}catch(problem){
print("Button could not be displayed: " + problem);
}
}}));
}
------------------------------
From,
TheAbandonedOne
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMm, depending on what he wants to do (which is modding i think) he should just stick with javascript, and only javascript (no need to learn binary, though it doesnt hurt knowing).
Javascript is a pretty good language anyway, he can use it for modding, getting into game programming as well as website scripting.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Really? The GUI buttton doesn't show? It worked on my tablet. And phone. I want to be like a webpage maker. (Not even sure if that's possible so......):P I should've put that I learned HTML first...and i forgot. I made this at like 4:00 A.M. and I felt tired so that's probably the reason i didn't know what I was doing. What i'm thinking as school passes by is to try computer science. So I learn what i need to learn.
You're right! I want to do website scripting!
You can see the button and the text if you set the Color to TRANSPARENT... Transparent just means that you can see the regular minecraft PE bit that is behind the new GUI. Also this isn't really your mod... Sorry to burst your bubble, but this looks very similar to Byteandahalf's template with a few tweaks... At least change the variables or make the button do something apart from showing a ClientMessage. Apart from that, good job. Also, if you don't know Java and only know JavaScripts, you should probably stick to the regular ModPE functions.
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]
Oh ok then. Sorry, I didn't know. BTW, thanks.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou can make web apps, etc (as long as you know a bit of java, or you could use something like appgeyser instead of learning java).
If you ever want help or advice you can just PM me!
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Thanks!
Are you trying to say that I copied somebody's modscript or that my mod is a copy and paste thing?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015