Skip to content

Commit 17cd2a1

Browse files
committed
feat: add files
1 parent fb75368 commit 17cd2a1

File tree

7 files changed

+50
-45
lines changed

7 files changed

+50
-45
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
<img align="right" height="128" width="128" alt="" loading="lazy" decoding="async" src="./src/main/resources/icon.png"/>
22

3-
# Playground
3+
# Craftable Chainmail Armor
44

5-
This is the beginning of awesome mods!
5+
Craft chainmail armors from chainlinks.
66

77
> **Important**
88
> Required [Babric](https://github.com/Turnip-Labs/babric-instance-repo/releases) to run the mod.
9-
10-
## Features
11-
12-
- Feature #1
13-
- Feature #2
14-
- Feature #3

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ loader_version=0.14.19-babric.1-bta
1010
# halplibe_version=2.3.0
1111

1212
# Mod
13-
mod_version=1.0.0
13+
mod_version=1.0.2
1414
mod_group=rootenginear
15-
mod_name=playground
15+
mod_name=craftablechainmailarmor
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package rootenginear.craftablechainmailarmor;
2+
3+
import net.fabricmc.api.ModInitializer;
4+
import net.minecraft.core.block.Block;
5+
import net.minecraft.core.crafting.CraftingManager;
6+
import net.minecraft.core.item.Item;
7+
import net.minecraft.core.item.ItemStack;
8+
import org.slf4j.Logger;
9+
import org.slf4j.LoggerFactory;
10+
11+
public class CraftableChainmailArmor implements ModInitializer {
12+
public static final Logger LOGGER = LoggerFactory.getLogger("craftablechainmailarmor");
13+
14+
static {
15+
// Prevent Java compiler to remove unused import
16+
Block $ = Block.blockOlivine;
17+
}
18+
19+
public static final CraftingManager craftingManager = CraftingManager.getInstance();
20+
21+
@Override
22+
public void onInitialize() {
23+
craftingManager.addRecipe(new ItemStack(Item.armorHelmetChainmail, 1, 217), "AAA",
24+
"A A",
25+
'A', Item.chainlink);
26+
craftingManager.addRecipe(new ItemStack(Item.armorChestplateChainmail, 1, 239), "A A",
27+
"AAA",
28+
"AAA",
29+
'A', Item.chainlink);
30+
craftingManager.addRecipe(new ItemStack(Item.armorLeggingsChainmail, 1, 231), "AAA",
31+
"A A",
32+
"A A",
33+
'A', Item.chainlink);
34+
craftingManager.addRecipe(new ItemStack(Item.armorBootsChainmail, 1, 224), "A A",
35+
"A A",
36+
'A', Item.chainlink);
37+
38+
LOGGER.info("Craftable Chainmail Armor initialized.");
39+
}
40+
}

src/main/java/rootenginear/playground/Playground.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/resources/fabric.mod.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
{
22
"schemaVersion": 1,
3-
"id": "playground",
3+
"id": "craftablechainmailarmor",
44
"version": "${version}",
5-
"name": "Playground",
6-
"description": "This is the beginning of awesome mods!",
5+
"name": "Craftable Chainmail Armor",
6+
"description": "Craft chainmail armors from chainlinks.",
77
"authors": [
88
"rootEnginear"
99
],
1010
"icon": "icon.png",
1111
"contact": {
12-
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods",
13-
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods",
12+
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods/tree/craftable-chainmail-armor",
13+
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods/tree/craftable-chainmail-armor",
1414
"issues": "https://github.com/rootEnginear/bta-rootenginear-mods/issues"
1515
},
1616
"license": "CC0-1.0",
1717
"environment": "*",
1818
"entrypoints": {
1919
"main": [
20-
"rootenginear.playground.Playground"
20+
"rootenginear.craftablechainmailarmor.CraftableChainmailArmor"
2121
]
2222
},
23-
"mixins": [
24-
"playground.mixins.json"
25-
],
2623
"depends": {
2724
"fabricloader": ">=0.13.3"
2825
}

src/main/resources/icon.png

-28.1 KB
Loading

src/main/resources/playground.mixins.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)