Skip to content

Commit

Permalink
feat: akatsuki cloak added
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jul 12, 2022
1 parent dce00f2 commit 5d8c80e
Show file tree
Hide file tree
Showing 9 changed files with 436 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static void layerDefinitions(EntityRenderersEvent.RegisterLayerDefinition
event.registerLayerDefinition(FlakJacketNewModel.LAYER_LOCATION, FlakJacketNewModel::createLayer);
event.registerLayerDefinition(FlakJacketModel.LAYER_LOCATION, FlakJacketModel::createLayer);
event.registerLayerDefinition(AnbuArmorModel.LAYER_LOCATION, AnbuArmorModel::createLayer);
event.registerLayerDefinition(AkatsukiCloakModel.LAYER_LOCATION, AkatsukiCloakModel::createLayer);

// Jutsu
event.registerLayerDefinition(FireballJutsuModel.LAYER_LOCATION, FireballJutsuModel::createLayer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public void onResourceManagerReload(ResourceManager resourceManager) {
.setArmorModel(new AnbuArmorModel(modelSet.bakeLayer(AnbuArmorModel.LAYER_LOCATION)))
.setArmorTexture("textures/models/armor/anbu_armor.png");

((NarutoArmorItem) NarutoItems.AKATSUKI_CLOAK.get())
.setArmorModel(new AkatsukiCloakModel(modelSet.bakeLayer(AkatsukiCloakModel.LAYER_LOCATION)))
.setArmorTexture("textures/models/armor/akatsuki_cloak.png");

setHeadbandRenderer(modelSet, NarutoItems.HEADBAND_BLUE, "textures/models/armor/headband/headband_blue_blank.png");
setHeadbandRenderer(modelSet, NarutoItems.HEADBAND_BLACK, "textures/models/armor/headband/headband_black_blank.png");
setHeadbandRenderer(modelSet, NarutoItems.HEADBAND_RED, "textures/models/armor/headband/headband_red_blank.png");
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/sekwah/narutomod/item/NarutoItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public ItemStack makeIcon() {
public static final RegistryObject<Item> ANBU_ARMOR = ITEMS.register("anbu_armor", ()
-> new NarutoArmorItem(NarutoArmorMaterial.ANBU_MAT, EquipmentSlot.CHEST, new Item.Properties().tab(NINJA_ARMOR)));

public static final RegistryObject<Item> AKATSUKI_CLOAK = ITEMS.register("akatsuki_cloak", ()
-> new NarutoArmorItem(NarutoArmorMaterial.CHARACTER_CLOTHES, EquipmentSlot.CHEST, new Item.Properties().tab(NINJA_ARMOR)));

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)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ 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),
HEADBAND("headband", 35, new int[]{2, 8, 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),
;

private static final int[] HEALTH_PER_SLOT = new int[]{13, 15, 16, 11};
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/narutomod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"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",
"narutomod.subtitle.kunai_thud": "Projectile Thud",
"narutomod.subtitle.needle_hit": "Needle Hit",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "narutomod:items/armor/akatsuki_cloak"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 5d8c80e

Please sign in to comment.