Go to file
2019-02-22 22:03:38 -05:00
gradle/wrapper Actually use gradle 4.10.2 2019-02-03 13:35:00 +00:00
src/main automatically set mod version on export 2019-02-15 22:39:48 +01:00
.gitignore Update .gitignore for VSCode support (#6) 2018-12-23 11:52:58 -05:00
build.gradle remove javadoc jar 2019-02-15 22:41:11 +01:00
gradle.properties fix indentation 2019-02-15 22:29:42 +01:00
gradlew Actually use gradle 4.10.2 2019-02-03 13:35:00 +00:00
gradlew.bat first commit 2018-11-03 23:25:39 +01:00
LICENSE first commit 2018-11-03 23:25:39 +01:00
README.md Update README.md 2019-02-22 22:03:38 -05:00
settings.gradle update Loom, Fabric 2018-12-22 17:36:30 +01:00

Fabric Example Mod

Setup

  1. Edit gradle.properties with the information of your mod.
# Mod Properties
	mod_version = 1.0.0
	maven_group = com.myteam
	archives_base_name = mymod
	
# The following properties can be copied from https://modmuss50.me/fabric.html
	minecraft_version=19w08b
	yarn_mappings=19w08b.4
	loader_version=0.3.7.109
	fabric_version=0.2.3.104
  1. Adjust the java classes structures and the resources resources json files to suit your needs:
  • The "mixins" object can be removed from mod.json if you do not need to use mixins.
  • Please replace all occurences of "modid" with your own mod ID - sometimes, a different string may also suffice.
  1. Run the following command to fetch Fabric dependencies:
./gradlew genSources

Optional IDE Setup:

Running

You can simply run the Fabric server with your custom developed mod executing ./gradlew runServer. (The first time you run this command you will need to accept the eula.txt inside the /run folder under the project root)

Sometimes the server daemon will get stuck and your server start can fail, to fix that run ./gradlew --stop.

Deploying

You can deploy your mod by running ./gradlew build - then copy your jar file from the build/lib folder to your fabric server mods folder.

License

This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.