This is what I do every day with Block launcher
This is also JS ,
Very easy but I don't know js this is a simple macro loop so every tick it will check if the users health and hunger is low then after the function is called it will set health to normal
This is for Minecraft Pocket edition BTW, I wish there was another way

  • 16
    Did you lose your space bar AND tab key?
  • 3
    Missing some parenthesis on the attack function. Keep going. You're almost there
  • 11
    Didn't knew js could look this bad
  • 0
    I suck at this, parenthesis? Where am I missing no wonder it isn't working, if it isn't working then the Block launcher would alert me the problem
  • 5
    Parentheses missing, function calls in if's, double equality comparisations, missing intend, missing semi's, nested functions, wrong casing...

    Where do we begin?
  • 0
    @010001111 tbh I don't understand what u say , I needed to fix parenthesis in the attack function but I don't even know where to put it! Ignore my sleeping brain
  • 0
    O I KNOW WHERE , at the start of the function
    Ignore what I said >_>
  • 1
    @rooter He is coding on a tablet and refuses to use anything else.
  • 0
    @010001111 so? I can do whatever I need, Psst hey the code still compiles successfully
    Psst hey I have a Pc and a chromebook as well
    Psst hey thats why there is "DroidScript" available
    Try coding on a track phone and see their pain compared to mine 💀💀
  • 0
    @rooter Thanks
  • 4
    @OverclockedGD JS doesn’t compile.
  • 0
    @010001111 I said Droid Script, and its running not compiling, oops xD
  • 0
    @010001111 Don't lie to the kid.
  • 1
    @OverclockedGD The code runs but remember you not only are writing code for the computer, but for other humans, even if it's just you in the future.
  • 1
    @c3r38r170 I didn’t lie. If you say JS compiles I’ll uninstall Fortnite from your computer.
  • 0
    I hate fortnite, I like pixel dungeon , anyways I don't have a Linux on my chromebook yet I use repl.it or I can download termux on my computer and get Ubuntu or a vs code server, but I have to install node.js on it first
  • 0
    @rooter Thanks, Google chromebook Lenovo e800
  • 0
    "In contrast, JavaScript has no compilation step. Instead, an interpreter in the browser reads over the JavaScript code, interprets each line, and runs it. More modern browsers use a technology known as Just-In-Time (JIT) compilation, which compiles JavaScript to executable bytecode just as it is about to run."
    Source: https://web.stanford.edu/class/....
    Yes, the source is the first Google result, deal with it.
    So it isn't totally true it doesn't compile. It, generally, does, a bit each time.
  • 1
    @c3r38r170 You should read more carefully bud.
  • 1

    > JavaScript is an interpreted language, not a compiled language.

    It's literally the sentence above, "deal with it"
  • 2
    This looks hilariously bad
  • 0
    @010001111 I know it's an interpreted language, it's just not that interpreted languages don't ever compile, sometimes they do compile tiny chunks in some steps of the interpretation.
    @rooter I know, that's why I thought I didn't have to explain what I was talking about...
  • 1
    Programming on mobile devices is still so painful. I think there might be better IDEs cuz in this state the code looks deplorable.
  • 0
    @rooter oof too bad I'm programming on tablet and it works completely fine made several games and websites easy , who cares what people say
    Again, try programming on a track phone and you will see the difference
  • 0
    @3rdWorldPoison I only use QuickEdit, ACODE, Dcoder, and code editor that's all also ANIDE for blocklauncher JS
  • 0
    @3rdWorldPoison Not unless u have the right ide and a keyboard xD
  • 0
    Damn , even the devs arguing about some crappy language used to "Exploit" games and just build websites and small projects , hmmm
    Seriously if you ask me what to build out of js that input would be Nil because
    It doesn't even have objects or anything, you can only build console games or whatever out of JS , hmm never seen a project out of js before

    People who don't understand reread over and over again
  • 0
    @OverclockedGD You showed the code, so we gave our opinion. This is a social platform so you will get comments on whatever you post. Deal with it or make a blog and hide the link so no professionals with decades of experience can find you with their suggestions.
  • 1
    Do people still play BlockLauncher MCPE?
  • 1
    @Ranchonyx idk its pretty old , but I think so , people still use block launcher for add-ons or creating their own scripts like mine
  • 0
Add Comment