Hey So I Am Trying To Learn Modding Just The Basics.I Want To Learn Modding For My Personal Use Since The Mods Will Probably Bad.I Want To Know These Things.IDK If This Stuff Is Actually The Basics Of Modding So Dont Yell At Me For Being Such a Noob.JK
·Create Custom Items<---I Kinda Know This Code
·Custom Blocks And How To Make The Textures
·Custom Tools And Weapons
·Custom Armor
·Crafting Recipes
·Furnace Recipes
And Also When i Make The New Texture For an Item Do i Have To Add It To The items-opaque.pn Or Is Their Another Way?Also What Is The Best Way To Make Armor Textures?
Please Explain These Codes as Simple as Possible Because I am Noob A HUGE Noob At Modding.And If It Is Complicated I Will Derp To What Ever U Write.Thx For Reading 😃
Hey So I Am Trying To Learn Modding Just The Basics.I Want To Learn Modding For My Personal Use Since The Mods Will Probably Bad.I Want To Know These Things.IDK If This Stuff Is Actually The Basics Of Modding So Dont Yell At Me For Being Such a Noob.JK
·Create Custom Items<---I Kinda Know This Code
·Custom Blocks And How To Make The Textures
·Custom Tools And Weapons
·Custom Armor
·Crafting Recipes
·Furnace Recipes
And Also When i Make The New Texture For an Item Do i Have To Add It To The items-opaque.pn Or Is Their Another Way?Also What Is The Best Way To Make Armor Textures?
Please Explain These Codes as Simple as Possible Because I am Noob A HUGE Noob At Modding.And If It Is Complicated I Will Derp To What Ever U Write.Thx For Reading 😃
Block-
Block.defineBlock(BlockID, BlockName, [texture, textureOffset], materialSource, isOpaque, renderType);
Here's a simple pickaxe-
ModPE.setItem(3000, "stick", 0, "Basic Pickaxe", 1);
Item.setHandEquiped(3000, true);
Item.setMaxDamage(3000, 60);
function modTick(){
if(Player.getCarriedItem() == 3000){
for(var i = 0; i >= 15; i++){
Block.setDestroyTime(Block.getAllBlockIDs(), Block.getDestroyTime(Block.getAllBlockIDs(), i) / 2);
}
}
else{
for(var i = 0; i >= 15; i++){
Block.setDestroyTime(Block.getAllBlockIDs, Block.getDestroyTime(Block.getAllBlockIDs, i));
}
}
PickaxeCheck();
}
function destroyBlock(x, y, z, side){
if(Player.getCarriedItem() == 3000){
Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() - 1);
}
}
function PickaxeCheck(){
if(Player.getCarriedItem() == 3000 && Player.getCarriedItemData() > 60){
Entity.setCarriedItem(getPlayerEnt(), Player.getCarriedItem(), Player.getCarriedItemCount() - 1, 0);
}
}
Armor-
Item.defineArmor(ID, iconTexture, iconData, name, file, protection, durability, armorType);
Recipes-
Item.addCraftRecipe(outputID, outputCount, outputData, [inputID, inputCount, inputData]);
Item.addShapedRecipe(outputID, outputCount, outputData, [" "," "," "], ["variableLetter", inputID, inputData]);
Furnace Recipe-
Item.addFurnaceRecipe(inputID, outputID, outputData);
The heck is this for
This site is very useful:
https://github.com/Connor4898/ModPE-Scripts/wiki/ModPE-Scripts-Functions-List