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

/spawnpoint command does not work when executed from an enchantment effect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21 Release Candidate 1
    • None
    • Unconfirmed
    • (Unassigned)

      Attempting to have a player run a function containing the /spawnpoint command from a custom enchantment does not set a new spawnpoint.

      Steps to Reproduce:

      • Create a custom enchantment inside of a datapack.
      • Make the enchantment run a function containing the /spawnpoint command as an effect by the "hit_block" effect.
      • activate the enchantment on a tool.
      • run /kill command

      Observed results: Player respawns at world spawn

      Expected Results: Player should spawn at location that the /spawnpoint command was ran from.

       

      Notes: Attached are the custom enchantment and function included. The other two commands work as intended. Running the function in game manually will set the player's spawn properly.

            Unassigned Unassigned
            ChromatiCrafter Ambideer Hendrix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: