Good job. Must say, many of these mods have been released xD. Also, I see the command is 'gamemode-c' and 'gamemode-s' Just a suggestion. But, why not 'gamemode c' and 'gamemode s' Idk, but I find it easier and quicker to type those. Then having to type the '-'. I have looked at your code, and I know you can't make those working commands with your code, how it is right now. To make it work do this:
Change:
//Gamemode_Creative mod made by Kivitoe
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
function procCmd(cmd){
cmd = cmd.split(" ");
if(cmd == "gamemode-c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode-s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
To:
//Gamemode_Creative mod made by Kivitoe. Edited by COOLDUDE509 A.K.A Name_No_One_2:
function newLevel()
{
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
}
function procCmd(cmd){
cmd = cmd.toLowerCase(); //CHANGE cmd = cmd.split(" "); TO THIS(cmd = cmd.toLowerCase();) Makes 'gamemode
c' and 'gamemode s' work!
if(cmd == "gamemode c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
Good job. Must say, many of these mods have been released xD. Also, I see the command is 'gamemode-c' and 'gamemode-s' Just a suggestion. But, why not 'gamemode c' and 'gamemode s' Idk, but I find it easier and quicker to type those. Then having to type the '-'. I have looked at your code, and I know you can't make those working commands with your code, how it is right now. To make it work do this:
Change:
//Gamemode_Creative mod made by Kivitoe
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
function procCmd(cmd){
cmd = cmd.split(" ");
if(cmd == "gamemode-c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode-s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
To:
//Gamemode_Creative mod made by Kivitoe. Edited by COOLDUDE509 A.K.A Name_No_One_2:
function newLevel()
{
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
}
function procCmd(cmd){
cmd = cmd.toLowerCase(); //CHANGE cmd = cmd.split(" "); TO THIS(cmd = cmd.toLowerCase();) Makes 'gamemode
c' and 'gamemode s' work!
if(cmd == "gamemode c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
EDIT: can make them work but it's a tad more code
Thanks man! I've been wanting to add that other command too!
Gamemode_Creative is an in-world gamemode switcher. Created entirely by me, Kivitoe.
All you have to do is type the command: /gamemode-c. You will then go into creative mode.
Terms:
General:
1. You may not distribute this mod yourself unless you HEAVLY modified it.
1.1 You must also name it differently than the original, Gamemode_Creative.
2. Do not complain if this mod doesn't work. It works great for me.
3. Do not complain if you can't go into survival as this mod is only supposed to go into creative.
Download: https://drive.google.com/file/d/0BxB7q45aSO-2eGN4ZDRBaTFscTA/view?usp=docslist_api
Thank you for downloading!
Heyo,
Good job. Must say, many of these mods have been released xD. Also, I see the command is 'gamemode-c' and 'gamemode-s' Just a suggestion. But, why not 'gamemode c' and 'gamemode s' Idk, but I find it easier and quicker to type those. Then having to type the '-'. I have looked at your code, and I know you can't make those working commands with your code, how it is right now. To make it work do this:
Change:
//Gamemode_Creative mod made by Kivitoe
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
function procCmd(cmd){
cmd = cmd.split(" ");
if(cmd == "gamemode-c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode-s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
To:
//Gamemode_Creative mod made by Kivitoe. Edited by COOLDUDE509 A.K.A Name_No_One_2:
function newLevel()
{
clientMessage('§eWelcome! Thanks for using the Gamemode_Creative mod!');
}
function procCmd(cmd){
cmd = cmd.toLowerCase(); //CHANGE cmd = cmd.split(" "); TO THIS(cmd = cmd.toLowerCase();) Makes 'gamemode
c' and 'gamemode s' work!
if(cmd == "gamemode c"){
clientMessage('§eYour Gamemode Has Been Set');
Level.setGameMode(1)
if(cmd == "gamemode s"){
clientMessage('Your Gamemode Has Been Set');
Level.setGameMode(0)
}
}
}
EDIT: can make them work but it's a tad more code
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!
Thanks man! I've been wanting to add that other command too!
No probs! I'm glad I helped!
I think you should add more commands.
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!