Skip to content

Commit

Permalink
feat: add armor plates and fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jul 12, 2022
1 parent 5d8c80e commit aa22965
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 5 deletions.
24 changes: 24 additions & 0 deletions src/main/java/com/sekwah/narutomod/item/NarutoItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public ItemStack makeIcon() {
}
};

public static CreativeModeTab NINJA_MATERIALS = new CreativeModeTab("narutomod_materials") {
@Override
public ItemStack makeIcon() {
return new ItemStack(FABRIC.get());
}
};

public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MOD_ID);

// Weapons
Expand Down Expand Up @@ -92,6 +99,23 @@ public ItemStack makeIcon() {
public static final RegistryObject<Item> LONELY_MARCH = ITEMS.register("lonely_march", ()
-> new RecordItem(41, NarutoSounds.LONELY_MARCH, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE)));

public static final RegistryObject<Item> FABRIC = ITEMS.register("fabric", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

public static final RegistryObject<Item> FABRIC_REINFORCED = ITEMS.register("fabric_reinforced", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

public static final RegistryObject<Item> FABRIC_REINFORCED_GREEN = ITEMS.register("fabric_reinforced_green", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

public static final RegistryObject<Item> FABRIC_REINFORCED_BLACK = ITEMS.register("fabric_reinforced_black", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

public static final RegistryObject<Item> ARMOR_PLATE = ITEMS.register("armor_plate", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

public static final RegistryObject<Item> ARMOR_PLATE_GREEN = ITEMS.register("armor_plate_green", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));

// Ninja Masks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
*/
public enum NarutoArmorMaterial implements ArmorMaterial {

ANBU_MAT("anbu", 35, new int[]{2, 8, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
FLAK_MAT("flak", 35, new int[]{2, 7, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
ANBU_MAT("anbu", 35, new int[]{2, 7, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
FLAK_MAT("flak", 35, new int[]{2, 6, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
FLAK_STRONGER_MAT("flak_strong", 35, new int[]{2, 7, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
CHARACTER_CLOTHES("character_clothes", 35, new int[]{2, 7, 5, 2}, 8, null, 2.1F, 0.0F, () -> null),
FULL_CHARACTER_CLOTHES("full_character_clothes", 35, new int[]{2, 14, 5, 2}, 6, null, 2.1F, 0.0F, () -> null),
HEADBAND("headband", 35, new int[]{2, 18, 5, 2}, 6, null, 2.1F, 0.0F, () -> null),
FULL_CHARACTER_CLOTHES("full_character_clothes", 35, new int[]{2, 10, 5, 2}, 6, null, 2.1F, 0.0F, () -> null),
HEADBAND("headband", 35, new int[]{2, 5, 5, 2}, 6, null, 2.1F, 0.0F, () -> null),
;

private static final int[] HEALTH_PER_SLOT = new int[]{13, 15, 16, 11};
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/assets/narutomod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@
"item.narutomod.flak_jacket_new": "Flak Jacket",
"item.narutomod.anbu_armor": "Anbu Armor",
"block.narutomod.paper_bomb":"Paper Bomb",
"block.narutomod.akatsuki_cloak":"Akatsuki Cloak",
"block.narutomod.bonsai_tree":"Bonsai Tree",
"item.narutomod.fabric":"Fabric",
"item.narutomod.fabric_reinforced":"Reinforced Fabric",
"item.narutomod.fabric_reinforced_green":"Green Reinforced Fabric",
"item.narutomod.fabric_reinforced_black":"Black Reinforced Fabric",
"item.narutomod.armor_plate":"Armor Plate",
"item.narutomod.armor_plate_green":"Green Armor Plate",
"item.narutomod.akatsuki_cloak":"Akatsuki Cloak",
"narutomod.subtitle.kunai_thud": "Projectile Thud",
"narutomod.subtitle.needle_hit": "Needle Hit",
"narutomod.subtitle.jutsu_seal": "Jutsu Seal",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/armor_plate"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/armor_plate_green"
}
}
6 changes: 6 additions & 0 deletions src/main/resources/assets/narutomod/models/item/fabric.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/fabric"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/fabric_reinforced"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/fabric_reinforced_black"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/fabric_reinforced_green"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa22965

Please sign in to comment.