Skip to content

Commit

Permalink
Minor config and salt changes to prep for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLyle committed Nov 22, 2019
1 parent 8cdd709 commit 82e34df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/exnihilofabrico/ExNihiloFabrico.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ object ExNihiloFabrico: ModInitializer {
LOGGER.info("Creating Loot Tables")
ArtificeUtils.generateLootTables(builder)
}
dataPack.dumpResources("exnihilofabrico_generated")
if(config.modules.general.dumpGeneratedResource)
dataPack.dumpResources("exnihilofabrico_generated")
}

private fun registerCompatModules() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/exnihilofabrico/ExNihiloFabricoClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,7 @@ object ExNihiloFabricoClient: ClientModInitializer {
}
}
ExNihiloFabrico.LOGGER.info("Created Resources")
if(ExNihiloFabrico.config.modules.general.dumpGeneratedResource)
resourcePack.dumpResources("exnihilofabrico_generated")
}
}
8 changes: 5 additions & 3 deletions src/main/kotlin/exnihilofabrico/ExNihiloFabricoConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class ModuleConfig {

class GeneralConfig {
@Comment("Load json files from <config>/exnihilofabrico/*.json")
var useJsonRecipes: Boolean = true
var useJsonRecipes: Boolean = false
@Comment("Dump generated json files to <minecraft>/exnihilofabrico_generated")
var dumpGeneratedResource: Boolean = false
}

class BarrelConfig {
Expand Down Expand Up @@ -58,9 +60,9 @@ class CrucibleConfig {
var stoneVolume = 4
@Comment("How many buckets of liquid can a wooden crucible store")
var woodVolume = 1
@Comment("Can crucibles be enchanted with efficiency. (WIP)")
@Comment("Can crucibles be enchanted with efficiency.")
var efficiency: Boolean = true
@Comment("Can stone crucibles be enchanted with flame. (WIP)")
@Comment("Can stone crucibles be enchanted with fire aspect.")
var fireAspect: Boolean = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object BottleHarvestingImpl {
return if(target.block != Blocks.SAND)
ItemStack.EMPTY
else
ItemStack(getExNihiloItem("salt"))
ItemStack(getExNihiloItem("salt_bottle"))
}

}

0 comments on commit 82e34df

Please sign in to comment.