-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- config file and Mod Menu support, allowing to switch allowed enchan…
…tments - support for knockback and fire aspect - add German translation
- Loading branch information
1 parent
7a978f3
commit 466d43e
Showing
12 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/fourmisain/axesareweapons/AxesAreWeapons.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package fourmisain.axesareweapons; | ||
|
||
import fourmisain.axesareweapons.config.Configuration; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import me.shedaniel.autoconfig.serializer.JanksonConfigSerializer; | ||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class AxesAreWeapons implements ModInitializer { | ||
public static Configuration CONFIG; | ||
|
||
@Override | ||
public void onInitialize() { | ||
CONFIG = AutoConfig.register(Configuration.class, JanksonConfigSerializer::new).getConfig(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/fourmisain/axesareweapons/config/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fourmisain.axesareweapons.config; | ||
|
||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
|
||
@Config(name = "axesareweapons") | ||
public class Configuration implements ConfigData { | ||
|
||
@ConfigEntry.Gui.Tooltip(count = 2) | ||
public boolean enableLooting = true; | ||
@ConfigEntry.Gui.Tooltip(count = 2) | ||
public boolean enableKnockback = false; | ||
@ConfigEntry.Gui.Tooltip(count = 2) | ||
public boolean enableFireAspect = false; | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/fourmisain/axesareweapons/config/ModMenuImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package fourmisain.axesareweapons.config; | ||
|
||
import com.terraformersmc.modmenu.api.ConfigScreenFactory; | ||
import com.terraformersmc.modmenu.api.ModMenuApi; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
|
||
@Environment(EnvType.CLIENT) | ||
public class ModMenuImpl implements ModMenuApi { | ||
@Override | ||
public ConfigScreenFactory<?> getModConfigScreenFactory() { | ||
return parent -> AutoConfig.getConfigScreen(Configuration.class, parent).get(); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/main/java/fourmisain/axesareweapons/mixin/AxeItemMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"modmenu.descriptionTranslation.axesareweapons": "Entfernt den erhöhten Haltbarkeitsverlust im Kampf und erlaubt Plünderung für Äxte", | ||
"text.autoconfig.axesareweapons.option.enableLooting": "Erlaube Plünderung auf Äxten", | ||
"text.autoconfig.axesareweapons.option.enableKnockback": "Erlaube Rückstoß auf Äxten", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect": "Erlaube Verbrennung auf Äxten", | ||
"text.autoconfig.axesareweapons.option.enableLooting.@Tooltip[0]": "Sobald die Verzauberung auf einer Axt ist, bleibt", | ||
"text.autoconfig.axesareweapons.option.enableLooting.@Tooltip[1]": "sie dort, selbst wenn die Option ausgeschalten wird", | ||
"text.autoconfig.axesareweapons.option.enableKnockback.@Tooltip[0]": "Sobald die Verzauberung auf einer Axt ist, bleibt", | ||
"text.autoconfig.axesareweapons.option.enableKnockback.@Tooltip[1]": "sie dort, selbst wenn die Option ausgeschalten wird", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect.@Tooltip[0]": "Sobald die Verzauberung auf einer Axt ist, bleibt", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect.@Tooltip[1]": "sie dort, selbst wenn die Option ausgeschalten wird" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"text.autoconfig.axesareweapons.title": "Axes Are Weapons", | ||
"text.autoconfig.axesareweapons.option.enableLooting": "Enable Looting for Axes", | ||
"text.autoconfig.axesareweapons.option.enableKnockback": "Enable Knockback for Axes", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect": "Enable Fire Aspect for Axes", | ||
"text.autoconfig.axesareweapons.option.enableLooting.@Tooltip[0]": "Once on an axe, the enchantment will stay", | ||
"text.autoconfig.axesareweapons.option.enableLooting.@Tooltip[1]": "on there, even if the option is disabled", | ||
"text.autoconfig.axesareweapons.option.enableKnockback.@Tooltip[0]": "Once on an axe, the enchantment will stay", | ||
"text.autoconfig.axesareweapons.option.enableKnockback.@Tooltip[1]": "on there, even if the option is disabled", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect.@Tooltip[0]": "Once on an axe, the enchantment will stay", | ||
"text.autoconfig.axesareweapons.option.enableFireAspect.@Tooltip[1]": "on there, even if the option is disabled" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters