Skip to content

Commit

Permalink
feat: add files
Browse files Browse the repository at this point in the history
  • Loading branch information
rootEnginear committed Oct 13, 2023
1 parent fb75368 commit 17cd2a1
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 45 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<img align="right" height="128" width="128" alt="" loading="lazy" decoding="async" src="./src/main/resources/icon.png"/>

# Playground
# Craftable Chainmail Armor

This is the beginning of awesome mods!
Craft chainmail armors from chainlinks.

> **Important**
> Required [Babric](https://github.com/Turnip-Labs/babric-instance-repo/releases) to run the mod.
## Features

- Feature #1
- Feature #2
- Feature #3
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ loader_version=0.14.19-babric.1-bta
# halplibe_version=2.3.0

# Mod
mod_version=1.0.0
mod_version=1.0.2
mod_group=rootenginear
mod_name=playground
mod_name=craftablechainmailarmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package rootenginear.craftablechainmailarmor;

import net.fabricmc.api.ModInitializer;
import net.minecraft.core.block.Block;
import net.minecraft.core.crafting.CraftingManager;
import net.minecraft.core.item.Item;
import net.minecraft.core.item.ItemStack;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CraftableChainmailArmor implements ModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger("craftablechainmailarmor");

static {
// Prevent Java compiler to remove unused import
Block $ = Block.blockOlivine;
}

public static final CraftingManager craftingManager = CraftingManager.getInstance();

@Override
public void onInitialize() {
craftingManager.addRecipe(new ItemStack(Item.armorHelmetChainmail, 1, 217), "AAA",
"A A",
'A', Item.chainlink);
craftingManager.addRecipe(new ItemStack(Item.armorChestplateChainmail, 1, 239), "A A",
"AAA",
"AAA",
'A', Item.chainlink);
craftingManager.addRecipe(new ItemStack(Item.armorLeggingsChainmail, 1, 231), "AAA",
"A A",
"A A",
'A', Item.chainlink);
craftingManager.addRecipe(new ItemStack(Item.armorBootsChainmail, 1, 224), "A A",
"A A",
'A', Item.chainlink);

LOGGER.info("Craftable Chainmail Armor initialized.");
}
}
15 changes: 0 additions & 15 deletions src/main/java/rootenginear/playground/Playground.java

This file was deleted.

15 changes: 6 additions & 9 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
{
"schemaVersion": 1,
"id": "playground",
"id": "craftablechainmailarmor",
"version": "${version}",
"name": "Playground",
"description": "This is the beginning of awesome mods!",
"name": "Craftable Chainmail Armor",
"description": "Craft chainmail armors from chainlinks.",
"authors": [
"rootEnginear"
],
"icon": "icon.png",
"contact": {
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods",
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods",
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods/tree/craftable-chainmail-armor",
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods/tree/craftable-chainmail-armor",
"issues": "https://github.com/rootEnginear/bta-rootenginear-mods/issues"
},
"license": "CC0-1.0",
"environment": "*",
"entrypoints": {
"main": [
"rootenginear.playground.Playground"
"rootenginear.craftablechainmailarmor.CraftableChainmailArmor"
]
},
"mixins": [
"playground.mixins.json"
],
"depends": {
"fabricloader": ">=0.13.3"
}
Expand Down
Binary file modified src/main/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions src/main/resources/playground.mixins.json

This file was deleted.

0 comments on commit 17cd2a1

Please sign in to comment.