Sign in
Skip to main content

Discuss Minecraft's scripting and modding capabilities, including APIs, tools, customization, automation, and creator workflows. Share ideas and feedback on how players and creators can extend and customize Minecraft.

2

Generalize the minecraft:bee_nest_destroyed advancement definition

1 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    感谢你提出这个想法,我不知道为什么mojang一定要限制方块的检测种类。

    这个想法是不错的,但我还是觉得这么做其实有点欠考虑了。

    我认为应当和"any_block_used"触发器一样,可以使用针对位置的谓词列表进行检测。在谓词列表中可以使用"block_state_property"或者"location_check"对方块进行更可控的检查。就像这样子:

    {
      "criteria": {
        "destroy_block": {
          "trigger": "minecraft:block_destroyed",
          "conditions": {
    "location" :[] 一个谓词列表,该列表中的谓词全部测试通过后才能达成此准则。 "player" : {}/[] 将要获得进度的玩家 } } } }

    这样下来,该触发器既能够检测方块的各种属性(也包括方块属性或者方块实体的nbt),也能最大化利用"location_check"谓词和"block_state_property"谓词。