Mojira Archive
MC-122088

The result of /seed does not get properly stored using /execute store

The bug

When /execute store is used to store the result of the /seed command, the wrong value gets stored. Here are some values I found:

  • If the seed is 225704178974273007, the stored value is 1142238703.
  • If the seed is -8136237196898536299, the stored value is -2037713771
  • If the seed is -6529837547381228143, the stored value is -480936559

How to reproduce

  1. Create a new world, or load an existing world
  2. Type /seed to obtain the world seed.
  3. Create a scoreboard objective to store the seed in.
    /scoreboard objectives add seed dummy
    /scoreboard objectives setdisplay sidebar seed
  4. Run the following command to store the world seed in the scoreboard data:
    /execute store result score @s seed run seed
  5. Note that the stored value is different from the actual seed.
  6. Give yourself an item with a custom NBT tag.
    /give @s minecraft:stone{seed:1}
  7. Drop the item on the ground.
  8. Run the following command to store the world seed in the item data:
    /execute store result entity @e[type=item,limit=1] Item.tag.seed int 1 run seed
  9. Get the entity data and note that the stored value different is from the world seed, but the same as the one stored in the scoreboard objective.
    /data get entity @e[type=item,limit=1]

Works As Intended

JochCool

[Mojang] Nathan Adams

2017-11-19, 01:55 PM

2021-12-15, 11:17 PM

2018-01-02, 03:31 PM

3

4

Confirmed

/execute-store, /seed

Minecraft 17w46a

-