SvenKayser / JMOD

The Javascript MOD Loader
Other
8 stars 3 forks source link

Feature Request: Ore Dictionary Substring Search #24

Open ghost opened 7 years ago

ghost commented 7 years ago

One thing that could be all kinds of useful would be the ability to perform a search of the Ore Dictionary for a specific substring, which could return a list of matching items.

The most obvious benefit would be the ability to scan the Ore Dictionary for metals. This could be used as a way to replace AOBD, or it could be used as a way to test for the presence of a specific metal to avoid generating a duplicate.

SvenKayser commented 7 years ago

There cannot be said anything bad about this. Also, the task is rather easy. Scheduled for 1.0.6

SvenKayser commented 7 years ago

Okay here's my problem with this:

The ore dictionary is something filled at several stages of the loading process. Having such a function would not reliably catch everything unless executed actually at the end of "loadComplete". Since there is no way of catching mod states from javascript yet, thing functionality would actually have to be implemented in a very unintuitive way. So it's gotta wait until mod states come to the jmods itself.