Hi, I wanted to change the output of a composter to include dirt as well as bonemeal, but since (to my knowledge) there isn't a way to change that directly, I decided to just have the dirt spawn on the composter when it's emptied. The problem I'm having is, I can't get an advancement to detect a player interacting with a full (stage 8) composter. Anyone done something similar before?
#Advancement for when player empties full composter
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1726680599:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
What have you tried so far?
The advancement triggers item_used_on_block not designating an item (I found this does work with filling the composter, but not emptying it) and any_block_interaction (Or whatever it is)
I think you want default_block_use for this
Okay, lemme try that
This doesn't seem to work...
{
"criteria": {
"empty_composter": {
"trigger": "minecraft:any_block_use",
"conditions": {
"location": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"blocks": "minecraft:composter",
"state": {
"level": "8"
}
}
}
}
]
}
}
},
"rewards": {
"function": "sp_remix:empty_composter"
}
}
If anything was gonna work it would be any_block_use, that's surprising that it wouldn't
Maybe the advancement check runs after the composter is reset to level 0?
Oh, maybe
Yep
That was it
only question now is how do make it not run when you just randomly decide to right click an empty composter
...You can't tag a block, right?
Oh wait, nevermind
you can't right click an empty composter with an empty hand hahaha
Now I just have to get the dirt to spawn on top of the composter heh
Got that too!
Just have drop 2 blocks up ^^
Thanks everyone! 😄