1

Placed_block trigger advancement

JackFire03 8/19/23 5:05 am
2.6k
8/19/2023 5:21 am
There is this trigger that I think it would help me detect when placing block but when I tried and search and tried again, nothing seems to work. Basically, what I wanna do just when player placing specific block, such as stone block, it run function. But it keep broken and no tutorial fixing it. So what does placed_block do?
Posted by
JackFire03
Level 36 : Artisan Pokémon Pirate
11

  Have something to say?

JoinSign in

2

imalittlhigh
08/19/2023 5:09 am
Level 67 : High Grandmaster Sweetheart Stack
{
"criteria": {
"requirement": {
"trigger": "minecraft:placed_block",
"conditions": {
"location": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"blocks": [
"minecraft:stone"
]
}
}
}
]
}
}
},
"rewards": {
"function": "minecraft:function name"
}
}

Runs a function when player places a stone block
Made with Misode

Keep in mind, the function triggers as and at the player, not at the block that has been placed (you basically need to raycast to find that block)

Hope this helps ^^

This is 1.20+ btw
3
JackFire03
08/19/2023 5:21 am
They/Them • Level 36 : Artisan Pokémon Pirate
thanks, it worked!
2

Welcome