sinkillerj / ProjectE

ProjectE. A complete rewrite of EE2 for modern Minecraft versions.
MIT License
394 stars 203 forks source link

How do I go about adding EMC values through datapacks? (NOT THE IN GAME COMMAND.) #2302

Open togera13 opened 8 months ago

togera13 commented 8 months ago

Tickets that do not conform to this template will be closed without comment

Exact ProjectE version (do not say "latest", "latest on Curse", or similar): 1.19.2-PE1.0.1B

Exact Forge version: 43.3.2

Link to crash log (please use a paste site, do not attach the .txt or paste the log inline):

Steps to reproduce:

1.

What I expected to happen:

What happened instead:

I tried following the example custom conversion thing but I couldn't figure it out after messing with it for several hours. I legit have no clue what I am doing wrong when trying to add emc values.

Main reason I wanted to do this is for organization & ocd sake as opposed to having a bunch of random mod's emc values merged into the custom emc config file (also because if I ever make my own mod I'd like to know how to add emc values to my stuff), but every single last tutorial on youtube & the like only covers the in-game cheats enabled command method of adding emc. I cannot find a single tutorial on adding emc via datapack or api (though I don't know how to code so the api method would probably be useless to me for now until I learn coding though I still would like to know how it works eventually if there are any tutorials for it).

pupnewfster commented 8 months ago

I am not sure the best way to explain this as the main way I interact with it is via datagen and code. But there is the file it sounds like you already looked at as an example format. There is also the two files that can be referenced for what we do for vanilla items: https://github.com/sinkillerj/ProjectE/tree/mc1.20.x/src/datagen/generated/data/projecte/pe_custom_conversions