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

error data modify ~ ~ ~

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21 Pre-Release 1
    • None
    • Windows 10, minecraft license 1.21-pre1
    • Unconfirmed
    • (Unassigned)

      Moving data with relative coordinates does not work ~ ~ ~

      Example doesn't work: data modify entity @n[type=minecraft:text_display] text set value '[{"nbt":"text","entity":"@s","interpret":true},{"block":"~ ~ ~","nbt":"Book.components.minecraft:writable_book_content.pages[0].raw"}]'

      Example works: data modify entity @n[type=minecraft:text_display] text set value '[{"nbt":"text","entity":"@s","interpret":true},{"block":"29 51 15","nbt":"Book.components.minecraft:writable_book_content.pages[0].raw"}]'

      This outputs the correct data: tellraw @p [{"block":"~ ~ ~","nbt":"Book.components.minecraft:writable_book_content.pages[0].raw"}]

            Unassigned Unassigned
            IQRAER IQRAER
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: