#Detect Scoreboard change with advancement

1 messages · Page 1 of 1 (latest)

night zenith
#

What do I have to change to detect when a player rings a bell while holding a bell?

{
  "display": {
    "icon": {
      "id": "minecraft:bell",
      "components": {
        "minecraft:enchantment_glint_override": true
      },
      "count": 1
    },
    "title": "Glockenception",
    "description": "Läute eine Glocke, während du eine weitere in der Hand hältst ",
    "frame": "challenge"
  },
  "parent": "stolz:milestone/bells_rung/somebody_here",
  "criteria": {
    "bellception": {
      "trigger": "minecraft:tick",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_scores",
            "entity": "this",
            "scores": {
              "bells_rung": {
                "min": 1
              }
            }
          },
          {
            "condition": "minecraft:match_tool",
            "predicate": {
              "items": "minecraft:bell"
            }
          }
        ]
      }
    }
  }
}```

This obv gives the advancement once a bell has been rung and then holding a bell.
I need to detect when the score changes and then just check if the player is holding a bell right? But how do I achieve that?
wild patio
#

this would have nothing to do with scoreboards

#

switch your trigger to any_block_use

#

use location for the block (e.g. a bell) and use player for the equipment (e.g. mainhand -> bell)

#

the only issue being that it triggers when a bell is being placed against another bell too, but I don't see how that would be a big deal.

#

alternatively, simply reset the scoreboard every so often, I would still switch your trigger type to any_block_use however.

#

sorry, default_block_use and you won't get the achievement when placing bells against one another

night zenith
#

Yeah right, was totally focused on my scoreboards that I didn't see other options.

Thank you very much.