Skip to content

Commit 6a31c4e

Browse files
committed
Readme
1 parent 6509d4d commit 6a31c4e

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
11
# Stonecutter template
22

3+
If you have some issues with template ping me (@JavaJumper) in [Kiku's realm](https://discord.gg/TBgNUCfryS) or official fabric discord
4+
35
This template allows you create multiloader multitemplate mod using stonecutter and architectury
46

57
It is based on my CustomCursor project
68

9+
## Setup
10+
711
To change versions check settings.gradle.kts
12+
Currently default versions are these,
13+
but you can easily add other versions if you need that
14+
- 1.20.1, fabric, lexforge
15+
- 1.20.4, fabric, neoforge
16+
- 1.21.1, fabric, neoforge
17+
- 1.21.3, fabric, neoforge
18+
- 1.21.4, fabric, neoforge
819

920
You can use c# script to automatically change all template names.
1021
Open RenameTemplate.cs, change names in replacements array and run "dotnet run" in this directory
1122
I would highly recommend to do this before opening project in your IDE, and then remove all c# related files from project
1223
(obj and bin folders, .csproj and script itself). Also you can remove c# stuff from .gitignore (there is comment for that)
1324

14-
If you have some issues with template ping me in [Kiku's realm](https://discord.gg/TBgNUCfryS) or official fabric discord
1525

16-
Currently supported versions these,
17-
but you can easily add other versions if you need that
18-
- 1.20.1, fabric, lexforge
19-
- 1.20.4, fabric, neoforge
20-
- 1.21.1, fabric, neoforge
21-
- 1.21.3, fabric, neoforge
22-
- 1.21.4, fabric, neoforge
26+
## Build tools usage
2327

2428
To start current active version use runActive task
2529

2630
For testing all versions you can use chiseledRunAllClients, it runs all possible version and loader variants (in random(?) order)
2731

2832
Also template had publishing set up, you need to specify project id for modrinth and curseforge in gradle.properties, and tokens for these sites in local.properties (it is gitignored, check local.properties.example). After that use chiseledPublishMods task
33+
34+
## Template usage
35+
36+
Template already has some code setup:
37+
- common and platform specific entrypoints
38+
- ModPlatform interface for platform specific code
39+
- example config screen with mod menu integration
40+
- example mixin (clientside)
41+
- class for simple file IO
42+
- common entrypoint with logger, modid, ModPlatform object instance
43+
- en_us lang file

src/main/java/com/example/template/ModPlatform.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.example.template;
22

3+
4+
/**
5+
* This interface allows you to define platform specific code, and call it in
6+
*/
7+
38
public interface ModPlatform {
49
String getModloader();
510
boolean isModLoaded(String modloader);

src/main/resources/template-common.mixins.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"package": "com.example.template.mixin",
44
"compatibilityLevel": "JAVA_17",
55
"mixins": [
6+
],
7+
"client": [
68
"ExampleMixin"
79
],
810
"injectors": {

0 commit comments

Comments
 (0)