-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMo'Food
136 lines (86 loc) · 4.59 KB
/
Mo'Food
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
If anyone share you need to put forum link or the link of my channel of Youtube <http://www.youtube.com/theendermengamer>
EnderGamer Script (C) GNC copyright
Copyright (C) <2014> <EnderGamer>
This work is licensed under the Creative Commons Attribution- NonCommercial 4.0 International License. To view a copy
of this license, visit http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to Creative Commons, 444 Castro
Street, Suite 900, Mountain View, California, 94041, USA.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/* ******* More Food Mod By TheEndermenGamer ******* */
function newLevel()
{
clientMessage(ChatColor.GREEN + "Mo'Foods Mod !");
clientMessage(ChatColor.WHITE + "Mod make by " + ChatColor.LIGHT_PURPLE + "@GamerEndermen");
}
//Item
ModPE.setItem(371,"gold_nugget",0,"Knife",1);
//Food
ModPE.setFoodItem(322,"apple_golden",0,15,"Golden Apple");
ModPE.setFoodItem(476,"spider_eye",0,10,"Hamburger Bacon",1);
ModPE.setFoodItem(478,"iron_horse_armor",0,5,"Fried Egg");
ModPE.setFoodItem(350,"record_cat",0,5,"Raw Sheep");
ModPE.setFoodItem(376,"spider_eye_fermented",0,5,"Bacon");
ModPE.setFoodItem(384,"experience_bottle",0,3,"Pop-Corn");
ModPE.setFoodItem(380,"cauldron",0,1,"Raw Bacon");
ModPE.setFoodItem(377,"blaze_powder",0,2,"Apple Slice");
ModPE.setFoodItem(396,"carrot_golden",0,7,"Golden Carrot");
ModPE.setFoodItem(385,"fireball",0,2,"French Fries");
ModPE.setFoodItem(370,"ghast_tear",0,3,"Chocolate Bowl");
ModPE.setFoodItem(479,"lead",0,7,"Cooked Sheep");
ModPE.setFoodItem(494,"skull_zombie",0,6,"Hot Chocolate Bowl");
ModPE.setFoodItem(397,"skull_skeleton",0,2,"Chocolate");
ModPE.setFoodItem(369,"blaze_rod",0,6,"Pancake");
ModPE.setFoodItem(372,"nether_wart",0,5,"Cookie Cake");
ModPE.setFoodItem(379,"brewing_stand",0,6,"Vegetable Soup",1);
ModPE.setFoodItem(399,"nether_star",0,7,"Chocolate Cake");
//Furnace
Item.addFurnaceRecipe(350,479); //Cooked Sheep
Item.addFurnaceRecipe(344,478); //Fried Egg
Item.addFurnaceRecipe(370,494); //Hot Chocolate Bowl
Item.addFurnaceRecipe(380,376); //Bacon
Item.addFurnaceRecipe(295,384); //PopCorn
//Crafts
//Golden Apple
Item.addCraftRecipe(322, 1, 0, [266, 1, 0,266, 1, 0, 266, 1, 0, 266, 1, 0,260, 1, 0, 266, 1, 0, 266, 1, 0,266,1,0,266,1,0]);
//Golden Carrot
Item.addCraftRecipe(396, 8, 0, [391, 1, 0,391, 1, 0, 391, 1, 0, 391, 1, 0,266, 1, 0, 391, 1, 0, 391, 1, 0,391,1,0,391,1,0]);
//Hamburger Bacon
Item.addCraftRecipe(476, 1, 0, [700, 1, 0,297, 1, 0, 700, 1, 0, 700, 1, 0,320, 1, 0, 700, 1, 0, 700, 1, 0,297,1,0,700,1,0]);
//Vegetable Soup
Item.addCraftRecipe(379, 1, 0, [700, 1, 0,391, 1, 0, 700, 1, 0, 700, 1, 0,392, 1, 0, 700, 1, 0, 700, 1, 0,281,1,0,700,1,0]);
//Bacon
Item.addCraftRecipe(380, 3, 0, [700, 1, 0,700, 1, 0, 700, 1, 0, 700, 1, 0,319, 1, 0, 700, 1, 0, 700, 1, 0,700,1,0,700,1,0]);
//French Fries
Item.addCraftRecipe(385, 16, 0, [700, 1, 0,393, 1, 0, 700, 1, 0, 700, 1, 0,393, 1, 0, 700, 1, 0, 700, 1, 0,393,1,0,700,1,0]);
//ChocolateCake
Item.addCraftRecipe(399, 1, 0, [325, 1, 1,325, 1, 1, 325, 1, 1, 351, 1, 3,344, 1, 0, 351, 1, 3, 296, 1, 0,296,1,0,296,1,0]);
//Chocolate
Item.addCraftRecipe(397, 1, 0, [700,1,0,700,1,0,700,1,0,351, 1, 3,351, 1, 3,351,1,3]);
//Chocolate Bowl
Item.addCraftRecipe(370, 1, 0, [700, 1, 0,700, 1,0,700,1,0,700,1,0,397,1,0,700,1,0,700,1,0,281,1,0,700,1,0]);
//Pancake
Item.addCraftRecipe(369, 1, 0, [296, 1, 0,296, 1, 0, 296, 1, 0, 325, 1, 1,344, 1, 0, 325, 1, 1, 296, 1, 0,296,1,0,296,1,0]);
//Apple Slice
Item.addCraftRecipe(377, 5, 0, [700, 1, 0,260, 1, 0, 700, 1, 0, 700, 1, 0,371, 1, 0, 700, 1, 0, 700, 1, 0]);
//Knife
Item.addCraftRecipe(371, 1, 0, [700, 1, 0,265, 1, 0, 700, 1, 0, 700, 1, 0,280, 1, 0, 700, 1, 0, 700, 1, 0]);
//Cookie Cake
Item.addCraftRecipe(372, 1, 0, [357, 1, 0,357, 1, 0, 357, 1, 0, 357, 1, 0,344, 1, 0, 357, 1, 0, 296, 1, 0,296,1,0,296,1,0]);
function deathHook (attacker, victim) {
if (Entity.getEntityTypeId(victim) == 13) {
preventDefault();
var random2 = Math.floor((Math.random()*5)+1);
if(random2 == 1) {
Level.dropItem(Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 2, 350, 1, 0);
} else if(random2 == 2 || random2 == 3) {
Level.dropItem(Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 1, 350, 1, 0);
}
}
}