From 6c1d78469178cd0e4d64170fbfd883d9b0a332b9 Mon Sep 17 00:00:00 2001 From: Waterpicker Date: Sun, 31 Dec 2017 21:22:01 -0600 Subject: [PATCH] Added Woven World Thread Armor --- .../dimdev/dimdoors/client/ModelManager.java | 4 +++ .../items/ItemWovenWorldThreadArmor.java | 27 ++++++++++++++++++ .../dimdoors/shared/items/ModItems.java | 13 ++++++++- .../resources/assets/dimdoors/lang/en_US.lang | 5 ++++ .../models/item/boots_woven_world_thread.json | 6 ++++ .../item/chestplate_woven_world_thread.json | 6 ++++ .../item/helmet_woven_world_thread.json | 6 ++++ .../item/leggings_woven_world_thread.json | 6 ++++ .../items/boots_woven_world_thread.png | Bin 0 -> 329 bytes .../items/chestplate_woven_world_thread.png | Bin 0 -> 403 bytes .../items/helmet_woven_world_thread.png | Bin 0 -> 291 bytes .../items/leggings_woven_world_thread.png | Bin 0 -> 347 bytes .../armor/woven_world_thread_layer_1.png | Bin 0 -> 766 bytes .../armor/woven_world_thread_layer_2.png | Bin 0 -> 420 bytes 14 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 src/main/java/org/dimdev/dimdoors/shared/items/ItemWovenWorldThreadArmor.java create mode 100644 src/main/resources/assets/dimdoors/models/item/boots_woven_world_thread.json create mode 100644 src/main/resources/assets/dimdoors/models/item/chestplate_woven_world_thread.json create mode 100644 src/main/resources/assets/dimdoors/models/item/helmet_woven_world_thread.json create mode 100644 src/main/resources/assets/dimdoors/models/item/leggings_woven_world_thread.json create mode 100644 src/main/resources/assets/dimdoors/textures/items/boots_woven_world_thread.png create mode 100644 src/main/resources/assets/dimdoors/textures/items/chestplate_woven_world_thread.png create mode 100644 src/main/resources/assets/dimdoors/textures/items/helmet_woven_world_thread.png create mode 100644 src/main/resources/assets/dimdoors/textures/items/leggings_woven_world_thread.png create mode 100644 src/main/resources/assets/dimdoors/textures/models/armor/woven_world_thread_layer_1.png create mode 100644 src/main/resources/assets/dimdoors/textures/models/armor/woven_world_thread_layer_2.png diff --git a/src/main/java/org/dimdev/dimdoors/client/ModelManager.java b/src/main/java/org/dimdev/dimdoors/client/ModelManager.java index 24fad0ce..1b8d2850 100644 --- a/src/main/java/org/dimdev/dimdoors/client/ModelManager.java +++ b/src/main/java/org/dimdev/dimdoors/client/ModelManager.java @@ -44,6 +44,10 @@ public final class ModelManager { register(ModItems.RIFT_BLADE); register(ModItems.RIFT_REMOVER); register(ModItems.RIFT_SIGNATURE); + register(ModItems.BOOTS_WOVEN_WORLD_THREAD); + register(ModItems.CHESTPLATE_WOVEN_WORLD_THREAD); + register(ModItems.HELMET_WOVEN_WORLD_THREAD); + register(ModItems.LEGGINGS_WOVEN_WORLD_THREAD); } public static void registerModelVariants() { diff --git a/src/main/java/org/dimdev/dimdoors/shared/items/ItemWovenWorldThreadArmor.java b/src/main/java/org/dimdev/dimdoors/shared/items/ItemWovenWorldThreadArmor.java new file mode 100644 index 00000000..6dc82064 --- /dev/null +++ b/src/main/java/org/dimdev/dimdoors/shared/items/ItemWovenWorldThreadArmor.java @@ -0,0 +1,27 @@ +package org.dimdev.dimdoors.shared.items; + +import net.minecraft.init.SoundEvents; +import net.minecraft.inventory.EntityEquipmentSlot; +import net.minecraft.item.ItemArmor; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.EnumHelper; +import org.dimdev.dimdoors.DimDoors; + +public class ItemWovenWorldThreadArmor extends ItemArmor { + public static final ArmorMaterial WOVEN_WORLD_THREAD = EnumHelper.addArmorMaterial( + "woven_world_thread", + DimDoors.MODID + ":woven_world_thread", + 20, + new int[] {2, 3, 4, 5}, + 20, + SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, + 1.0f) + .setRepairItem(new ItemStack(ModItems.WORLD_THREAD)); + + public ItemWovenWorldThreadArmor(String name, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) { + super(WOVEN_WORLD_THREAD, renderIndexIn, equipmentSlotIn); + setUnlocalizedName(name); + setRegistryName(DimDoors.MODID, name); + setCreativeTab(DimDoors.DIM_DOORS_CREATIVE_TAB); + } +} diff --git a/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java b/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java index bf10d250..ffe7a928 100644 --- a/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java +++ b/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java @@ -1,5 +1,6 @@ package org.dimdev.dimdoors.shared.items; +import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.event.RegistryEvent; @@ -29,6 +30,12 @@ public final class ModItems { public static final ItemRiftRemover RIFT_REMOVER = new ItemRiftRemover(); public static final ItemRiftSignature RIFT_SIGNATURE = new ItemRiftSignature(); + // Armors + public static ItemWovenWorldThreadArmor HELMET_WOVEN_WORLD_THREAD = new ItemWovenWorldThreadArmor("helmet_woven_world_thread", 1, EntityEquipmentSlot.HEAD); + public static ItemWovenWorldThreadArmor CHESTPLATE_WOVEN_WORLD_THREAD = new ItemWovenWorldThreadArmor("chestplate_woven_world_thread", 1, EntityEquipmentSlot.CHEST); + public static ItemWovenWorldThreadArmor LEGGINGS_WOVEN_WORLD_THREAD = new ItemWovenWorldThreadArmor("leggings_woven_world_thread", 2, EntityEquipmentSlot.LEGS); + public static ItemWovenWorldThreadArmor BOOTS_WOVEN_WORLD_THREAD = new ItemWovenWorldThreadArmor("boots_woven_world_thread", 1, EntityEquipmentSlot.FEET); + // ItemBlocks public static final ItemFabric FABRIC = new ItemFabric(); public static final ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood(); @@ -48,7 +55,11 @@ public final class ModItems { RIFT_CONNECTION_TOOL, RIFT_BLADE, RIFT_REMOVER, - RIFT_SIGNATURE); + RIFT_SIGNATURE, + HELMET_WOVEN_WORLD_THREAD, + CHESTPLATE_WOVEN_WORLD_THREAD, + LEGGINGS_WOVEN_WORLD_THREAD, + BOOTS_WOVEN_WORLD_THREAD); // ItemBlocks event.getRegistry().registerAll( diff --git a/src/main/resources/assets/dimdoors/lang/en_US.lang b/src/main/resources/assets/dimdoors/lang/en_US.lang index 23841681..c9739ab7 100644 --- a/src/main/resources/assets/dimdoors/lang/en_US.lang +++ b/src/main/resources/assets/dimdoors/lang/en_US.lang @@ -38,6 +38,11 @@ item.rift_blade.name=Rift Blade item.world_thread.name=World Thread item.stable_fabric.name=Stable Fabric +item.boots_woven_world_thread.name=Woven World Thread Boots +item.helmet_woven_world_thread.name=Woven World Thread Helmet +item.leggings_woven_world_thread.name=Woven World Thread Leggings +item.chestplate_woven_world_thread.name=Woven World Thread Chestplate + info.rift_key.bound=Bound info.rift_key.unbound=Unbound diff --git a/src/main/resources/assets/dimdoors/models/item/boots_woven_world_thread.json b/src/main/resources/assets/dimdoors/models/item/boots_woven_world_thread.json new file mode 100644 index 00000000..6ab2567f --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/boots_woven_world_thread.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "dimdoors:items/boots_woven_world_thread" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/dimdoors/models/item/chestplate_woven_world_thread.json b/src/main/resources/assets/dimdoors/models/item/chestplate_woven_world_thread.json new file mode 100644 index 00000000..eb71f4aa --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/chestplate_woven_world_thread.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "dimdoors:items/chestplate_woven_world_thread" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/dimdoors/models/item/helmet_woven_world_thread.json b/src/main/resources/assets/dimdoors/models/item/helmet_woven_world_thread.json new file mode 100644 index 00000000..676ad3ca --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/helmet_woven_world_thread.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "dimdoors:items/helmet_woven_world_thread" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/dimdoors/models/item/leggings_woven_world_thread.json b/src/main/resources/assets/dimdoors/models/item/leggings_woven_world_thread.json new file mode 100644 index 00000000..c2a3a8f9 --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/leggings_woven_world_thread.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "dimdoors:items/leggings_woven_world_thread" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/dimdoors/textures/items/boots_woven_world_thread.png b/src/main/resources/assets/dimdoors/textures/items/boots_woven_world_thread.png new file mode 100644 index 0000000000000000000000000000000000000000..f38074ee6de39a09df2357e50e9e4aa44f3b2c36 GIT binary patch literal 329 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdBO@~x<6JF^oj{>$o-U3d7N@UHI=kwSfk?}KiF&TB zdT$naIfU=~f4StT*TNN3JPt~~$ldcKPvwT%qG*1WLq2Ke=BRx5s@irSZ@G-a_v+^b zdpgp2685jJnsqTC=6c&MGe>nz literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/dimdoors/textures/items/chestplate_woven_world_thread.png b/src/main/resources/assets/dimdoors/textures/items/chestplate_woven_world_thread.png new file mode 100644 index 0000000000000000000000000000000000000000..e20d32e795a33fea53987b2864c037e033f0c7c4 GIT binary patch literal 403 zcmV;E0c`$>P)!Y~YkKV{NRggXgjTHyU3kO{P42Rm^O;52`|^-!HWvR1n*3I1K|Kgw9w zCeHI!sj(_`k(cy19;z5ZM_KK0&f(md)9ES+oWE=U2>u4Z`CrUP xP18^m#dG&}to8D%f^n1avGo1pD#y%!7T*cPnpoH$S$_Zk002ovPDHLkV1g3&s0082 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/dimdoors/textures/items/helmet_woven_world_thread.png b/src/main/resources/assets/dimdoors/textures/items/helmet_woven_world_thread.png new file mode 100644 index 0000000000000000000000000000000000000000..6dd725bbe3e964cb2ae1ff9e700d48f683c818f4 GIT binary patch literal 291 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdBO^19xcw5XJfP49PZ!4!i_>o>Zsa?xz~ge>)0^j% zz)I(~fB*j*x+DlP#m+M6FnJrba=XI0Z-=cK=8MbDJXW$Zlf!V?A#u(xf(bs;+aI!} zwRIeb+I=;sOZ3U6{ah?FTwWiZj>-Zz$i}IW%7|9(qcIvpw<~vpE;%)ut&lap}BxPQ%+144E gnl^R+*Z)j%8X5kt4E@8Dfo^B;boFyt=akR{0F~Zo0{{R3 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/dimdoors/textures/items/leggings_woven_world_thread.png b/src/main/resources/assets/dimdoors/textures/items/leggings_woven_world_thread.png new file mode 100644 index 0000000000000000000000000000000000000000..b424c59866da1a202ea7f2f12c03fc98a03df52b GIT binary patch literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdBO^1r*#yhSzkxz8JY5_^EKVPt`LqkNJpD6DUJr{NR>yn}gL5D2eIT)S)1idbnd#}DN_q9>jM#E(( z`G)5|`|c}#u=jsSK=S*u3!C@eR=T9$!(n)=?>)<&?-lQN9(_Ki-+M*c{WH5QtZy+h oJde4#zopr03Fec^8f$< literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/dimdoors/textures/models/armor/woven_world_thread_layer_1.png b/src/main/resources/assets/dimdoors/textures/models/armor/woven_world_thread_layer_1.png new file mode 100644 index 0000000000000000000000000000000000000000..04b271774e6dfc8bd7d1e5a06b2f057ce457b660 GIT binary patch literal 766 zcmVVGd000McNliru;sF5z1SmlpjavW!0*gsR zK~!ko?O45z!!QUYRVKVTbJzI6?y34<$=W$y!|Ge?h*JMv+U9y!q$(jsmH7;xfes3y zwRX96Yi$Q_ET@tI5&dZGU8LvA`FwT&0N3l)_)jw;f>P?wg3x~=fXTY9;dS!Q?h^t3 zDFR}Q{)qshKXKA2=@8K!xd9?Nw2tU=As$Hand?VKSHFkkp1po}1Tby zdPf}l25c=SbHt7V3bE*5QT7(y`Nn{dLD3e|NrRyoNA1eQbneJ zr3}OHu>G8B4H5Cz06;_!+fQF(w65#j6?mjPazDHCIn_%L(U-8hwDbhwfA^kri6eFc zptW|xFaQ9+vMgJUF3SSe+AnW&QA%y6ma><;6MBW1eXU+<)RA}|$4xbCPfCOjTpd?IwawS3y_AzEp0o_mB_Nc&jsbMo_!@$@tz8at7) z9qU2n;!JQDhMSyh)oZForBw8!OZNU68xtuCi4?tS)w2_!no~*Xeg?qBAmSwL8DKnQ zI{anMpdfpRr>`sfBSuDMR#AqG58Mn4jE0^rjv*QM-i90YwHWZ2sB2wT ztAFtC|BSQp3%+iNVLkP8j*Q?bFP(XLO`RKz=Se8FAAVS1A;Slu{0}b>cjAaXcfC~B zZYM+hwWOYj%QCB4n9eXUD5TZ7FuG+2x_G$Ed&qcZPwY*G18Z%QQqsB%g#<5d(rIU( z^OWJ;T_y$&hRzcceYE%QW!my^>xVTQ#)3jrm$D799z8^n9tybs;#OJN;Ss z$^fbVqSw0K+jhmzW6rw%#4aTBa8BoY+w`89En9Q^zZP&jJbGsTvFCH6U!9ykzw>?V zRlc^D7dq$JR-AQSQ{NM%9r5w5Xn=w2+kGcB&dk63`XS?9(GSei?y~Id=)1TE7@iEC Lu6{1-oD!M<6<)M4 literal 0 HcmV?d00001