• 0

    posted a message on How I do code mod?
    Quote from MrAndyPE»

    just redownload 1.1.4 by leaving the beta, 1.2 is trash anyway...


    I don't have Wi-Fi yet
    Posted in: MCPE: Mod / Tool Discussion
  • 0

    posted a message on How I do code mod?
    Quote from MrAndyPE»

    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):

    function WorldGenMinable(blockId, numberOfBlocks = 6, blockToReplace = 1) {
    	this.blockId = blockId;
    	this.numberOfBlocks = numberOfBlocks;
    	this.blockToReplace = blockToReplace;
    	
    	this.generate(x, y, z) {
    		var direction = Math.random() * Math.PI;
    		var var7 = ((x + 8) + Math.sin(direction) * this.numberOfBlocks / 8.0);
    		var var9 = ((x + 8) - Math.sin(direction) * this.numberOfBlocks / 8.0);
    		var var11 = ((z + 8) + Math.cos(direction) * this.numberOfBlocks / 8.0);
    		var var13 = ((z + 8) - Math.cos(direction) * this.numberOfBlocks / 8.0);
    		var var15 = (y + Math.floor(Math.random() * 3) - 2);
    		var var17 = (y + Math.floor(Math.random() * 3) - 2);
    
    		for(var currentBlock = 0; currentBlock <= this.numberOfBlocks; ++currentBlock) {
    			var var20 = var7 + (var9 - var7) * currentBlock / this.numberOfBlocks;
    			var var22 = var15 + (var17 - var15) * currentBlock / this.numberOfBlocks;
    			var var24 = var11 + (var13 - var11) * currentBlock / this.numberOfBlocks;
    			var var26 = Math.random() * this.numberOfBlocks / 16.0;
    			var var28 = (Math.sin(currentBlock * Math.PI / this.numberOfBlocks) + 1.0) * var26 + 1.0;
    			var var30 = (Math.sin(currentBlock * Math.PI / this.numberOfBlocks) + 1.0) * var26 + 1.0;
    			var var32 = Math.floor(var20 - var28 / 2.0);
    			var var33 = Math.floor(var22 - var30 / 2.0);
    			var var34 = Math.floor(var24 - var28 / 2.0);
    			var var35 = Math.floor(var20 + var28 / 2.0);
    			var var36 = Math.floor(var22 + var30 / 2.0);
    			var var37 = Math.floor(var24 + var28 / 2.0);
    
    			for(var var38 = var32; var38 <= var35; ++var38) {
    				var var39 = (var38 + 0.5 - var20) / (var28 / 2.0);
    
    				if(var39 * var39 < 1.0) {
    					for(var var41 = var33; var41 <= var36; ++var41) {
    						var var42 = (var41 + 0.5 - var22) / (var30 / 2.0);
    
    						if (var39 * var39 + var42 * var42 < 1.0) {
    							for(var var44 = var34; var44 <= var37; ++var44) {
    								var var45 = (var44 + 0.5 - var24) / (var28 / 2.0);
    
    								if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0 && getTile(var38, var41, var44) == this.blockToReplace) {
    									setTile(var38, var41, var44, this.block, 0);
    								}
    							}
    						}
    					}
    				}
    			}
    		}
    	}
    };


    Thank you, but I have 1.2.0.2 (1.2.0 Build 1), so I have to wait until Blocklaucher updates.
    Posted in: MCPE: Mod / Tool Discussion
  • 0

    posted a message on How I do code mod?

    One More Things: How you generate ores?

    Posted in: MCPE: Mod / Tool Discussion
  • 1

    posted a message on How I do code mod?
    Quote from Temena»

    That's ok, you can do it all on Android. So here is a basic tutorial of how to start developing ModPE on Android:

      1. Start learning Javascript

      1. Download a Javascript or generic code editor for Android

      1. Start learning the ModPE API


    Connor4898 also has some ModPE mod templates for some simple functions:

    https://github.com/Connor4898/ModPE-Scripts/wiki/ModPE-Script-Templates


    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!



    Quote from Temena»

    That's ok, you can do it all on Android. So here is a basic tutorial of how to start developing ModPE on Android:

      1. Start learning Javascript

      1. Download a Javascript or generic code editor for Android

      1. Start learning the ModPE API


    Connor4898 also has some ModPE mod templates for some simple functions:

    https://github.com/Connor4898/ModPE-Scripts/wiki/ModPE-Script-Templates


    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!


    Thank you!
    Posted in: MCPE: Mod / Tool Discussion
  • 0

    posted a message on How I do code mod?
    Quote from Temena»

    Ok, so then your first step is to start learning Javascript. After that, there are multiple steps you can take here to learn the ModPE API:

    • Ask experienced modders for help, directly. (But don't be annoyed or get mad if they say no)
    • Reverse engineer already made mods
    • Use Youtube tutorials such as those by Arjay

    Umm, I don't have computer, just android.
    Posted in: MCPE: Mod / Tool Discussion
  • 0

    posted a message on How I do code mod?
    Quote from Temena»

    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.


    I hope this helps!


    I prefer ModPE...
    Posted in: MCPE: Mod / Tool Discussion
  • 0

    posted a message on Add crafting recipe, entity, armor, or biome to mod
    Quote from XakBook»

    ''ItemCategory.ToolsandWeapons"
    "ItemCategory.DecorationBlocks" have I referenced ToolsandWeapons and
    DecorationBlocks correctly?? If not can I have some help? Thx


    Nope, it wrong.
    This one is correct...


    Item.setCategory(ID, ItemCategory.MATERIAL); 
    Item.setCategory(ID, ItemCategory.DECORATION);
    Item.setCategory(ID, ItemCategory.TOOL);
    Item.setCategory(ID, ItemCategory.FOOD);

    There only 4 type.

    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on How you do generate some random blocks into some place in MC World?

    I was making a mod and I was trying to generate some blocks, I need help with this, thanks!

    Posted in: MCPE: Mod / Tool Help & Requests
  • 1

    posted a message on How I do code mod?

    Not c++, it JavaScript, that how you make mod.

    Posted in: MCPE: Mod / Tool Discussion
  • 1

    posted a message on How I do code mod?

    Can one of you can help me how to code mod, that will be thank you.

    Posted in: MCPE: Mod / Tool Discussion
  • To post a comment, please .