mojira.dev
MC-273965

Piglin bartering is consistent for the same world

Steps to Reproduce:

  1. Create a new world with a set seed in creative

  2. Go to the nether

  3. Get 10 gold ingots and barter with 1 piglin. It is best to do this on the nether roof.

  4. Observe the 10 transactions

  5. Recreate that same world and do the previous steps again
    Observed Result:
    The trades are identical. This is due to a seed being set for the random loot the piglin barters
    Expected Result:
    The trades should be random every time.
    Note: This also applies with ore drops and mob loot

Comments 1

This is intended as per the 1.20-pre1 changelog:

The game now uses named random sequences to deterministically produce loot for loot tables. Each random sequence produces a unique sequence based on the world seed and sequence ID, which means a loot table will produce the same results when ran with the same parameters in the same world.

CaptainFlame54

(Unassigned)

Unconfirmed

(Unassigned)

1.21

Retrieved