Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any of criteria #24

Open
InboundHalo opened this issue Apr 12, 2024 · 5 comments
Open

Any of criteria #24

InboundHalo opened this issue Apr 12, 2024 · 5 comments

Comments

@InboundHalo
Copy link

Currently there is no way to make an advancement that requires one of a few criteria.

@AlmostPanda
Copy link

what do you mean by that? you can use more then 1 criteria in advancement

@InboundHalo
Copy link
Author

I don't think you can make an either or advancement where let's say you could have diamonds in your inventory or gold in your inventory.

@AlmostPanda
Copy link

AlmostPanda commented Apr 15, 2024

the advancement could look like this, but you would have to add group items in your groups.yml

diamonds:
  group: items
  display:
    type: DAIMOND
    name: "&bDiamonds &7& &6Gold"
    lore:
      - "&7Get 2 Diamonds and 6 Gold"
  name: "&a[Diamonds & Gold]"
  criteria:
    diamond:
      name: "Have 2 diamonds in inventory"
      type: inventory
      amount: 2
      item:
        type: DIAMOND
    gold:
      name: "Have 6 golds in inventory"
      type: inventory
      amount: 6
      item:
        type: GOLD_INGOT

@InboundHalo
Copy link
Author

I believe that would require both getting diamonds and gold

@AlmostPanda
Copy link

Oooh you mean 2 different items in 1 criteria, no you cant have that I think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants