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

`location_check` dimension tests fail when the executing position is not loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 19w38b
    • Fix Version/s: 19w39a
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      Commands

      Description

      When using a predicate to check for a dimension, the predicate will fail if the executing dimension matches the specified dimension but the chunk at the executing position is not loaded.

      How to reproduce:

      1. Save the following predicate to [yourdatapack]:data/mojira/predicates/in_the_nether
        {
        	"condition": "minecraft:location_check",
        	"predicate": {
        		"dimension": "minecraft:nether"
        	}
        }
        
      1. Run the following command from the overworld:
        execute in minecraft:the_nether if predicate mojira:in_the_nether

      -> The test fails. The test should pass, because the command is running in the nether, but the location check fails because the chunk is not loaded. If you forceload that chunk in the nether, the test will pass.

        Attachments

          Activity

            People

            • Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              Aeldrion Aeldrion
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: