Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 7749432

Browse files
committed
penits
1 parent cb58725 commit 7749432

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# `MindustryModTemplate`
22

3-
[Mindustry](https://github.com/Anuken/Mindustry) Java mod template, otherwise known as JAR-modding, complete with [`EntityAnno`](https://github.com/GglLfr/EntityAnno) and syntax downgrader integration, works for both Android and PC.
3+
[Mindustry](https://github.com/Anuken/Mindustry) Java mod biotech, otherwise known as JAR-modding, complete with [`EntityAnno`](https://github.com/GglLfr/EntityAnno) and syntax downgrader integration, works for both Android and PC.
44

55
## Using
66

7-
Before going into using this template, be aware that a fair amount of Java knowledge and Git *(GitHub Desktop is fine, but `git` CLI is a million times better)* is **highly beneficial**. Going in blind isn't impossible, but you'll face a lot of problems. Not that people on [the Discord](https://discord.gg/mindustry) won't help, though, so be communicative!
7+
Before going into using this biotech, be aware that a fair amount of Java knowledge and Git *(GitHub Desktop is fine, but `git` CLI is a million times better)* is **highly beneficial**. Going in blind isn't impossible, but you'll face a lot of problems. Not that people on [the Discord](https://discord.gg/mindustry) won't help, though, so be communicative!
88

99
1. Install JDK 17 or higher. Plain or terminal-based code editors are **completely *not* recommended!** Use an IDE like [IntelliJ IDEA](https://www.jetbrains.com/idea/download/); there are free Community Edition releases available, just scroll down a bit.
10-
2. Click the `Use this template` button and create your repository.
10+
2. Click the `Use this biotech` button and create your repository.
1111
3. Clone a local copy of the repository.
1212

1313
> [!IMPORTANT]
1414
> A **local copy** is *not* a mere ZIP archive you obtain by downloading. This is where the Git knowledge comes to play. If you have GitHub CLI or GitHub Desktop installed, the site should provide instructions on how to use either, under the `<> Code` menu.
1515
>
1616
> `Download ZIP` is **not** a proper way to clone your repository.
1717
18-
4. Refactor namings to your preferences. The template is designed in such a way that this step should only require you to modify:
19-
- `gradle.properties`, the "Project configurations" section. For the "package" properties, if you don't know what you're doing, simply just change `template` to your preferred mod root package naming *(e.g. `mymod`, or `confictura` if your mod name is "confictura")*.
18+
4. Refactor namings to your preferences. The biotech is designed in such a way that this step should only require you to modify:
19+
- `gradle.properties`, the "Project configurations" section. For the "package" properties, if you don't know what you're doing, simply just change `biotech` to your preferred mod root package naming *(e.g. `mymod`, or `confictura` if your mod name is "confictura")*.
2020
- `mod.json`, which is the entire metadata of your mod.
2121
- `src/` folder and its contents, which is where your Java source files are stored. Rename folders, package, and class names as you prefer. Note that the main mod class' full name *(package + class)* must correspond to the `main` property in `mod.json`.
2222
- `.github/workflows/ci.yml`, which is the automated Continuous Integration that runs on your GitHub repository everytime you push a commit. This automates cross-platform builds which you might find useful. You should only edit the last 2 lines about `name` and `path`.
2323

2424
> [!TIP]
25-
> There's no `name` property in this template's `mod.json`. That property is automatically filled up when building.
25+
> There's no `name` property in this biotech's `mod.json`. That property is automatically filled up when building.
2626
27-
Here's an example of a properly configured mod base from the template, *assuming
27+
Here's an example of a properly configured mod base from the biotech, *assuming
2828
"confictura" as the name*:
2929
```mermaid
3030
---
@@ -82,11 +82,11 @@ Before going into using this template, be aware that a fair amount of Java knowl
8282

8383
`src/confictura/ConficturaMod.java`:
8484
```diff
85-
- package template;
85+
- package biotech;
8686
+ package confictura;
8787

8888
import mindustry.mod.*;
89-
- import template.gen.*;
89+
- import biotech.gen.*;
9090
+ import confictura.gen.*;
9191

9292
- public class ModTemplate extends Mod{
@@ -102,16 +102,16 @@ Before going into using this template, be aware that a fair amount of Java knowl
102102
```diff
103103
##### Project configurations.
104104
# The mod's internal name, corresponds to `name` in `mod.json`.
105-
- modName = mod-template
105+
- modName = mod-biotech
106106
+ modName = confictura
107107
# The mod's fetched entity sources package.
108-
- modFetch = template.fetched
108+
- modFetch = biotech.fetched
109109
+ modFetch = confictura.fetched
110110
# The mod's input entity sources package.
111-
- modGenSrc = template.entities.comp
111+
- modGenSrc = biotech.entities.comp
112112
+ modGenSrc = confictura.entities.comp
113113
# The mod's generated sources package.
114-
- modGen = template.gen
114+
- modGen = biotech.gen
115115
+ modGen = confictura.gen
116116
# The mod's JAR file name. Desktop build is suffixed with `Desktop`.
117117
- modArtifact = ModTemplate
@@ -124,13 +124,13 @@ Before going into using this template, be aware that a fair amount of Java knowl
124124
{
125125
- "displayName": "Mod Template",
126126
+ "displayName": "Confictura",
127-
- "description": "Mindustry Java mod template, complete with EntityAnno and syntax downgrader integration.",
127+
- "description": "Mindustry Java mod biotech, complete with EntityAnno and syntax downgrader integration.",
128128
+ "description": "Dive into the past of a trauma-driven uprising.",
129129
"version": "1.0",
130130
"minGameVersion": "146",
131131
"author": "You",
132132
"java": true,
133-
- "main": "template.ModTemplate"
133+
- "main": "biotech.ModTemplate"
134134
+ "main": "confictura.ConficturaMod"
135135
}
136136
```

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# The mod's internal name, corresponds to `name` in `mod.json`.
33
modName = biotech
44
# The mod's fetched entity sources package.
5-
modFetch = template.fetched
5+
modFetch = biotech.fetched
66
# The mod's input entity sources package.
7-
modGenSrc = template.entities.comp
7+
modGenSrc = biotech.entities.comp
88
# The mod's generated sources package.
9-
modGen = template.gen
9+
modGen = biotech.gen
1010
# The mod's JAR file name. Desktop build is suffixed with `Desktop`.
1111
modArtifact = BioTech
1212

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"displayName": "BioTech",
33
"description": "What does 'Alive' mean?",
44
"version": "v0.23",
5-
"minGameVersion": "149",
5+
"minGameVersion": "148",
66
"author": "Jammuu",
77
"java": true,
88
"main": "biotech.BioTech"

src/biotech/BioTech.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import mindustry.type.UnitType;
2929
import mindustry.ui.dialogs.*;
3030
import mindustry.world.Tile;
31-
import template.gen.EntityRegistry;
31+
import biotech.gen.EntityRegistry;
3232

3333
import java.lang.reflect.InvocationTargetException;
3434
import java.lang.reflect.Method;

src/biotech/ImaFragment.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import arc.util.Log;
1212
import arc.util.Time;
1313
import mindustry.Vars;
14+
import mindustry.core.GameState;
1415
import mindustry.logic.LExecutor;
1516

1617
import static arc.Core.graphics;
@@ -76,30 +77,29 @@ void drawMain(){
7677
drawIdx++;
7778
timeOffset = frames;
7879
if(drawIdx >= times.length){
79-
Vars.control.resume();
80-
Log.info("HUHHH");
80+
Vars.state.set(GameState.State.playing);
8181
enabled = false;
8282
} else {
83-
Vars.control.pause();
83+
Vars.state.set(GameState.State.paused);
8484
}
8585
}
8686
}
8787

8888
Draw.color(Color.white);
8989
switch(drawIdx){
90-
case 0 -> drawLine("biotech-ima-cutscene-line-1");
91-
case 1 -> drawLine("biotech-ima-cutscene-line-2");
92-
case 2 -> drawLine("biotech-ima-cutscene-line-3");
93-
case 3 -> drawLine("biotech-ima-cutscene-line-4");
94-
case 4 -> drawLine("biotech-ima-cutscene-line-5");
90+
case 0 -> drawLine("biotech-ima-cutscene-line-1", 1);
91+
case 1 -> drawLine("biotech-ima-cutscene-line-2", 1);
92+
case 2 -> drawLine("biotech-ima-cutscene-line-3", 1);
93+
case 3 -> drawLine("biotech-ima-cutscene-line-4", 1);
94+
case 4 -> drawLine("biotech-ima-cutscene-line-5", 3);
9595
}
9696
}
9797

98-
void drawLine(String textSprite) {
98+
void drawLine(String textSprite, float offset) {
9999
Draw.alpha(Mathf.random());
100-
Draw.rect(Core.atlas.find("biotech-ima-cutscene-eye"), camera.position.x + Mathf.random(-1, 1), camera.position.y + 25 + Mathf.random(-1, 1), camera.height, camera.height);
100+
Draw.rect(Core.atlas.find("biotech-ima-cutscene-eye"), camera.position.x + Mathf.random(-offset, offset), camera.position.y + 25 + Mathf.random(-1, 1), camera.height, camera.height);
101101
Draw.alpha(Mathf.random());
102-
Draw.rect(Core.atlas.find(textSprite), camera.position.x + Mathf.random(-1, 1), camera.position.y + Mathf.random(-1, 1), camera.width, camera.height);
102+
Draw.rect(Core.atlas.find(textSprite), camera.position.x + Mathf.random(-offset, offset), camera.position.y + Mathf.random(-1, 1), camera.width, camera.height);
103103
}
104104

105105
void rect() {

0 commit comments

Comments
 (0)