generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
274 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.kckarnige.slowbronze.item; | ||
|
||
import com.kckarnige.slowbronze.SlowBronze; | ||
|
||
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries; | ||
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemGroups; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class ModItems { | ||
|
||
public static final Item BRONZE_PLATE = registerItem("bronze_plate", new Item(new Item.Settings())); | ||
|
||
private static void addItemToIngredientItemGroup(FabricItemGroupEntries entries) { | ||
entries.add(BRONZE_PLATE); | ||
} | ||
|
||
private static Item registerItem (String name, Item item) { | ||
return Registry.register(Registries.ITEM, Identifier.of(SlowBronze.MOD_ID, name), item); | ||
} | ||
|
||
public static void registerModItems () { | ||
SlowBronze.LOGGER.info("Registering Bronze Plate item... - " + SlowBronze.MOD_ID); | ||
|
||
ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(ModItems::addItemToIngredientItemGroup); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"item.slowbronze.bronze_plate": "Bronze Plate" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"item.slowbronze.bronze_plate": "Bronze Plate" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/slowbronze/models/item/bronze_plate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "slowbronze:item/bronze_plate" | ||
} | ||
} |
Binary file added
BIN
+250 Bytes
src/main/resources/assets/slowbronze/textures/item/bronze_plate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
"XX", | ||
"X#", | ||
" #" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_axe" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
}, | ||
"C": { | ||
"item": "minecraft:chainmail_boots" | ||
} | ||
}, | ||
"pattern": [ | ||
"XCX", | ||
"X X" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_boots" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/resources/data/bronze/recipe/bronze_chestplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
}, | ||
"C": { | ||
"item": "minecraft:chainmail_chestplate" | ||
} | ||
}, | ||
"pattern": [ | ||
"XCX", | ||
"XXX", | ||
"XXX" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_chestplate" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
}, | ||
"C": { | ||
"item": "minecraft:chainmail_helmet" | ||
} | ||
}, | ||
"pattern": [ | ||
"XXX", | ||
"XCX" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_helmet" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
"XX", | ||
" #", | ||
" #" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_hoe" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/resources/data/bronze/recipe/bronze_leggings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
}, | ||
"C": { | ||
"item": "minecraft:chainmail_leggings" | ||
} | ||
}, | ||
"pattern": [ | ||
"XXX", | ||
"XCX", | ||
"X X" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_leggings" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
"XXX", | ||
" # ", | ||
" # " | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_pickaxe" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
"X", | ||
"#", | ||
"#" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_shovel" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
" X ", | ||
" X", | ||
"#X " | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_sickle" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "equipment", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "slowbronze:bronze_plate" | ||
} | ||
}, | ||
"pattern": [ | ||
"X", | ||
"X", | ||
"#" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "bronze:bronze_sword" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/resources/data/slowbronze/recipe/bronze_plate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"pattern": [ | ||
"###" | ||
], | ||
"key": { | ||
"#": { | ||
"item": "bronze:bronze_ingot" | ||
} | ||
}, | ||
"result": { | ||
"id": "slowbronze:bronze_plate" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters