Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-79808

Patrol and trader spawns that "succeed" in invalid biomes are delayed, rather than cancelled



    • Confirmation Status:
    • Platform:
      Windows 10 - PC



      Upon leaving certain biomes after extended trips (Nether and End for both, Mushroom Fields and variants for Patrols only), Patrols and possibly wandering traders that fail the spawn probability check but not the biome check will spawn immediately as soon as the player enters a suitable biome. Note that only one patrol or trader will spawn when the player returns, however, traders will spawn regardless of if one is already present near the area.

      Steps to reproduce (Patrols)

      1. Place a repeating command block and a Nether portal.
      2. Set the command block's command to /kill @e[type=Pillager] and set it to always be active.
      3. Make a behavior pack and copy the vanilla spawn rules for the Patrols.
      4. Change it to spawn the patrols every 60 seconds for normal difficulty, instead of 600-660, and change the spawn chance to 100.
      5. Change the normal difficulty's world age filter to 0.
      6. Load the behavior pack into the world and ensure the difficulty is set to normal.
      7. Wait for the command block to print the kill message, then enter the portal.
      8. Wait 90 seconds in the Nether, then return to the Overworld.
      9. The command block should print that it has killed more pillagers.

      Steps to reproduce (Traders)

      As wandering trader spawns are not data-driven yet, it's much more difficult to reproduce, but still possible.

      1. Make sure the world you're using to test it is at least 20 minutes old.
      2. Repeat steps 1 and 2, but change the command's target to all wandering_trader entities.
      3. Wait for the command block to print the kill message, then enter the Nether portal.
      4. Leave the game for a couple of hours. Traders have a random chance of spawning every 20 minutes which goes up after each of the first two spawn failures, so it's best to wait as long as possible before going back to the overworld.
      5. Cross your fingers and hope the command block prints a message.

      Observed behavior

      Patrols and traders spawn immediately once the player exits the biome/dimension.

      Expected behavior

      The spawn attempts done in the Nether should completely fail, and spawning should continue as normal once the player returns to the overworld.


          Issue Links



              Desko Nicholas Jay
              3 Vote for this issue
              0 Start watching this issue