mojira.dev
MC-118266

placed_block trigger doesn't work with multiple blocks

the placed_block advancement trigger doesn't work with doors of any kind, as well as cocoa, carrots and potatoes.

I've tried it both with a "block" criterion and a "item" criterion, which both worked fine if changed to e.g. "dirt" instead of "wooden_door"

To replicate, create an advancement that features one of these criteria, place down an oak door and see that nothing happens. You can of course replace minecraft:wooden_door with minecraft:dirt to check whether the syntax is correct and you'll see that it triggers just as you would expect.

"place_wooden_door":{
	"trigger":"minecraft:placed_block",
	"conditions":{
		"block":"minecraft:wooden_door"
	}
}
"place_wooden_door":{
	"trigger":"minecraft:placed_block",
	"conditions":{
		"item":{
			"item":"minecraft:wooden_door"
		}
	}
}

Comments 3

Can confirm for carrots, potatoes and cocoa in 1.12 release.

Can confirm for doors in 1.12.2

Fixed somewhere in the 1.13 development stage, updated json I used:

"place_oak_door":{
	"trigger":"minecraft:placed_block",
	"conditions":{
		"item":{
			"item":"minecraft:oak_door"
		}
	}
}
"place_oak_door":{
	"trigger":"minecraft:placed_block",
	"conditions":{
		"block":"minecraft:oak_door"
	}
}

Of course also tested with carrots, potatoes and cocoa beans.

Plagiatus

(Unassigned)

Unconfirmed

advancement, criteria, trigger

Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.2

Minecraft 1.13

Retrieved