This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Im making a mod which consist of a custom recipe command and when I tested it in blocklauncher the recipes duplicate...
The glitch only actually happens when I tap a block while holding the custom items I made... :/ still don't know how to fix it...
Sorry for late reply , school days , and yeah I probably did a wrong order but not sure where it is here...
coffee_powder_id = 720;
ModPE.setItem(coffee_powder_id, "lead", 0, "Coffee Powder");
//Food/Drinks
function useItem(x,y,z,i,b,s){ if(i==721){ Entity.addEffect(getPlayerEnt(), MobEffect.movementSpeed, 45*20, 0, false, true); Player.addItemInventory(721, -1, 0); Level.playSound(getPlayerX(),getPlayerY(),getPlayerZ(),"random.burp",30,25); }
//Recipes Item.addShapedRecipe(paper_cup_id,1,0,[ " ", "n n", "nnn"],["n",339,0]); Item.addShapedRecipe(coffee_powder_id,1,0,[ " ", " s ", " o "],["o",353,0,"s",351,3]);
Closed.
Im making a mod which consist of a custom recipe command and when I tested it in blocklauncher the recipes duplicate...
The glitch only actually happens when I tap a block while holding the custom items I made... :/ still don't know how to fix it...
Sorry for late reply , school days , and yeah I probably did a wrong order but not sure where it is here...
coffee_powder_id = 720;
ModPE.setItem(coffee_powder_id, "lead", 0, "Coffee Powder");
//Food/Drinks
function useItem(x,y,z,i,b,s){
if(i==721){
Entity.addEffect(getPlayerEnt(), MobEffect.movementSpeed, 45*20, 0, false, true);
Player.addItemInventory(721, -1, 0);
Level.playSound(getPlayerX(),getPlayerY(),getPlayerZ(),"random.burp",30,25);
}
//Recipes
Item.addShapedRecipe(paper_cup_id,1,0,[
" ",
"n n",
"nnn"],["n",339,0]);
Item.addShapedRecipe(coffee_powder_id,1,0,[
" ",
" s ",
" o "],["o",353,0,"s",351,3]);
Closed.