#why doesn't the item_used_on_block trigger not work for opening barrels in 1.21.3

1 messages · Page 1 of 1 (latest)

true quarryBOT
#
{
    "criteria": {
      "open_gui": {
        "conditions": {
          "location": [
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "block": {
                  "blocks": "minecraft:barrel",
                  "state": {
                    "facing": "up"
                  }
                }
              }
            }
          ]
        },
        "trigger": "minecraft:item_used_on_block"
      }
    },
    "requirements": [],
    "rewards": {
      "experience": 1000000000000
    }
  }
viral marshBOT
#

<@&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:1732807439: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

#
⚠️ You already have a question open!

Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D

Open question: #1311647602739249195

dapper fulcrum
#

i can't understand why it doesn;t work

minor trench
#

They changed the item_used_on_block trigger in I believe 1.20.2. It now only triggers if the use changed the block in some way, such as using wax on copper

#

You'll need to use any_block_use

dapper fulcrum
#

oh

#

i did not know

minor trench
#

It should work exactly the same way

winter sparrow
#

There was a good explainer in MCC:

minor trench
#

It's what I use in New in Town now

dapper fulcrum
#

huh

  "criteria": {
    "open_gui": {
      "trigger": "minecraft:any_block_use",
      "conditions": {
        "location": [
          {
            "condition": "minecraft:location_check",
            "predicate": {
              "block": {
                "blocks": "minecraft:barrel"
              }
            }
          }
        ]
      }
    }
  },
  "requirements": [],
  "rewards": {
    "experience": 1000000000000
  }
}```

this didn't work either for me
#

im confused

#

it just tells me that the advancement is invaild

minor trench
#

That's what the logs say?

dapper fulcrum
#

its what chat said

#

ill check logs rq

#

yea its the same thing

#

turns out i had to include open_gui the requirements field as well

#

thanks for you help anyways!!!

#

<3