We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

14

/stopchain (or /stopfunction or similar) command to abort a function or commandblock chain

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    You can do this already with scoreboards,

    Just create a runCode scoreboard in the dummy objective

    set it to 0 at the beginning of the command,

    use a conditional or an execute if to set it to 1

    all commands after the potential set-to-1will have "execute if score x runCode matches 0 run "

    before it, that way they will only run if you didn't "abort" the command chain by setting the score to 1

  • 0
    Registered User commented
    Comment actions Permalink
    the explanations are a bit too technical for me, but I think your idea has potential. Can you give me specific examples?
     
  • 0
    Registered User commented
    Comment actions Permalink

    sean111204, yes, but not in Bedrock. In Bedrock, there is almost no way to stop a command chain, except destroying it, and even then, if you replace it, it will keep going!