tutorial:minotaur
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:minotaur [2020/12/27 18:12] – [Basic] calum6541 | tutorial:minotaur [2021/03/17 18:39] – Rename Advanced to Absurd haykam | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Publishing your mod on Modrinth using Minotaur. ====== | + | ====== Publishing your mod on Modrinth using Minotaur ====== |
- | Minotaur is a gradle | + | Minotaur is a Gradle |
- | This page only goes through the basics of Minotaur, you should [[https:// | + | This page only goes through the basics of Minotaur, you should [[https:// |
===== Basic ===== | ===== Basic ===== | ||
- | |||
First of all, add the minotaur plugin to your plugins list in your '' | First of all, add the minotaur plugin to your plugins list in your '' | ||
- | < | + | < |
plugins { | plugins { | ||
id " | id " | ||
Line 15: | Line 14: | ||
</ | </ | ||
- | Now you can create a new gradle | + | Now you can create a new Gradle |
Here is a basic example. | Here is a basic example. | ||
- | < | + | < |
import com.modrinth.minotaur.TaskModrinthUpload | import com.modrinth.minotaur.TaskModrinthUpload | ||
- | task publishModrinth (type: TaskModrinthUpload){ | + | task publishModrinth (type: TaskModrinthUpload) { |
- | + | token = ' | |
- | token = ' | + | |
projectId = ' | projectId = ' | ||
versionNumber = ' | versionNumber = ' | ||
Line 33: | Line 31: | ||
</ | </ | ||
- | Get your modrinth | + | Get your Modrinth |
- | Now when you run '' | + | Now when you run '' |
{{https:// | {{https:// | ||
Line 42: | Line 40: | ||
This is where Java '' | This is where Java '' | ||
- | ===== Advanced | + | ===== Absurd |
- | So, you have a basic implementation. | + | So, you have a basic implementation. |
- | First of all, we would need to create a '' | + | First of all, we would need to create a '' |
- | Add a new '' | + | Add a new '' |
<code Java> | <code Java> | ||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | ||
</ | </ | ||
- | Now, you can collect user input by simply calling the method: '' | + | Now you can collect user input by simply calling the method: '' |
- | Lets add this to our task shall we? We'll also add some more data, such as a markdown changelog and make the version name different from the sematic | + | Let' |
- | < | + | < |
import com.modrinth.minotaur.TaskModrinthUpload | import com.modrinth.minotaur.TaskModrinthUpload | ||
- | task publishModrinth (type: TaskModrinthUpload){ | + | task publishModrinth (type: TaskModrinthUpload) { |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | ||
System.out.println(" | System.out.println(" | ||
token = br.readLine(); | token = br.readLine(); | ||
- | projectId = '' | + | projectId = "" |
System.out.println(" | System.out.println(" | ||
versionNumber = br.readLine(); | versionNumber = br.readLine(); | ||
Line 75: | Line 72: | ||
System.out.println(" | System.out.println(" | ||
changelog = br.readLine(); | changelog = br.readLine(); | ||
- | addLoader('fabric') | + | addLoader("fabric") |
} | } | ||
</ | </ | ||
- | Now, when '' | + | Now, when '' |
- | Minotaur is great alongside | + | Minotaur is great alongside |
- | < | + | < |
- | task publishModrinth (type: TaskModrinthUpload){ | + | task publishModrinth (type: TaskModrinthUpload) { |
// ... Modrinth Upload Stuff | // ... Modrinth Upload Stuff | ||
curseforge< | curseforge< |
tutorial/minotaur.txt · Last modified: 2022/10/22 23:48 by budavissza