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

Certain commands do not work with the load function tag on entering the world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16 Pre-release 2
    • None
    • Unconfirmed
    • (Unassigned)

      Some commands in a function contained in #minecraft:load will not actually run when the world is created or re-entered. This is especially noteable due to the fact that we can now load datapacks into the world on creation.

      The dysfunctional commands seem to be the ones related to players, like chat and player target selectors.

      To reproduce:

      -Add a function to the #minecraft:load function tag containing the commands say hi and execute at @a run setblock ~ ~2 ~ dirt

      -Create a world using that datapack

      -Neither command will run. This also occurs when reentering the world.

      -RunĀ /reload. Both commands work as expected.

            Unassigned Unassigned
            ChromaKey81 ChromaKey
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: