I'm trying to make my first modscript for Minecraft Pocket Edition. It's very simple and has been made many times. But I just want to try and make one anyway to practice on making mods.
Here is the mod:
But I recieve an error whenever I try to import it to Blocklauncher:
There are more stuff to it but I find those unimportant that has nothing to do with the mod.
Promo: The promo of the serial will be available on all the channels of the YouTube. Chakravakam serial story. The promo of this show is released and it was liked by many people and so hoped that it will achieve success. It will be coming soon on your favorite Star Maa channel and don’t miss to watch this amazing show.
All brackets must match, this is the rule I commonly follow when I'm not using an IDE(integrated development environment) to script.
So for example, here is your current code. I'll be highlighting your singular error here in the comments of that code
This is, of course, assuming that the singular bracket above your error is not 'separate' from the above code. or in other words is the bracket labeled 1 the last bracket, or is there another after it. If there is another after it, then to continue with this answer.
Note the extra bracket, placed after your else if
's method use(JS is an object-oriented language; in this case, this references the term 'method' which is a function of an object, in this case being 'Player'). In the code above, I've bolded each and every bracket.
In the case that that is not the last bracket, the code seems fine, aside from defining a function within a function, in which case the inner function is not accessible to the outside; it is only accessible from within the function. If this is the case, I'm not familiar with whatever API you're using to interpret this code, and can't offer any other idea as to why its throwing that error.