1
Placed_block trigger advancement
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?
2
{
"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
thanks, it worked!
