The Meaning of Life, the Universe, and Everything.
Join Date:
3/3/2015
Posts:
68
Location:
IN FAR FAR UNIVERSE
Minecraft:
no
Member Details
Help me please! I really need it. This mod is silly a bit, but I need it. Error is on 26th line,when I type "/friends" it says "ItemId is not defined". Help!!!
/*School Friends Mod v1.0 by McAwesomeGirl*/
function newLevel(){
clientMessage(ChatColor.GREEN + "School Friends Mod by " + ChatColor.RED + "McAwesomeGirl");
clientMessage("Type /friends to get their spawners!");
Sorry, doesn't work. Problem is on 26th line.
(P. S. I am a begginer, tought for three months, and i wrote Player.getCarriedItem and deleted addItemInventory)
Rollback Post to RevisionRollBack
Do you want a cupcake? Oops we haven't cupcakes...
ah now i see what's wrong you forgot the function, now it should be correct:
function useItem(x, y, z, itemId, blockId, side)
{
if (itemId==497)
{
THANK Y'ALL SOOO MUCH!
(But another problem-ModPE.setItem doesn't work and i haven't my friends spawners in too many items or using the command /friends... silly me -.- (xD))
Rollback Post to RevisionRollBack
Do you want a cupcake? Oops we haven't cupcakes...
Very ahrd to read, you make so many spacing :3
but i fix it Just small wrong,
u should put the
ModPE.setItem(501,"skull_steve", 0,2, "Spawn Makar");
ModPE.setItem(497,"skull_steve", 0,2, "Spawn Me");
ModPE.setItem(498,"skull_steve", 0,2, "Spawn Nastya");
ModPE.setItem(499,"skull_steve", 0,2, "Spawn Lera");
ModPE.setItem(500,"skull_steve", 0,2, "Spawn Denis");
/*School Friends Mod v1.0 by McAwesomeGirl*/
function newLevel(){
clientMessage(ChatColor.GREEN + "School Friends Mod by " + ChatColor.RED + "McAwesomeGirl");
clientMessage("Type /friends to get their spawners!");
}
function procCmd(command){
var cmd = command.split(" ");
if(cmd[0] == "friends"){
addItemInventory(500, 1);
addItemInventory(501, 1);
addItemInventory(499, 1);
addItemInventory(498, 1);
}
{
ModPE.setItem(501,"skull_steve", 0,2, "Spawn Makar");
ModPE.setItem(497,"skull_steve", 0,2, "Spawn Me");
ModPE.setItem(498,"skull_steve", 0,2, "Spawn Nastya");
ModPE.setItem(499,"skull_steve", 0,2, "Spawn Lera");
ModPE.setItem(500,"skull_steve", 0,2, "Spawn Denis");
}
if(itemId == 497)
{
Me = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/Ksenia.png");
Entity.setRenderType(Me, 3);
Entity.setNameTag(Me, "Ksuha Kriv");
clientMessage(ChatColor.WHITE + "<Ksu> " + ChatColor.WHITE + "Yo.");
}
if(itemId == 498)
{
Nastya = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/Nastya.png");
Entity.setRenderType(Nastya, 3);
Entity.setNameTag(Nastya, "Nastya Trusiuk");
clientMessage(ChatColor.WHITE + "<Nastya> " + ChatColor.WHITE + "Hi!");
}
if(itemId == 500)
{
Denis = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/Denis.png");
Entity.setRenderType(Denis, 3);
Entity.setNameTag(Denis, "Denis Hoda");
clientMessage(ChatColor.WHITE + "<Denis> " + ChatColor.WHITE + "Hello.");
}
if(itemId == 501)
{
Makar = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/Makar.png");
Entity.setRenderType(Makar, 3);
Entity.setNameTag(Makar, "Makar Maksimnuk");
clientMessage(ChatColor.WHITE + "<Makar> " + ChatColor.WHITE + "Hi there.")
}
if(itemId == 499)
{
Lera = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/Lera.png");
Entity.setRenderType(Lera, 3);
Entity.setNameTag(Lera, "Valeria Gavrish");
clientMessage(ChatColor.WHITE + "<Lera> " + ChatColor.WHITE + "Hello all!");
}
}
Do you want a cupcake? Oops we haven't cupcakes...
http://www.minecraftforum.net/members/Ender_Pe
Do you want a cupcake? Oops we haven't cupcakes...
Do you want a cupcake? Oops we haven't cupcakes...
Sorry, doesn't work. Problem is on 26th line.
(P. S. I am a begginer, tought for three months, and i wrote Player.getCarriedItem and deleted addItemInventory)
Do you want a cupcake? Oops we haven't cupcakes...
THANK Y'ALL SOOO MUCH!
(But another problem-ModPE.setItem doesn't work and i haven't my friends spawners in too many items or using the command /friends... silly me -.- (xD))
Do you want a cupcake? Oops we haven't cupcakes...
but i fix it Just small wrong,
u should put the
ModPE.setItem(501,"skull_steve", 0,2, "Spawn Makar");
ModPE.setItem(497,"skull_steve", 0,2, "Spawn Me");
ModPE.setItem(498,"skull_steve", 0,2, "Spawn Nastya");
ModPE.setItem(499,"skull_steve", 0,2, "Spawn Lera");
ModPE.setItem(500,"skull_steve", 0,2, "Spawn Denis");
to function newLevel() or out of function
if you but it on function procCmd, the code will not execute,because no command executed it
sorry bad english
http://www.mediafire.com/download/9bxzeqlcfebs4hb/Friends McAwesomeGirl.js
Thank y'all sooo much but this thread is closed... i am currently working of mod Wood Ore, HogwartCraft mod and Party Craft.
They all are working.
Thanks.
-McAwesomeGirl
(Moderator pls close this thread)
Do you want a cupcake? Oops we haven't cupcakes...