For anyone interested, here is my reverse engineered ModPE generator code (note this is only the code to generate an ore patch at a given x y z coordinate, not the code to actually place each of the patches in the world):
Another big way to learn ModPE is to look at code that people have already written and experiment. Also, you need to learn how to debug, this is a whole other subject that will have to be covered separately... Hope this helps!
Another big way to learn ModPE is to look at code that people have already written and experiment. Also, you need to learn how to debug, this is a whole other subject that will have to be covered separately... Hope this helps!
Well, technically, mods are C++. The Javascript is simply a bridge between us and the game to make modding easier.
But before I explain it, please note:
This post is in the wrong section. Seeing as you are a new member, it is excusable, but ignorance of the rules is not a free pass. I have asked for the post to be moved to the correct section, which is MCPE: Mod / Tool Help & Requests, but please make sure going forward that you post in the correct sections. Since you are new, I suggest you read over the Rules, it's about 3 minutes worth of reading and will benefit you on this forum. I look forward to seeing you around!
The Javascript type of modding is called ModPE, and was introduced mostly thanks to Treebl and Zhuowei back a few years ago. It was made because low level/assembly modding was very difficult for the types of users that Minecraft usually generated, (eg. a lot of young ones).
Modding in C++ is called Native Modding or Addons (no, not the lame system Microsoft brought into MC:PE), and requires you to know C or C++, and have some minor assembly knowledge, or at least that's how it was not too long ago.
The difference between the two types of modding can be explained in a somewhat simplistic (and mostly accurate) way:
ModPE:
System/Game
Modding Backbone written in C++, Java, and or C. Java bridge to access Backbone Blocklauncher/other utility for modding Javascript
Native Mods:
System/Game
Modding Backbone Written in C++, Java, and or C. Blocklauncher/other utility for modding C++ addon
And it may not look a whole lot different, but the Java bridge adds limitations because instead of using C++ to access the backbone by hand, you're going through a library that has to implement functions by hand. Each ModPE function was implemented by Zhuowei to access the C++ backbone that modifies game files.
Anybody feel free to correct me on errors, but I feel this makes sense.
As for learning to make mods, you will need to decide which route you would like to take.
You can learn Javascript and make ModPE mods which is easier, but also much more limiting.
You can learn C++, Java, and/or C, and start developing Native Mods which is harder, but much more functional and rewarding.
A quick Google search will find you many resources, free and paid, for learning Javascript, Java, C, and C++. One example is CodeCademy.com.
''ItemCategory.ToolsandWeapons"
"ItemCategory.DecorationBlocks" have I referenced ToolsandWeapons and
DecorationBlocks correctly?? If not can I have some help? Thx
0
I don't have Wi-Fi yet
0
Thank you, but I have 1.2.0.2 (1.2.0 Build 1), so I have to wait until Blocklaucher updates.
0
One More Things: How you generate ores?
1
Thank you!
0
Umm, I don't have computer, just android.
0
I prefer ModPE...
0
Nope, it wrong.
This one is correct...
There only 4 type.
0
I was making a mod and I was trying to generate some blocks, I need help with this, thanks!
1
Not c++, it JavaScript, that how you make mod.
1
Can one of you can help me how to code mod, that will be thank you.