Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-118211

Calling functions inside functions that call functions does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Awaiting Response
    • Affects Version/s: Minecraft 1.12 Pre-Release 7, Minecraft 1.12
    • Fix Version/s: None
    • Labels:
    • Environment:
      Java version, old launcher, MacBook, OSX mountain Lion (if I remember correct)
    • Confirmation Status:
      Unconfirmed

      Description

      When I try to call functions inside another function that is using a third function it does not call them (I'm using command blocks). The log says it executed them, but there is no result.
      When I try it myself, copying the command, it still does not work. If I do use the functions individually it works fine.

      • Function1 . . . . . . . . . . . . . . . . . . . . . . Trying this function does not work.
        . . . . . * Function1_1 . . . . . . . . . . . . . . Using this function works
        . . . . . . . . . . * Function1_1_1
        . . . . . * Function1_2 . . . . . . . . . . . . . . Using this function also works
        . . . . . . . . . . * Function1_2_1

      I copied all my code from Lorgon111, from his YouTube video Conway's game of life, explained
      I used custom terain, with 4x air and 1 layer of wool
      I changed spawn to x=0 and z=0

      The code replaces all bats with 'living' (black) cells and skeletons with 'dead' (white) cells.
      There also appear command blocks under the wool if you place with a spawn egg/summon a bat.

      Since I copied the code, I think there is another thing I didn't see, or it has to do with Mac, since Lorgon111 had the /gamerule maxCommandChainLength set to 999999, although on Mac this makes it overflow to no chain, only executing the first line of code in a function, a now resolved bug

      I put my whole world in the download so you can check if it works for you.
      I can't put a map in here, so I'll do the functions only.
      I've done /gamerule gameLoopFunction conway:life

        Attachments

        1. check1.mcfunction
          0.2 kB
        2. check1body.mcfunction
          0.3 kB
        3. check1part2.mcfunction
          0.2 kB
        4. count_neighbors.mcfunction
          0.6 kB
        5. has_buffer_neighbor.mcfunction
          0.7 kB
        6. initialize.mcfunction
          0.3 kB
        7. life.mcfunction
          0.7 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Zirking Zirk Seljee
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: