mehboss / CustomRecipes

CustomRecipes source code
Mozilla Public License 2.0
2 stars 1 forks source link

[Feature Suggestion]: Is it possible to assign multiple possible items in one slot? #41

Open SpitlightMk2 opened 5 months ago

SpitlightMk2 commented 5 months ago

What is your question?

As in vanilla Minecraft, one can craft 4 sticks with 2 pieces of wooden planks of any type (and they don't need to be the same type). Is it possible to define custom recipes like that with the plugin? If so, how should I configure the "Ingredients" in .yml file? If not, may I suggest that to be a new feature?

It is still possible to implement in current version(1.8.8) of CR by creating multiple recipe .yml files and list out all possibilities but the number of .yml files just blows up if more than one material slot accepts a random item from a certain list.

Provide documentation

No response

Server Version

1.20.1

Plugin Version

1.8.8

Question Confirmation

Valorless commented 5 months ago

Like you said yourself, it is possible, but by making multiple recipe files. Currently in 1.8.8, I do not think what you're looking for is possible, but you can definitely suggest it as a new feature :)

If I understand correctly, it's like you define your ingredients, but ingredient A (lets just call it A), can persist of any item on a list of items. Like with a chest, we arrange it in a circle as usual, and W (being wood,) can be any wood from a list specified.

Ingredients Example of an Enchanting Table using multiple materials, but giving the same result:

ItemCrafting:
  - XBX
  - DOD
  - OOO

Ingredients:
  D:
    Material: DIAMOND
    Identifier: none
    Amount: 1
  B:
    Material: BOOK
    Identifier: none
    Amount: 1
  O:
    Material: 
      - OBSIDIAN
      - CRYING_OBSIDIAN
      - GILDED_BLACKSTONE
    Identifier: none
    Amount: 1

(This is purely an example, and does not exist currently.)