Created
February 1, 2015 12:25
-
-
Save LavaCreepMC/ed505d9c9640ee508fb8 to your computer and use it in GitHub Desktop.
InstaCooks Mod by LavaCreepMC
This file contains 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
/* InstaCooks Mod by LavaCreepMC@Fais Faizal(real name) */ | |
//New block | |
Block.defineBlock(219,"Cooking machine",[["mob_spawner",0],["piston_inner",0],["mob_spawner",0],["mob_spawner",0],["mob_spawner",0],["mob_spawner",0]]); | |
Item.addCraftRecipe(219,1,0,[264,3,0,265,5,0,62,1,0]); | |
Item.addShapedRecipe(219,1,0,["ddd","aba","aaa"],["a",265,0,"b",62,0,"d",264,0]); | |
//New food | |
ModPE.setFoodItem(450,"fish_raw",0,5,"Raw Fish"); | |
ModPE.setFoodItem(451,"fish_cooked",0,10,"Grilled Fish"); | |
function useItem(x, y, z, itemId, blockId, side){ | |
if(itemId==365&&blockId==219){preventDefault(); | |
addItemInventory(365,-1); | |
Level.dropItem(x,y+1,z,1,366,1,0)} | |
if(itemId==450&&blockId==219){preventDefault(); | |
addItemInventory(450,-1); | |
Level.dropItem(x,y+1,z,1,451,1,0)} | |
if(itemId==363&&blockId==219){preventDefault(); | |
addItemInventory(363,-1); | |
Level.dropItem(x,y+1,z,1,364,1,0)} | |
if(itemId==319&&blockId==219){preventDefault(); | |
addItemInventory(319,-1); | |
Level.dropItem(x,y+1,z,1,320,1,0)} | |
if(itemId==392&&blockId==219){preventDefault(); | |
addItemInventory(392,-1); | |
Level.dropItem(x,y+1,z,1,393,1,0)} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment