-
-
Save zhuowei/5733a398ab8b583affea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mod made by epicsteve do not use my code without asking my on Twitter @epicsteve33 | |
//Item.defineArmor(int id, String iconName, int iconIndex, String name, | |
// String texture, int damageReduceAmount, int maxDamage, int armorType) | |
Item.defineArmor(411, "helmet", 4, "diamond op", | |
"armor/op_1.png", 10, 600, ArmorType.helmet); | |
Item.defineArmor(412, "chestplate", 4, "diamond op", | |
"armor/op_1.png", 15, 700, ArmorType.chestplate); | |
// | |
Item.defineArmor(413, "helmet", 2, "iron op", | |
"armor/op_2.png", 8, 400, ArmorType.helmet); | |
Item.defineArmor(414, "chestplate", 2, "iron op", | |
"armor/op_2.png", 10, 100, ArmorType.chestplate); | |
// | |
Item.defineArmor(415, "helmet", 3, "willy armor", | |
"armor/op_3.png", 8, 50, ArmorType.helmet); | |
Item.defineArmor(416, "chestplate", 3, "willy armor", | |
"armor/op_3.png", 10, 100, ArmorType.chestplate); | |
function procCmd(cmd) { | |
if (cmd == "all") { | |
clientMessage('<-----follow me on twitter for updates @epicsteve33>'); | |
clientMessage('<all armor is now in inventory thanks for using my mod>'); | |
addItemInventory(411, 1); | |
addItemInventory(412, 1); | |
addItemInventory(413, 1); | |
addItemInventory(414, 1); | |
addItemInventory(415, 1); | |
addItemInventory(416, 1); | |
} | |
} | |
ModPE.setItem(417, "apple_golden", 0, "jeweled apple"); | |
ModPE.setFoodItem(417,"apple_golden",0,16,"jeweled Apple"); | |
Item.addShapedRecipe(417,1,1,[ | |
"ccc", | |
"cdc", | |
"ccc"],["c",264,0,"d",260,0]); | |
ModPE.setItem(418,'blaze_rod',0,'op stuff'); | |
Item.addShapedRecipe(418,1,1,[ | |
"ccc", | |
"cdc", | |
"ccc"],["c",264,0,"d",264,0]); | |
// | |
function useItem(x,y,z,item,block,side){ | |
if(item == 418){ | |
Player.addItemInventory(411, 1, 0); | |
Player.addItemInventory(412, 1, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment