forked from Uristqwerty/CraftGuide
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Joel-Paul/feature/lang
Feature/lang
- Loading branch information
Showing
11 changed files
with
67 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ reobfuscated | |
.idea/dictionaries | ||
.idea/libraries | ||
.idea/jarRepositories.xml | ||
.idea/misc.xml | ||
.idea/modules.xml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,69 +1,26 @@ | ||
# BTW-gradle-fabric-example | ||
|
||
This repository is based on the [BTW-Gradle](https://github.com/BTW-Community/BTW-gradle) and the [Example Mod](https://github.com/minecraft-cursed-legacy/Example-Mod) | ||
repositories, combining them to enable fabric development for the Better Than Wolves mod. | ||
**This repository was only tested for client-side development yet.** | ||
|
||
## Quick Start | ||
|
||
* Clone this repository | ||
* Acquire the full BTW sources and put them under `src/btw/java` | ||
* (Optional) Put the BTW resources (textures, etc.) under `src/btw/resources` | ||
* Run the gradle task *btwJar* | ||
* Run the gradle task *build* and then *runClient* | ||
* (Optional) Put the vanilla MC resources (sounds) under `run/resources` | ||
|
||
## BTW Source Code | ||
|
||
To get access to the Better Than Wolves source code, please refer to the [BTW-Gradle repository](https://github.com/BTW-Community/BTW-gradle) | ||
or (alternatively) the [BTW-Public repository](https://github.com/BTW-Community/BTW-Public), which also offers a way to generate the sources. | ||
|
||
## Development | ||
|
||
Similar to the [BTW-Gradle](https://github.com/BTW-Community/BTW-gradle) project, this repository comes with a few configuration files for IntelliJ IDEA. | ||
|
||
In this repository, there is an example implementation of a fabric mod that is a BTW-Addon at the same time. Base class overwrites, | ||
either for initializing your BTW-Addon or for changes to the functionality of MC are in many cases not needed | ||
anymore. (But they are still possible, put the overwriting-sources under `main/java/net/minecraft/src`. | ||
This requires your mod to be loaded as a coremod, which is currently not supported in a dev-environment - only in production.) The | ||
addon initialization is taken care of by the PreLaunchInitializer. | ||
|
||
For functionality changes to base classes, please have a look at mixins, which enable you | ||
to inject code at runtime, offering much better compatibility. Most fabric-mixin tutorials should apply here, but keep in | ||
mind that no fabric-api is available yet, just bare mixins. An even more powerful alternative is fabric-asm, but this has not | ||
been tested yet. | ||
|
||
If you use reflection, please keep in mind that it is now, in many cases at least, not needed anymore, in addition to the fact that fabric | ||
remaps Minecraft at runtime into an intermediary form, which is different from the obfuscated one. To get the intermediary names | ||
of classes, fields, and methods, have a look at the mappings under `custom_mappings`. | ||
|
||
## Releasing Mods/Addons | ||
|
||
If you want to run fabric mods with BTW in a non-dev environment, you have to either use | ||
the [BTW-fabric MultiMC instance](https://github.com/BTW-Community/cursed-fabric-loader/releases/latest) (recommended) or | ||
follow the [installation instructions for the Vanilla launcher](https://github.com/BTW-Community/legacy-fabric-installer/releases/latest). | ||
|
||
|
||
Drop on by the discord server if you need help: [BTW Discord](https://discord.gg/fhMK5kx). | ||
|
||
The mod file for the release is generated by the Gradle task *remapJar* and then put into `release`. | ||
|
||
After successfully importing the MultiMC instance, you can put your mod file into the mods folder of your installation. | ||
If it is a coremod, put it into coremods. | ||
|
||
## Issues & Troubleshooting | ||
|
||
* How do I obtain the BTW-sources? *Please refer to [BTW-Gradle](https://github.com/BTW-Community/BTW-gradle) or [BTW-Public](https://github.com/BTW-Community/BTW-Public).* | ||
|
||
More troubleshooting is still todo. Feel free to message me on Discord. | ||
|
||
## MultiMC Remarks | ||
* The MultiMC instance should support most BTW versions and their addons, install them normally via `Add to Minecraft.jar`. | ||
* Addons developed outside of the fabric environment that use | ||
Java reflection might not work if they reference obfuscated names via Strings (as mentioned above). | ||
Porting those addons is a simple process though, as only the new intermediary names have to be adopted. | ||
|
||
## License | ||
This project incorporates: | ||
* A modified version of [Fabric Loom](https://github.com/FabricMC/fabric-loom) (MIT) | ||
* A precompiled version of [Tiny Remapper](https://github.com/FabricMC/tiny-remapper) (LGPL-3.0) | ||
# CraftGuide Addon for Better Than Wolves | ||
CraftGuide allows players to view recipes in-game by pressing a key (`G` by default) and alleviates the tedium of having to remember or lookup recipes. | ||
This particular addon fixes previous versions of CraftGuide not displaying certain recipes in [Better Than Wolves](https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/3117153-better-than-wolves-community-edition). | ||
|
||
## Links | ||
- [Download](https://github.com/BTW-Community/CraftGuide/releases/latest) | ||
- [Better than Wolves forum](https://www.sargunster.com/btwforum/viewtopic.php?p=159719) | ||
- [Source](https://github.com/BTW-Community/CraftGuide/tree/BTW-CE) | ||
|
||
## Installation | ||
- Install [Better than Wolves with Fabric](https://www.sargunster.com/btwforum/viewtopic.php?t=10201) | ||
- Download `craft-guide-x.x.x.jar` | ||
- Place `craft-guide-x.x.x.jar` into the `mods/` folder of your BTW installation | ||
- Enjoy :) | ||
|
||
## Permissions | ||
Here's a [quote from Uristqwerty](https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1277913-craftguide-v1-7-1-1) on the Minecraft Forum regarding source code editing and redistribution permissions: | ||
> If you want to make a custom version of CraftGuide, use bits of its code, or just see how it works, you can find the source code [on Github](https://github.com/Uristqwerty/CraftGuide). | ||
If you want to use some (or all) of it in your own project, you are free to do so, though it would be nice if you mentioned CraftGuide in a text file or somewhere else where someone can find it. | ||
|
||
## Credits | ||
- Uristqwerty - original CraftGuide author ([MC Forum](https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1277913-craftguide-v1-7-1-1)) ([GitHub](https://github.com/Uristqwerty/CraftGuide)) | ||
- jorgebonafe - previous maintainer ([BTW Forum](https://www.sargunster.com/btwforum/viewtopic.php?f=12&t=9452)) ([GitHub](https://github.com/BTW-Community/CraftGuide/tree/jorge-bonafe)) | ||
- IssaMe - current maintainer | ||
- Arminias - Fabric support | ||
- Dawnraider - providing hooks in BTW |
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
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
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,18 @@ | ||
key.craftguide.open=Open CraftGuide | ||
|
||
craftguide.filter_type.input=Input | ||
craftguide.filter_type.output=Output | ||
craftguide.filter_type.machine=Machine | ||
craftguide.filter=Filter | ||
|
||
craftguide.list.recipe=Recipe List | ||
craftguide.list.type=Recipe Type | ||
|
||
craftguide.clear=Clear | ||
craftguide.back=Back | ||
craftguide.set_item=Set Item | ||
craftguide.search=Search | ||
|
||
craftguide.recipe.show=Show recipes of this type | ||
craftguide.recipe.hide=Hide recipes of this type | ||
craftguide.recipe.show_only=Show only recipes of this type |