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

effects_changed trigger does not trigger with instant_health, instant_damage, and saturation lingering, splash and drinkable potions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w09a, Minecraft 18w15a, Minecraft 18w21a, Minecraft 18w21b, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14, 22w19a
    • Confirmed
    • (Unassigned)

      The bug

      The advancement trigger for "effects_changed" seems to activate inconsistently when used in a custom advancement. "instant_damage", "instant_health", and "saturation" don't seem to trigger the advancement whenever the player:

      • drinks a potion
      • uses a splash potion
      • uses a lingering potion

      (However, the advancement DOES get triggered when the player uses a tipped arrow with the respective effect, or uses the /effect command to give the respective status effect)

      How to reproduce

      Create custom data pack(1.13 snapshot) OR place in the respective advancement folder (1.12.2)

      {
      	"display": {
      		"title": "instant damage test",
      		"description": "",
      		"icon": {
      			"item": "minecraft:potion"
      		},
      		"background": "minecraft:textures/gui/advancements/backgrounds/stone.png",
      		"show_toast": true,
      		"announce_to_chat": true	
      	},
      	"criteria": {
      		"instant_damage": {
                  "trigger": "minecraft:effects_changed",
                  "conditions": {
                      "effects": {
                          "minecraft:instant_damage": {
      						}
      					}	
      				}
      			}
      		}
      	}
      }
      

      (replacing the "effects" conditions with the respective status effect)
      Then using a potion (drinking, slash, or lingering) with the assigned status effects.

      I've included a world download with advancements and potions already made and ready to use.

            Unassigned Unassigned
            MukiTanuki MukiTanuki
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: