
Helping Add Default Values
ZachAttack4321 opened this issue ยท 4 comments
Hey, I see you're starting to add compatibilities for several mods already, and while I'm not knowledgeable enough to help with the codebase, I'd love to help by adding default values to each of the mod's weapons/armor/entities. If there's a correct format/folder to place them in or if its just using datapacks let me know!
Yeah man that would be sick! The default config files are loaded from resources/data/idf/default/
You should be able to copy the files from this repo to get a starting point and then put them in a datapack to override the default ones.
so why not split the mods into there own separate config files so they aren't all in the same file which could possibly speed it up
Actually, the damage class is already guessed based on the name of the item:
String dc = "strike";
if (Util.getItemRegistryName(item).toString().contains("sword") || Util.getItemRegistryName(item).toString().contains("axe")) {
dc = "slash";
}
if (Util.getItemRegistryName(item).toString().contains("pickaxe") || Util.getItemRegistryName(item).toString().contains("bow")) {
dc = "pierce";
}
But yes, adding some kind of algorithm to guess a viable force stat based on the weapon damage and attack speed would be a good idea. I'll look into it.
Could you implement a fallback for weapons that gives them Force values based on their vanilla damage stat? Along with maybe some kind of guess at their damage type, based on the item's name--i.e., a Copper Sword is probably going to do slashing damage because it has 'sword' in the name.