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

Villagers with XP in a profession do not get prioritized when a new workstation of their craft is placed

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      Observed Behaviour:

      Villagers with XP in a profession (no longer able to change profession) do not get prioritized when a new workstation of their craft is placed.

      What should have happened:

      Villagers with highest XP in profession should be assigned first to a workstation to prevent cycling through jobless villagers if they are present

      Possible fix:

      maybe fix with one worker pool per profession per village, assign villager without workplace and highest XP in profession first (possible concurrency problem with multiple villagers assigning them to same workstation fix, see MC-150806)

      e.g.: 3 fishers, one with 100XP, the others with 50, 5 jobless

      • Workplace of the fisher with 100XP gets destroyed, add him to the village "fisher job" worker  queque.
      • Workplace of the fisher with 50 XP gets destroyed, add him to the village "fisher job" worker queque below the 100XP fisher.
      • New barrel gets placed, get and remove head element of the "fisher job" queque and assign him to the workplace
      • if "fisher job" queque is empty, default to "jobless" queque, if that fails aswell, leave jobsite vacant

            Unassigned Unassigned
            BlackJack55 BlackJack55
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: