I have a big more mobs mod and when I was testing it it did not work. Any one whos experienced with more mobs mods,please find what wrong and fix it. Download link http://www.mediafire...2gsxdqseca2cob5
Rollback Post to RevisionRollBack
I'm back from my hibernation. Most likely gone so don't pm me.
what do you mean by first bracket? I am not ver good at moding
3 minute lesson on if/function statements:
some commands may wrap a few different commands inside. For example, the if statement can cause a few lines of code to execute. So how does it know when to start? You wrap the code you want to be controlled by that statement in curly brackets.
if (cmd[0] == "potato")
{ //this open bracket signifies that we are
//starting a new block of code that's controlled by the if statement
clientMessage("Potatoes are cool");
print("I eat potatoes EVERY DAY");
} //and this bracket signifies that we are now
//outside the block of code controlled by the if statement
So obviously, each { bracket has to match with one } bracket. So since you have one at the beginning of the script without a partner to match, the script won't run.
Your use of variables is also wrong: the var keyword creates a new variable. To access a variable you've already created, just refer to its name.
var potato = 111;
later:
potato = 999;
I recommend you take a JavaScript tutorial. Codecademy is considered by some to be a fairly good site, as is W3schools.
I was not trying to.i just dont understand.i think it would be easier if some one fixed it and pmed it to me.and you stop being rude how you said I was not meant to make mod scripts because code academy did not work
Rollback Post to RevisionRollBack
I'm back from my hibernation. Most likely gone so don't pm me.
I was not trying to.i just dont understand.i think it would be easier if some one fixed it and pmed it to me.and you stop being rude how you said I was not meant to make mod scripts because code academy did not work
Side note: in BlockLauncher, as far as I know, I can't actually compare whether two entity references are equal (!), so I made the TNT cow explosion trigger on any cow. That I will have to fix.
And, if you remember nothing else from this, INDENT YOUR CODE!!! It makes fixing mistakes so much easier. Indenting your code was the first thing I did after I downloaded it.
This is an edited version of Hexdro's mod.
I suggest you take javascript lessons and try to fix it yourself instead of being lazy and asking others.
There is also something called the Online Lint.
Paste your code into it (first link on google if you search it) then click lint. It should fix it.
If you want a clean up (Will not fix it but its easier on the eyes) use JSFiddle, You can also save, edit and test scripts there. Though of course it won't test ModPE scripts.
no I totally edited it even though it says some same things but actually they are not those mobs they are diffrent but I did not feel like changing the coding so they may be called that but they are really not.and no I am not going to a website because they may not work.they may confuse me like usual
Rollback Post to RevisionRollBack
I'm back from my hibernation. Most likely gone so don't pm me.
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium3 minute lesson on if/function statements:
some commands may wrap a few different commands inside. For example, the if statement can cause a few lines of code to execute. So how does it know when to start? You wrap the code you want to be controlled by that statement in curly brackets.
if (cmd[0] == "potato") { //this open bracket signifies that we are //starting a new block of code that's controlled by the if statement clientMessage("Potatoes are cool"); print("I eat potatoes EVERY DAY"); } //and this bracket signifies that we are now //outside the block of code controlled by the if statementSo obviously, each { bracket has to match with one } bracket. So since you have one at the beginning of the script without a partner to match, the script won't run.
Your use of variables is also wrong: the var keyword creates a new variable. To access a variable you've already created, just refer to its name.
later:
I recommend you take a JavaScript tutorial. Codecademy is considered by some to be a fairly good site, as is W3schools.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttps://gist.github.com/zhuowei/6736926
Side note: in BlockLauncher, as far as I know, I can't actually compare whether two entity references are equal (!), so I made the TNT cow explosion trigger on any cow.
And, if you remember nothing else from this, INDENT YOUR CODE!!! It makes fixing mistakes so much easier. Indenting your code was the first thing I did after I downloaded it.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhich version of BlockLauncher are you running? I'm using a BlockLauncher 1.4.5 method (Entity.spawnMob, since I'll be removing bl_spawnMob soon)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.