mojira.dev
MC-127632

Advancements granted that have an "impossible" trigger don't grant rewards

Granting an advancement with a "minecraft:impossible" trigger using /advancement grant does not give the player any of the listed "rewards"
Here is a simple example:

{
	"display": {
		"title": "test",
		"description": "",
		"icon": {
			"item": "minecraft:potion"
		},
		"show_toast": true,
		"announce_to_chat": true	
	},
	"parent": "test:parent",
	"criteria": {
		"impossible_trigger": { 
			"trigger": "minecraft:impossible"
		}
	},
	"rewards": {
	    "function": "test:function_reward",
		"loot": [ "minecraft:entities/blaze" ]
	}
}
{
	"display": {
		"title": "test",
		"description": "",
		"icon": {
			"item": "minecraft:potion"
		},
		"show_toast": true,
		"announce_to_chat": true	
	},
	"parent": "test:parent",
	"criteria": {
		"impossible_trigger": { 
			"trigger": "minecraft:impossible"
		}
	},
	"rewards": {
	    "function": "test:function_reward",
		"loot": [ "minecraft:entities/blaze" ]
	}
}

assuming the rewards are available, this results with nothing. Changing the "trigger" to something else will successfully grant the rewards when using the /advancement grant command.

Comments 2

The given advancement is invalid JSON due to an extra closing curly bracket.

Can't reproduce with a valid advancement.

Fixed invalid JSON, seems to be working I think?

MukiTanuki

(Unassigned)

Unconfirmed

advancement, impossible, rewards, trigger

Minecraft 18w11a

Retrieved