Chemistry Definitions - petrolpark/Destroy GitHub Wiki
Hovering over blue terms in JEI reveals their definition. This system can in fact be entirely controlled within the language .json file.
- Add a new term simply by adding an entry:
"namespace.chemistry.term1": "This is the definition of Term 1."
Namespace will probably bedestroy
if you are not making an add-on, though it can be anything. - Refer to that term in other definitions with braces, separating the text and ID of the linked term with a comma:
"namespace.chemistry.term2": "Hovering over the following text will show you the definition of term 1: {This is the text the user actually sees!, namespace:term1} You can have text either side, and any number of definitions and Molecule references."
- Commas can still be included in the blue text.
- Refer to Molecules with square brackets:
"namespace.chemistry.term3": "This term has something to do with [destroy:water]."
The text seen will be the name of the molecule (respecting the user's IUPAC preference). In this case you cannot add your own entries; it must be an existing molecule declared by a mod. The plan is to show the 3D model of the Molecule when hovering over it in a future update to Destroy.