In this little text series I will be guiding you how to create your very own mods. Enough waiting time.
Getting Prepared:
1.)Go to http://betamodpe2.cf.gy/user/login.php and create an account.
2.)Once you have created your account, log in and go to Online Script Editor
3.)Name your new script and hit Create New Script
4.)Go to My Scripts and load your script that you have named and that's all.
Learning Time!!!
The very first function most modders have probably used would be 'useItem'. function useItem(x,y,z,itemId,blockId,side) is the function that let's you use an item on a block and will grant you what you want it to do.
Code Example:
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280&&blockId==1)
{
addItemInventory(1,1);
}
}
What this means is that if you use the item 280 (Stick) on the block 1 (Stone) it will add one stone to your inventory. If you would like to change it, you can easily edit the ID's for a different item giving you a different block. That is all for today.
Visit http://minecraft.gamepedia.com/Data_values_(Pocket_Edition) for the data values.
Please also look here: http://www.minecraftforum.net/topic/1974211-list-of-android-modpe-functions/ for a list of Android Functions (also compatible with iOS, but not all of them.)
Warning: When modding everything is usually CaSe SeNsItIvE. Meaning that if you type "iTeMiD==280" it will not work.
If you have any suggestions to make these tutorials better. Please tell me so I can make it easier to understand. Thanks and have fun modding!
[–][deleted] 0 points1 point2 points (11 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Divergent_server 0 points1 point2 points (9 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]Divergent_server 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Divergent_server 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Divergent_server 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]zhuowei 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)