From 3cf9c53a39ea1b196858bca05eda2e18111ef419 Mon Sep 17 00:00:00 2001 From: Me <135455255+IcarussOne@users.noreply.github.com> Date: Wed, 28 Aug 2024 03:06:05 -0500 Subject: [PATCH] Start runic baubles Recipes soon... --- build.gradle | 1 + .../crimsonrevelations/init/CRItems.java | 15 ++++++- .../item/baubles/CRItemRunicBauble.java | 37 ++++++++++++++++++ .../assets/crimsonrevelations/lang/en_us.lang | 3 ++ .../models/item/runic_amulet.json | 6 +++ .../models/item/runic_girdle.json | 6 +++ .../models/item/runic_ring.json | 6 +++ .../textures/items/runic_amulet.png | Bin 0 -> 963 bytes .../textures/items/runic_amulet.png.mcmeta | 5 +++ .../textures/items/runic_girdle.png | Bin 0 -> 943 bytes .../textures/items/runic_girdle.png.mcmeta | 5 +++ .../textures/items/runic_ring.png | Bin 0 -> 747 bytes .../textures/items/runic_ring.png.mcmeta | 5 +++ 13 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 src/main/java/mod/icarus/crimsonrevelations/item/baubles/CRItemRunicBauble.java create mode 100644 src/main/resources/assets/crimsonrevelations/models/item/runic_amulet.json create mode 100644 src/main/resources/assets/crimsonrevelations/models/item/runic_girdle.json create mode 100644 src/main/resources/assets/crimsonrevelations/models/item/runic_ring.json create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png.mcmeta create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png.mcmeta create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png create mode 100644 src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png.mcmeta diff --git a/build.gradle b/build.gradle index 0b28214..1de3be0 100644 --- a/build.gradle +++ b/build.gradle @@ -111,6 +111,7 @@ dependencies { // Example of deobfuscating a dependency // implementation rfg.deobf('curse.maven:had-enough-items-557549:4543375') implementation rfg.deobf('curse.maven:thaumcraft-223628:2629023') + implementation rfg.deobf('curse.maven:baubles-227083:2518667') implementation rfg.deobf('curse.maven:thaumic-augmentation-319441:5129455') implementation 'curse.maven:just-enough-resources-jer-240630:4440936' runtimeOnly 'curse.maven:jei-238222:4538010' diff --git a/src/main/java/mod/icarus/crimsonrevelations/init/CRItems.java b/src/main/java/mod/icarus/crimsonrevelations/init/CRItems.java index df90755..ebcf923 100644 --- a/src/main/java/mod/icarus/crimsonrevelations/init/CRItems.java +++ b/src/main/java/mod/icarus/crimsonrevelations/init/CRItems.java @@ -5,6 +5,7 @@ import mod.icarus.crimsonrevelations.item.CRItemArrow; import mod.icarus.crimsonrevelations.item.CRItemSword; import mod.icarus.crimsonrevelations.item.armor.ItemCultistArcherArmor; +import mod.icarus.crimsonrevelations.item.baubles.CRItemRunicBauble; import mod.icarus.crimsonrevelations.item.weapons.ItemBoneBow; import net.minecraft.block.BlockDoor; import net.minecraft.block.BlockSlab; @@ -31,6 +32,8 @@ import javax.annotation.Nonnull; +import baubles.api.BaubleType; + @SuppressWarnings("deprecation") @EventBusSubscriber(modid = NewCrimsonRevelations.MODID) @GameRegistry.ObjectHolder(NewCrimsonRevelations.MODID) @@ -63,6 +66,12 @@ public class CRItems { public static Item perditioArrow; @GameRegistry.ObjectHolder("terra_arrow") public static Item terraArrow; + @GameRegistry.ObjectHolder("runic_amulet") + public static Item runicAmulet; + @GameRegistry.ObjectHolder("runic_girdle") + public static Item runicGirdle; + @GameRegistry.ObjectHolder("runic_ring") + public static Item runicRing; public static ArmorMaterial ARMOR_CULTIST_ARCHER = EnumHelper.addArmorMaterial("CULTIST_ARCHER", "CULTIST_ARCHER", 17, new int[]{2, 5, 5, 2}, 13, SoundEvents.ITEM_ARMOR_EQUIP_CHAIN, 0.0F).setRepairItem(new ItemStack(crimsonPlate)); @@ -88,7 +97,11 @@ public static void registerItems(@Nonnull final RegistryEvent.Register eve CRRegistry.setup(new CRItemArrow(EnumRarity.UNCOMMON), "ignis_arrow"), CRRegistry.setup(new CRItemArrow(EnumRarity.UNCOMMON), "ordo_arrow"), CRRegistry.setup(new CRItemArrow(EnumRarity.UNCOMMON), "perditio_arrow"), - CRRegistry.setup(new CRItemArrow(EnumRarity.UNCOMMON), "terra_arrow") + CRRegistry.setup(new CRItemArrow(EnumRarity.UNCOMMON), "terra_arrow"), + + CRRegistry.setup(new CRItemRunicBauble(BaubleType.RING, EnumRarity.UNCOMMON, 5), "runic_ring"), + CRRegistry.setup(new CRItemRunicBauble(BaubleType.AMULET, EnumRarity.UNCOMMON, 8), "runic_amulet"), + CRRegistry.setup(new CRItemRunicBauble(BaubleType.BELT, EnumRarity.UNCOMMON, 10), "runic_girdle") ); // Item Blocks diff --git a/src/main/java/mod/icarus/crimsonrevelations/item/baubles/CRItemRunicBauble.java b/src/main/java/mod/icarus/crimsonrevelations/item/baubles/CRItemRunicBauble.java new file mode 100644 index 0000000..f526ed2 --- /dev/null +++ b/src/main/java/mod/icarus/crimsonrevelations/item/baubles/CRItemRunicBauble.java @@ -0,0 +1,37 @@ +package mod.icarus.crimsonrevelations.item.baubles; + +import baubles.api.BaubleType; +import baubles.api.IBauble; +import mod.icarus.crimsonrevelations.item.CRItem; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.EnumRarity; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagByte; +import net.minecraft.util.NonNullList; + +public class CRItemRunicBauble extends CRItem implements IBauble { + BaubleType type; + EnumRarity rarity; + int amount; + + public CRItemRunicBauble(BaubleType type, EnumRarity rarity, int amount) { + super(rarity); + this.maxStackSize = 1; + this.type = type; + this.rarity = rarity; + this.amount = amount; + } + + @Override + public BaubleType getBaubleType(ItemStack stack) { + return type; + } + + public void getSubItems(CreativeTabs tab, NonNullList items) { + if (this.isInCreativeTab(tab)) { + ItemStack stack = new ItemStack(this); + stack.setTagInfo("TC.RUNIC", new NBTTagByte((byte) amount)); + items.add(stack); + } + } +} diff --git a/src/main/resources/assets/crimsonrevelations/lang/en_us.lang b/src/main/resources/assets/crimsonrevelations/lang/en_us.lang index dc8c0f0..36ab987 100644 --- a/src/main/resources/assets/crimsonrevelations/lang/en_us.lang +++ b/src/main/resources/assets/crimsonrevelations/lang/en_us.lang @@ -21,6 +21,9 @@ item.crimsonrevelations.embellished_crimson_fabric.name=Embellished Crimson Fabr item.crimsonrevelations.ignis_arrow.name=Ignis Arrow item.crimsonrevelations.ordo_arrow.name=Ordo Arrow item.crimsonrevelations.perditio_arrow.name=Perditio Arrow +item.crimsonrevelations.runic_amulet.name=Amulet of Runic Shielding +item.crimsonrevelations.runic_girdle.name=Belt of Runic Shielding +item.crimsonrevelations.runic_ring.name=Ring of Runic Shielding item.crimsonrevelations.terra_arrow.name=Terra Arrow # Research diff --git a/src/main/resources/assets/crimsonrevelations/models/item/runic_amulet.json b/src/main/resources/assets/crimsonrevelations/models/item/runic_amulet.json new file mode 100644 index 0000000..c6611af --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/models/item/runic_amulet.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "crimsonrevelations:items/runic_amulet" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/crimsonrevelations/models/item/runic_girdle.json b/src/main/resources/assets/crimsonrevelations/models/item/runic_girdle.json new file mode 100644 index 0000000..07fdf78 --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/models/item/runic_girdle.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "crimsonrevelations:items/runic_girdle" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/crimsonrevelations/models/item/runic_ring.json b/src/main/resources/assets/crimsonrevelations/models/item/runic_ring.json new file mode 100644 index 0000000..888bcec --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/models/item/runic_ring.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "crimsonrevelations:items/runic_ring" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png b/src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png new file mode 100644 index 0000000000000000000000000000000000000000..c95dc657444e384bbf0633ffe1c38bc05c09731f GIT binary patch literal 963 zcmV;!13dhRP)WdKcYZXh!;AWdO%ATls9G$1iFIxsUjGcX`4FfuSOF;oinHwi000SaNLh0L03N{r03N{s!)a7g00004XF*Lt006O%3;baP0009T zNkl@8Iyx((!$EhN=isbAb%$JOYYD%4NI@G6r`OmnrP%M_BPzJf~B-1 z38in4Q2RM0nJ)y>!wfmCUo7@9VEuK}{2&|oyQK)0GGG|sLkEYeRd(1pz+wmVdOekv zmNNWa#{29=MMYSyY{8|69mrg_2&8brj$q^)9BArx;9|KA<;@(!cdJ&b!JCN20x}xM zjNHX%cg7>NU=|9CP9o>H44Ky@W1Tsi6T20;7j-4sII}~FBS~uLv~nz5nGD1k5bCOO zjtpYszEf}?zOk{9(dl%)8O)S32$3=1W`sktvym&u=5Y~y1wI}?(FTbbYy48O<8l%>E`0xyfH1*(d1Ba?E z4ma=S;aWise%i(-;11j~1z!Bz_v%<^Vz8>?ah~*b$*gfyrd@ zXvf9HS`H)|XimdE=PdYyctR=bQ8LE~$_?RV{*-+lk1 z0z8;v9%LSl#>tBYoIW@?4?N<}+?J=L)HoTHod=QS5YhJva@9)b*3f*|?622Vy-3Fkq}Z70H( l^da}91z+2L1bFZl{Q~IHFyMcyAn^bI002ovPDHLkV1j7`v1$MS literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png.mcmeta b/src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png.mcmeta new file mode 100644 index 0000000..7e77c64 --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png.mcmeta @@ -0,0 +1,5 @@ +{ + "animation": { + "frametime": 2 + } +} \ No newline at end of file diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png b/src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png new file mode 100644 index 0000000000000000000000000000000000000000..518ed919d4deaa3813c3b5cc11771ecaa80a872c GIT binary patch literal 943 zcmV;g15o^lP)WdKcYZXh!;AWdO%ATls9G$1iFIxsRiGB_YBFfuSOA>6H300007bV*G` z2i^l85)(N6b!7Aa000SaNLh0L03N{r03N{s!)a7g00004XF*Lt006O%3;baP00099 zNklFNzRYtBumz<>u854b#<_UMG&Vj*-f{OZNCn^-8HxG0u0h=mFik;Fv8l`D-#>H^H<603)Bj=@>6TVRA`~}N z9M9*@p%!VdE!j%jHiJMUI6aUdVtd&4 zwMz!ExFU}qe1*bHnS8ht$zy$c zLUEDl1&86kZsFEk;Z-bAc3e@nJaKmTcXE{yDJkfCbtfXG$Rz`jR8T|>#n%`ao1(T5 zEDNh@+v4u@9P_S=oDE2@sK0OEdz2~*Emz;$$J?JivpOE+vX|Im910t*GEoiI#)FB8R$2z~biUu@!DFi? z57s9SMnCDLFuun3!5?G&q&hxCpT9}&gTuUjcJu0ZkTt(x$L%P(K1w`W4tXF}&x6u% zFZD}N*{onV2WZ?2OCMNTXJeZrEyT^l-7U>@z{P|fQ$;LT4-+E$r@Hd`dfeB2G R%Ju*N002ovPDHLkV1i<+wP^qV literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png.mcmeta b/src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png.mcmeta new file mode 100644 index 0000000..7e77c64 --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png.mcmeta @@ -0,0 +1,5 @@ +{ + "animation": { + "frametime": 2 + } +} \ No newline at end of file diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png b/src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png new file mode 100644 index 0000000000000000000000000000000000000000..df99614baa203c74564101ea1106f8d8f73d7bee GIT binary patch literal 747 zcmVWdKcYZXh!;AWdO%ATls9G$1iFIxsjoFf|}6FfuSO6%1P=00007bV*G` z2i^l85)UTf4Ft*n000SaNLh0L03N{r03N{s!)a7g00004XF*Lt006O%3;baP0006) zNkl`DxnA9>cT$vL$ zS{^{bXn8|dwLg; zEMwrmQ_b+~5+bn@T^^h+{l~zt>nsD$`6~=b*JMdA59U1h$Y7Fo8rVKyWH>v)f3!S+ zg3;r5```cnf4A!Y^Dbu6%L7)a4Ga%C za~Zy$ZD4qL`!8Ic=<;A~(LV;pcMlji-(F)#-o-?EdC-3N4MULUJ_eI=CWfO6^G3@9 dC>X}&0RZ>;aT)F3zr6qe002ovPDHLkV1kCtOIZK_ literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png.mcmeta b/src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png.mcmeta new file mode 100644 index 0000000..7e77c64 --- /dev/null +++ b/src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png.mcmeta @@ -0,0 +1,5 @@ +{ + "animation": { + "frametime": 2 + } +} \ No newline at end of file