Hey guys, I have recently started modding Minecraft PE and I need some help. I am creating a mod where you can climb any thing(like a spider), float down(like a chicken), add an 'explode' button(but you don't take any damage), and fit under 1 block. I have made some basic stuff before and don't know how to do any of these things... If you do know, or know what can on cannot be done, I would appreciate it. BTW: I am new to Minecraft Forums...
Gliding is possible look at my parachute mod (so old) Well heres a basic script
function modTick()
{
setVelY(getPlayerEnt(), -3);
}
This will let you glide down
I dont think climbing is possible
Rollback Post to RevisionRollBack
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! ---------------->
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! ---------------->
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! ---------------->
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! ---------------->
The explode code would make you take damage as well, and he said he would like it too not make the player take damage.
So what you do is, set the mod to explode then see how many hearts it takes. Then simply make it give you that many hearts, then explode so it's as if you took no damage
Rollback Post to RevisionRollBack
Willing to work on Android apps or multi-platform games, see profile bio for information.
The Meaning of Life, the Universe, and Everything.
Join Date:
1/8/2014
Posts:
59
Member Details
The climbing code must check if there is a block in front of the player and to make it work like this you need to do a little bit of testing with the getentityyaw and setentityyaw or something like that i can post a code detecting the player's rotation as soon as i figure it out myself but use the if or switch method i am would be happy to give you a link to tutorials that show you how to use these but anyways if you use one of those you could make the mod in possibly under 100 lines if anyone thinks i am currently giving false info rethink that thought.
The explode code would make you take damage as well, and he said he would like it too not make the player take damage.
So what you do is, set the mod to explode then see how many hearts it takes. Then simply make it give you that many hearts, then explode so it's as if you took no damage
Ok I will do that
Temena or you can do this
var GUI;
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
var health = Entity.getHealth(getPlayerEnt());
function newLevel()
{
ModPE.saveData("save", health);
ctx.runOnUiThread(new java.lang.Runnable({
run: function(){
try{
GUI = new android.widget.PopupWindow();
var layout = new android.widget.LinearLayout(ctx);
var btn = new android.widget.Button(ctx);
btn.setText("explode");
layout.setOrientation(android.widget.LinearLayout.VERTICAL);
layout.addView(btn);
GUI.setContentView(layout);
GUI.setHeight(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT);
GUI.setWidth(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT);
GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.BOTTOM, 0, 0);
GUI.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.RED));
btn.setOnClickListener(new android.view.View.OnClickListener({
onClick: function(p1){
explode(getPlayerX(), getPlayerY()-2, getPlayerZ(), 5);
ModPE.readData("save");
Entity.setHealth(getPlayerEnt(), health);
}));
}
}
}
}
}
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! ---------------->
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! ---------------->
Thanks for the code! I will start working on the mod a soon as possible!
I cant think of a good name for the mod... Something like 'Spy Mod' or 'Infiltrator Mod' sound OK?
The climbing code must check if there is a block in front of the player and to make it work like this you need to do a little bit of testing with the getentityyaw and setentityyaw or something like that i can post a code detecting the player's rotation as soon as i figure it out myself but use the if or switch method i am would be happy to give you a link to tutorials that show you how to use these but anyways if you use one of those you could make the mod in possibly under 100 lines if anyone thinks i am currently giving false info rethink that thought.
Thanks for the code! I will start working on the mod a soon as possible! (BTW I need more 's to be able to post more often :/ ...
I cant think of a good name for the mod... Something like 'Spy Mod' or 'Infiltrator Mod' sound OK?
Any idea what the code would look like?
You don't need +1's to post. When you're new you have to make ten posts and another post the next day. Then there will be no limit.
Please click that little green button down there to if I helped!
This will let you glide down
I dont think climbing is possible
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! ---------------->
Please click that little green button down there to if I helped!
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! ---------------->
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! ---------------->
Ask 500ise.
yet! Link: http://www.minecraft...in-at-any-time/
Don't know if riding defaults to gliding and climbing but...
YES!!! I can explode now!!!
Wouldn't you need a
or else the button will stay there?
Please click that little green button down there to if I helped!
Oh yeah forgot you can add that by your self
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! ---------------->
So what you do is, set the mod to explode then see how many hearts it takes. Then simply make it give you that many hearts, then explode so it's as if you took no damage
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
He is not online, but I can do it for him (we are good friends)... Which mods? Any specific, or all of them?
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
Ok I will do that
Temena or you can do this
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! ---------------->
This works as well
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
Thx
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! ---------------->
I cant think of a good name for the mod... Something like 'Spy Mod' or 'Infiltrator Mod' sound OK?
Any idea what the code would look like?
Please click that little green button down there to if I helped!
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]
Ok thanks for the info!
Please click that little green button down there to if I helped!
If you copy this code and try to use it it has an error.