Skip to content

Commit

Permalink
Configuration gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Mechalopa committed Aug 3, 2024
1 parent e7b2b36 commit fd629a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/com/github/mechalopa/jafohana/JAFOhana.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.config.ModConfig;
import net.neoforged.neoforge.client.gui.ConfigurationScreen;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;

@Mod(JAFOhana.MODID)
public class JAFOhana
Expand All @@ -25,6 +27,7 @@ public JAFOhana(IEventBus modEventBus, ModContainer modContainer)
{
modEventBus.addListener(ModConfigs::loadConfig);
modContainer.registerConfig(ModConfig.Type.COMMON, ModConfigs.SERVER_CONFIG);
modContainer.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);

ModBlocks.register(modEventBus);
ModBiomeFeatures.register(modEventBus);
Expand Down
10 changes: 9 additions & 1 deletion src/main/resources/assets/jafohana/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,13 @@
"block.jafohana.potted_bells_of_ireland": "Potted Bells of Ireland",
"block.jafohana.potted_beach_spider_lily": "Potted Beach Spider Lily",
"block.jafohana.potted_water_hyacinth": "Potted Water Hyacinth",
"item_group.jafohana.tab": "Just a Few Ohana"
"item_group.jafohana.tab": "Just a Few Ohana",
"jafohana.configuration.general": "General",
"jafohana.configuration.fasciatedDandelionDropsNormalDandelionWhenUsingBoneMeal": "Fasciated dandelion drops normal dandelion when using bone meal",
"jafohana.configuration.fasciatedOxeyeDaisyDropsNormalOxeyeDaisyWhenUsingBoneMeal": "Fasciated oxeye daisy drops normal oxeye daisy when using bone meal",
"jafohana.configuration.dandelionFasciationChance": "Dandelion fasciation chance",
"jafohana.configuration.oxeyeDaisyFasciationChance": "Oxeye daisy fasciation chance",
"jafohana.configuration.creepansyConvertChance": "Creepansy convert chance",
"jafohana.configuration.jadeVineGrowChance": "Jade vine grow chance",
"jafohana.configuration.additionalWandererTrades": "Additional wanderer trades"
}

0 comments on commit fd629a2

Please sign in to comment.