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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w39a
    • 19w38b
    • None
    • Unconfirmed
    • Commands

      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.

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

              Created:
              Updated:
              Resolved: