From b2716b8d29f423f501fc609f1c7c0206897d22f9 Mon Sep 17 00:00:00 2001 From: Jeremy Diamond Date: Wed, 26 Mar 2014 12:54:25 -0700 Subject: [PATCH] MY HANDS ARE TYPING WORDS Added: Lord of Hellfire, Transcendent Blood Orb, Totem Wand, Livingwood Wand, and Manasteel Caps. Changed recipe for Blood Wand. --- assets/forbidden/lang/en_US.lang | 38 ++++- assets/forbidden/textures/items/divineorb.png | Bin 0 -> 512 bytes .../textures/items/nuggetmanasteel.png | Bin 0 -> 320 bytes .../textures/items/wand_cap_manasteel.png | Bin 0 -> 598 bytes .../items/wand_cap_manasteel.png.mcmeta | 11 ++ .../items/wand_cap_manasteel_inert.png | Bin 0 -> 396 bytes .../textures/items/wand_rod_blood.png | Bin 314 -> 306 bytes .../textures/items/wand_rod_blood_inert.png | Bin 0 -> 299 bytes .../textures/items/wand_rod_infernal.png | Bin 319 -> 267 bytes .../textures/items/wand_rod_livingwood.png | Bin 0 -> 345 bytes .../items/wand_rod_livingwood_inert.png | Bin 0 -> 330 bytes .../textures/items/wand_rod_soul.png | Bin 379 -> 311 bytes .../textures/items/wand_rod_tainted.png | Bin 346 -> 347 bytes .../textures/items/wand_rod_totem.png | Bin 0 -> 347 bytes .../textures/items/wand_rod_witchwood.png | Bin 362 -> 346 bytes .../forbidden/textures/misc/infernalism.png | Bin 1565 -> 0 bytes assets/forbidden/textures/misc/taintorgan.png | Bin 1567 -> 0 bytes .../textures/models/wand_cap_manasteel.png | Bin 0 -> 364 bytes .../textures/models/wand_rod_livingwood.png | Bin 0 -> 880 bytes .../textures/models/wand_rod_totem.png | Bin 0 -> 1973 bytes .../textures/models/wand_rod_witchwoodhd.png | Bin 587 -> 0 bytes src/com/spiteful/forbidden/Compat.java | 140 +++++++++++++++--- src/com/spiteful/forbidden/Config.java | 2 + src/com/spiteful/forbidden/Forbidden.java | 9 +- .../spiteful/forbidden/ForbiddenRecipes.java | 64 ++++---- .../spiteful/forbidden/ForbiddenResearch.java | 26 ++-- src/com/spiteful/forbidden/WandOverlord.java | 46 ++++++ .../forbidden/blocks/BlockWrathCage.java | 10 -- .../forbidden/items/ForbiddenItems.java | 31 +++- .../forbidden/items/ItemDivineOrb.java | 28 ++++ .../forbidden/items/ItemResource.java | 7 +- .../forbidden/items/ItemWandCores.java | 89 ----------- .../items/{ => wands}/BloodWandUpdate.java | 2 +- .../items/{ => wands}/CreativeWandUpdate.java | 2 +- .../items/{ => wands}/DarkWandCap.java | 2 +- .../items/{ => wands}/InfernalWandUpdate.java | 2 +- .../items/{ => wands}/ItemWandCaps.java | 4 +- .../forbidden/items/wands/ItemWandCores.java | 103 +++++++++++++ .../items/{ => wands}/ManaWandUpdate.java | 2 +- .../items/{ => wands}/SoulWandUpdate.java | 2 +- .../items/{ => wands}/TaintedWandUpdate.java | 2 +- .../items/wands/TotemWandUpdate.java | 59 ++++++++ .../items/wands/YandereWandUpdate.java | 50 +++++++ src/mcmod.info | 2 +- 44 files changed, 546 insertions(+), 187 deletions(-) create mode 100644 assets/forbidden/textures/items/divineorb.png create mode 100644 assets/forbidden/textures/items/nuggetmanasteel.png create mode 100644 assets/forbidden/textures/items/wand_cap_manasteel.png create mode 100644 assets/forbidden/textures/items/wand_cap_manasteel.png.mcmeta create mode 100644 assets/forbidden/textures/items/wand_cap_manasteel_inert.png create mode 100644 assets/forbidden/textures/items/wand_rod_blood_inert.png create mode 100644 assets/forbidden/textures/items/wand_rod_livingwood.png create mode 100644 assets/forbidden/textures/items/wand_rod_livingwood_inert.png create mode 100644 assets/forbidden/textures/items/wand_rod_totem.png delete mode 100644 assets/forbidden/textures/misc/infernalism.png delete mode 100644 assets/forbidden/textures/misc/taintorgan.png create mode 100644 assets/forbidden/textures/models/wand_cap_manasteel.png create mode 100644 assets/forbidden/textures/models/wand_rod_livingwood.png create mode 100644 assets/forbidden/textures/models/wand_rod_totem.png delete mode 100644 assets/forbidden/textures/models/wand_rod_witchwoodhd.png create mode 100644 src/com/spiteful/forbidden/WandOverlord.java create mode 100644 src/com/spiteful/forbidden/items/ItemDivineOrb.java delete mode 100644 src/com/spiteful/forbidden/items/ItemWandCores.java rename src/com/spiteful/forbidden/items/{ => wands}/BloodWandUpdate.java (98%) rename src/com/spiteful/forbidden/items/{ => wands}/CreativeWandUpdate.java (95%) rename src/com/spiteful/forbidden/items/{ => wands}/DarkWandCap.java (95%) rename src/com/spiteful/forbidden/items/{ => wands}/InfernalWandUpdate.java (96%) rename src/com/spiteful/forbidden/items/{ => wands}/ItemWandCaps.java (91%) create mode 100644 src/com/spiteful/forbidden/items/wands/ItemWandCores.java rename src/com/spiteful/forbidden/items/{ => wands}/ManaWandUpdate.java (96%) rename src/com/spiteful/forbidden/items/{ => wands}/SoulWandUpdate.java (98%) rename src/com/spiteful/forbidden/items/{ => wands}/TaintedWandUpdate.java (95%) create mode 100644 src/com/spiteful/forbidden/items/wands/TotemWandUpdate.java create mode 100644 src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java diff --git a/assets/forbidden/lang/en_US.lang b/assets/forbidden/lang/en_US.lang index 62eba51..c707c42 100644 --- a/assets/forbidden/lang/en_US.lang +++ b/assets/forbidden/lang/en_US.lang @@ -28,12 +28,14 @@ item.MorphShovel.name=Chameleon Shovel item.MorphAxe.name=Chameleon Axe item.FMResource.0.name=Emerald Fragment item.FMResource.1.name=Shadow Ink +item.FMResource.2.name=Manasteel Nugget item.MobCrystalEmpty.name=Blank Imprinting Crystal item.MobCrystal.name=Imprinted Crystal item.DiabolistFork.name=Diabolist Fork item.DiabolistSpork.name=Spork of Doom item.GluttonyShard.name=Gluttony Shard item.Bloodwell.name=Bloody Scrivener's Tools +item.DivineOrb.name=Transcendent Blood Orb item.Crystalwell.name=Crystal Scribing Tools item.RidingCrop.name=Riding Crop # @@ -44,18 +46,27 @@ item.Wand.neutronium.rod=Cosmic Neutronium item.Wand.soul.rod=Eldritch item.Wand.blood.rod=Blood item.Wand.witchwood.rod=Witchwood +item.Wand.totem.rod=Totem +item.Wand.livingwood.rod=Livingwood item.Wand.orichalcum.cap=Orichalcum Studded item.Wand.alchemical.cap=Alchemically Crowned -item.Wand.vinteum.cap=Vinteum Bound +item.Wand.vinteum.cap=Vinteum Bossed item.Wand.soul.cap=Ender Shielded +item.Wand.manasteel.cap=Manasteel Entwined item.WandCores.tainted.name=Tainted Rod item.WandCores.infernal.name=Infernal Rod item.WandCores.soul.name=Eldritch Rod -item.WandCores.blood.name=Bloody Rod +item.WandCores.blood.name=Blood Rod item.WandCores.witchwood.name=Witchwood Rod +item.WandCores.totem.name=Totemic Rod +item.WandCores.blood_inert.name=Inert Blood Rod +item.WandCores.livingwood.name=Livingwood Rod +item.WandCores.livingwood_inert.name=Dormant Livingwood Rod item.WandCaps.alchemical.name=Alchemical Cap item.WandCaps.vinteum.name=Vinteum Cap item.WandCaps.soul.name=Ender Cap +item.WandCaps.manasteel.name=Manasteel Cap +item.WandCaps.manasteel_inert.name=Inert Manasteel Cap # # Blocks tile.ArcaneCake.name=Thaumic Cake @@ -114,14 +125,23 @@ forbidden.research_name.ROD_soul=Eldritch Wand Core forbidden.research_text.ROD_soul=Corrupting vis storage forbidden.research_page.ROD_soul.1=You've discovered a way to tap the energy flowing through a Player Beacon and turn it into vis. As long as you're in a dimension with an active Player Beacon attuned to yourself, the Eldritch Wand Core will slowly charge all its internal reserves, which can hold up to 100 vis.

Channeling such great amounts of energy through your soul comes at a price, however. Each point of vis creates large amounts of corruption in your soul. It's best not to rely on its recharge abilities too greatly... # -forbidden.research_name.ROD_blood=Bloody Wand Core +forbidden.research_name.ROD_blood=Blood Wand Core forbidden.research_text.ROD_blood=Alchemical vis storage forbidden.research_page.ROD_blood.1=You've created a bridge between Thaumaturgy and Alchemical Wizardry. The Blood Wand can store up to 100 vis and will gradually fill itself using Life Points.

The wand will bind itself to the first person to pick it up. As long as the rod is empty, it will try to fill itself using LP from its owner's network. If there are not enough Life Points to fuel it, it will resort to drawing health from whoever is carrying it, but this conversion is less efficient. If it has no LP to draw from and its holder falls below three hearts, the wand stops charging itself. +forbidden.research_page.ROD_blood.2=The infusion process alone isn't enough to complete a Blood Wand. Once the Inert Blood Rod has been infused, it must be imbued with life essence in a Blood Altar to be completed. # forbidden.research_name.ROD_witchwood=Witchwood Wand Core forbidden.research_text.ROD_witchwood=Mana converter forbidden.research_page.ROD_witchwood.1=By creating a wand core out of Witchwood, you've discovered a way to convert mana into Vis. The Witchwood Wand Core holds up to 100 vis and will gradually charge itself at the cost of 150 mana per point of vis.

Further research may reveal ways to lower this price. # +forbidden.research_name.ROD_totem=Totemic Wand Core +forbidden.research_text.ROD_totem=Verdant vis storage +forbidden.research_page.ROD_totem.1=Hunting down nodes for their power can be quite a pain sometimes. Perhaps there is another discipline you can tap for power...

By carving a wand core from Infused Wood and inlaying it with chlorophyllic metal, you create a wand that can draw power from plant energy. The Totemic Wand Core holds 50 vis and can draw energy from Chlorophyll Crystals in your inventory to recharge its own vis. +# +forbidden.research_name.ROD_livingwood=Livingwood Wand Core +forbidden.research_text.ROD_livingwood=Botanical vis storage +forbidden.research_page.ROD_livingwood.1=Livingwood has the fantastic ability to manipulate mana. When combined with the right reagents, it can even convert mana into vis.

The Livingwood Wand will quickly draw mana from storage items in your inventory in order to charge itself. Each point of vis costs 800 mana, but further research may ameliorate this.

The infusion process burns out the livingwood, unfortunately. Once infused, the wand rod must be charged in a mana pool in order to be awakened. +# forbidden.research_name.CAP_alchemical=Alchemical Caps forbidden.research_text.CAP_alchemical=When Thaumium isn't bloody enough forbidden.research_page.CAP_alchemical.1=You've developed a wand cap that merges Thaumaturgy and Alchemical Wizardry. Alchemical Caps are very effective at channeling Aqua, only using 80% of the normal vis cost. Unfortunately, they're less effective than Thaumium at channeling other aspects, offering only a 95% rate on everything else.

If combined with a Bloody Wand Core, Alchemical Caps discount the amount of LP consumed by the wand, costing only 900 LP per vis. The caps also cause all attacks from a blood wand to inflict Weakness. @@ -134,6 +154,10 @@ forbidden.research_name.CAP_soul=Ender Caps forbidden.research_text.CAP_soul=Protection for your soul forbidden.research_page.CAP_soul.1=You've created a wand cap that can safely channel the destructive energy of The End. Ender Caps have an 80% vis rate on Perditio, but only 95% for other aspects.

When combined with an Eldritch Wand Core, Ender Caps also reduce the amount of corruption your soul suffers from channeling vis out of the End. # +forbidden.research_name.CAP_manasteel=Manasteel Caps +forbidden.research_text.CAP_manasteel=The secret of mana +forbidden.research_page.CAP_manasteel.1=Manasteel has very useful properties when it comes to mana manipulation. When crafted into a wand cap, it offers a 90% vis rate. If combined with a Livingwood Wand, it makes the conversion process more efficient, needing only 600 mana per point of vis.

In order to be used in the creation of a wand, the Inert Manasteel Caps must be infused in a Mana Pool. +# forbidden.research_name.TRANSEMERALD=Emerald Transmutation forbidden.research_text.TRANSEMERALD=Transformation of valuables into emerald forbidden.research_page.TRANSEMERALD.1=You have discovered a way to multiply emeralds by steeping emerald fragments in lucrum harvested from other substances. @@ -190,6 +214,10 @@ forbidden.research_name.BLOODWELL=Bloody Scrivener's Tools forbidden.research_text.BLOODWELL="I'll complete this research if it kills me!" forbidden.research_page.BLOODWELL.1=There's nothing more frustrating than having to pause your research to refill your inkwell. Sometimes, you're just so desperate to complete a research you'd rather use your own blood as ink than stop to go find a refill.

The Bloody Scrivener's Tools will refill using Life Points from their owner's network, at a rate of 25 LP per point. This ability requires human warmth to activate, requiring you to remove the tools from the research table, but without having to actually leave the research area. # +forbidden.research_name.DIVINEORB=Transcendent Blood Orb +forbidden.research_text.DIVINEORB=Orb of Armok +forbidden.research_page.DIVINEORB.1=It is whispered among some Thaumaturgic circles that Ichor is actually the blood of the divine. You don't know whether this is true or not, but Ichor does seem to have an affinity with more advanced alchemical devices.

The Transcendent Blood Orb is what happens when you combine the most advanced Thaumaturgy and Alchemical Wizardry available. The infusion vastly increases the orb's carrying capacity, allowing it to hold a whopping 70,000,000 LP. What would you ever need that much LP for? +# forbidden.research_name.CRYSTALWELL=Crystal Scribing Tools forbidden.research_text.CRYSTALWELL=Arcane Research Grant forbidden.research_page.CRYSTALWELL.1=Combining elemental shards with your inkwell results in some interesting effects. The Crystal Scribing Tools seem to absorb knowledge as you use them to write. Once the well is empty of ink, you can absorb this knowledge for a small burst of research points by holding the tools in your hand and right clicking. Unfortunately, this burns the tool out and turns it back into a mundane Scribing Tool again. @@ -197,4 +225,8 @@ forbidden.research_page.CRYSTALWELL.1=Combining elemental shards with your inkwe forbidden.research_name.RIDINGCROP=Riding Crop forbidden.research_text.RIDINGCROP=Motivating Pain forbidden.research_page.RIDINGCROP.1=A riding crop is, as its name suggests, a tool used to motivate mounts to move faster. Right clicking with it in your hand while riding a horse or other mount will give the mount a quick lash of pain and cause it to move faster for a little while.

You could hit other creatures with the crop too, but what would possess you to do something like that? +# +forbidden.research_name.HELLFIRE=Lord of Hellfire +forbidden.research_text.HELLFIRE=Never get stranded again +forbidden.research_page.HELLFIRE.1=Getting stranded in the Nether is the worst. You go through all the trouble of grabbing what you need, but before you can go home, some stupid ghast decides to rain on your parade by blasting the portal shut. Sure, this can be amended by carrying a flint and steel around, but who actually walks around with those things?

You've discovered a way to use vis in your wand to light fires on certain materials. Right click with a focus-less wand in your hand on the top of netherrack or obsidian to light a flame using some Ignis from your wand. # \ No newline at end of file diff --git a/assets/forbidden/textures/items/divineorb.png b/assets/forbidden/textures/items/divineorb.png new file mode 100644 index 0000000000000000000000000000000000000000..57752c8cfcc1d7a86d91f6ce168d02dba59cf15a GIT binary patch literal 512 zcmV+b0{{JqP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf5&!@T5&_cPe*6Fc00(qQO+^RY2@Vc6 z5oU=jo&W#<8gxZibW?9;ba!ELWdKlNX>N2bPDNB8b~7$DE-^7j^FlWO00CS{L_t(I zPlc0BD@0)w#~(8`bH}~nGbomJQp$puaZs0000!lvI6;>1s;*b z3=DDyK$uZbZ`*dDAbW|YuPggqWu%R(iTPhFJI~|M>fypILQ=(piOW_Kl2UsjvS>KRNq9|8Chc z`+Ww7Ua_8jH1&V;^?$$QH~&0e-+wgzU$m+G;Y^M&=A2!6|NQU&{9S+GRs4VM?~WN0 zvN!BxS}p<_8G@F7VpQM_yL$V7^!9m5wqhQhx0)?fgH;LN@>a0l!H^K~zXf?UqkV!!Q`e^9{QS zq8I%JDky@UL=S=o4<0e@k4`F6r78L1c%Qv`wDp z&703dp+di8T@{y7_j9RV8 zV5Un(h?e9%&Fqo{2v|TsdzPrt^kvVMk*i6oxidqu@E8JT|A=R0wVG*%zy*t#UERKC z;YPv1ooLA1S@`$B7=m&l`yDY=k@z2-L8EE?U?8B1e!xzAvMNN%h^mqwYzg4mA%Nth ztREoV9f?B$xU;yI_f%LRKahF>B4t_>$uoqd{a{@NHwAQSiI%nIM@q`Bn2uu3`HIddm);-?80e5@)!E~ksBme*a07*qoM6N<$f>N>f5dZ)H literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/items/wand_cap_manasteel.png.mcmeta b/assets/forbidden/textures/items/wand_cap_manasteel.png.mcmeta new file mode 100644 index 0000000..ce40017 --- /dev/null +++ b/assets/forbidden/textures/items/wand_cap_manasteel.png.mcmeta @@ -0,0 +1,11 @@ +{ + "animation": { + "frametime": 3, + "frames": [ + 0, + 1, + 2, + 1 + ] + } +} diff --git a/assets/forbidden/textures/items/wand_cap_manasteel_inert.png b/assets/forbidden/textures/items/wand_cap_manasteel_inert.png new file mode 100644 index 0000000000000000000000000000000000000000..7fc4202cb813b799ca1f8475c49a07ad766002d3 GIT binary patch literal 396 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=G_SAk65n?;%i*S}jVxF)jjZt4QZ z@c-RU=P^ot;-9T}g6)r3pB2xxK%K89H$*>muW#a=kY&aHneT*xi1$O83H6Rrs$S=t zGA|wpPB6Q|tHC@n`wvG8khnM5`NZi?71vZA1$)z zHqYbaQbvyt_UmPj2-r=}itm$&gd2N&+U`!gEb9+u3gs_~S(DH?H^ l;oK4*uV;&V)0B>~GB9P!`*q3q%mM}ggQu&X%Q~loCIEA+mCgVF literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/items/wand_rod_blood.png b/assets/forbidden/textures/items/wand_rod_blood.png index 4630cbd3821adaae078c4115332d385879eb6cb3..780082c75ca68598eb6771e0714c8a88c2d9224c 100644 GIT binary patch delta 198 zcmV;%06G7<0-JPHp001FQRlKBIrkw!d!n@L1LR5(x7l1mDLF${!z1N8>o_Whu= zh4yZOf(m-)*!gde;>JLhUota^5PwxMM)Ka%mgt-_-NcEmtEH5@A*B?0i!;?)No&o6 zA^Ejnv@wPU!}FYzo(p!)@!-}PeZ++x3sy?;;FQwg8O=@|X^$}o3PK3H&5(+)?(0-B zY|l6k{Py0-TFcvv&jN@i*@7_uzS(JS{q(P)FTDywYTf|NF8}}l07*qoM6N<$g5zUe AMF0Q* delta 206 zcmV;<05Siv0=fc_JPHs101FTSts}j4kw!d!qe(b30!+H77^@xJ2N{P^Y0U5ln{bU=>o2`%FP%I;D)4>h($ diff --git a/assets/forbidden/textures/items/wand_rod_blood_inert.png b/assets/forbidden/textures/items/wand_rod_blood_inert.png new file mode 100644 index 0000000000000000000000000000000000000000..9975c384ab23812cd7434337f838af8fa229442d GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=G`-Aj~-FC-YLEAbW|YuPggqE_rqhxu(VSr9dI664!{5;QX|b^2DN4hJeJ(yb?V> z*ARs=V?9$nLqqq^PUb*WQ#@T9LoEESPCChZRDs7Om@E7mgHr>`*_NgMg=BbTEq+bU zKY2X;d{1p`edxXFqH`D3FB-Z@C13b#qtfz#*HiQ2z1c$7&*uaAYp3=Y?m7EI pr=en!zX96;bL+SM_J6ZqunO^cH??IbxB}hB;OXk;vd$@?2>>XrZGQj& literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/items/wand_rod_infernal.png b/assets/forbidden/textures/items/wand_rod_infernal.png index 141673f0109d97cef0d0a7351243a028c37509e3..8bb6744612807706095c5d7409dfe9eba2318b2a 100644 GIT binary patch delta 159 zcmV;Q0AT;W0*eBWJPHs101FTSts}j4kw!d!bV)=(R5(v#U>H)sii`O_2$SV#8=%Gn zZsz~?K-z?pL_|R0uI56ZMzS=6QkEmo-(HlYG*GCM9M5E>X=-Z%060QCC5+@)-v9s# N002ovPDHLkV1g9FK?(o> delta 211 zcmV;^04)ED0>1)~JPHv201FWTe`H^gkw!d!s7XXYR5(v#V4ycBV_^7S0>ot5y920k zClH4Lu?DGztN?0Q0>m4DIEhrvAZPDT6Zzi=r2RAe-fR!8nyvn`Z$vYysjv zW+3h*RdXy*11Q8n0Y-8>gF+XSwj+SplT@2wQL`SXQJGxLB*iZl#Q>7pP?V`}+F<|y N002ovPDHLkV1i8xR^I>s diff --git a/assets/forbidden/textures/items/wand_rod_livingwood.png b/assets/forbidden/textures/items/wand_rod_livingwood.png new file mode 100644 index 0000000000000000000000000000000000000000..8c87058af6278c3120a01395087a35b0c1053538 GIT binary patch literal 345 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=G^rh1>#+YnAtw0tMMiJbhi+?=kU+GV0e{3|j&ek}7eHC<)F_D=AMbN@WO0%*-p% z^K%VRC^ObG)iX47|LkNARCUPH#WBRfKRH1n#KEOuI-|Il@PlNIOB4UUU!wI{e)-~$ znS2*Rf5c}k{ASPNaa+SX(VS&Eqr&XvyIwSz?p}F%(le$BX*15&MHTHZZT{2xhH1il zN2yb~SO2@e(){=R(v;u)LWj90@G@l1d&gC{jX%KHr%!{~;T+pdo=ZHNByT3{VLPx$ z>!^q1o1B1#h3q!lvI6;>1s;*b z3=G`-Aj~-FC-YLEAbW|YuPggKCLU2n{hEtmOMpUBC9V-A!TD(=<%vb93;~Imc_n&& zt|1C##(JiDhKBB+oy>u%Hha1_hFJKYo$SbUSV6?a*2$(#qhq4Nx;v}P4ZiO`uCE-i zq}mhwJiD9Bq|x^e5b zIHr#F&EMyVC$F<)Olw;(#mUgE=$zm^-RnFJKWxs+Ro^d{y1$P}!EBCV+h?9QrelFi zr&Q&Le2aV|#PB@o_3pQ;gA*BNRBo~5+RfTvy@+|su8BEJYfI-#+S)Mvd9%ER(fCEk V$5nL+wLs@Hc)I$ztaD0e0svgVbu<6~ literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/items/wand_rod_soul.png b/assets/forbidden/textures/items/wand_rod_soul.png index f184ebdf2cdfb72e16533e947eb8028f91e7acbe..c5b73b5477d409a7b9e63a354f1c2f4451df8adc 100644 GIT binary patch delta 203 zcmV;+05t#m0=EK?JPHp001FQRlKBIrkw!d!ph-kQR5(x7kv$5+U=TzDa|5gR6A{rU zBEiDKPAoiwjYtYZP!I{&c=|E3-~lFJ;a7ie_w7uQ{ME})aD+8GNsqB1>I+ex*hA_K znP5x2ZZTkh+=Hc@<3Kbuhgf=WXt&@T`xah#@Dw}Z{UDxK_A&EdZC>CQciX9dwPm0- z+N{c?8iCzQf3xb*y@Ktur5T}B=WehDs46>cE1+L}{s0MWKYWYIfA;_Y002ovPDHLk FV1k`-TUr1B delta 271 zcmV+q0r38}0{a4xJPHs101FTSts}j4kw!d!IU(5J$Pymq zj1rS*6I5|THVz4PS1O1`HV3Yp5nLWr#%`!ydxNzcDAks^BnQV#@LhOf1P6W248f6l zbH}aqlfaczYMX0bs7Kw diff --git a/assets/forbidden/textures/items/wand_rod_tainted.png b/assets/forbidden/textures/items/wand_rod_tainted.png index 936649d3b90e45e5439e469586f0aaa2a853d000..e02045b1aafe1c67788f0364cdd719d23a9b25e9 100644 GIT binary patch delta 239 zcmV-li?TDtoyIXFd1loBWZ?6F|_};XV?ukfR!PeG|dVO6aM=!o&9glu<<`PLlJ43g&1o7 zyD=OA+Ya(SNq(1R=mcwaWjGA9xr8*$iVTzfhj3i~Z^y9nKMO-9X__H69|huLq&pi~ z6jhMWUQc>_!vf5lVFOTeHEGTU#Vtr92$LLDTnvTaI5uEdPP%4LylODa`LEBg1nA^M o(wq%T6dDY($g`QGRE0w^0M{~D8$fGd9RL6T07*qoM6N<$f_>g&+W-In diff --git a/assets/forbidden/textures/items/wand_rod_totem.png b/assets/forbidden/textures/items/wand_rod_totem.png new file mode 100644 index 0000000000000000000000000000000000000000..971eec1abbe1d2db6cf4e6e3081a17fed15a41be GIT binary patch literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=G`-Aj~-FC-YLEAbW|YuPggKCLU2n{hEtmOMpUBC9V-A!TD(=<%vb93;~Imc_n&& zt|1C##(JiDhKBB+oy>u%j(EB_hFJI~U$}NHZ2?R063G-pPc|RkCqLq!p86<%^Qeoo zf%1&U_NNQq{nz=t^PjlIhQqvyry5Q&%KVSK|M~xX=~Ex~pKNv!Z1?N@ndex`thTKH}7>p zGss`aE&%x%q@f`{27vqw3vF0{kz@eKc97FS2H{JQ oI9=dkYY6r;C>+Q#V8AjZ0Anj+^pP||!TLYpW9V4CB7bWx%TUm8Ji0m#{)Xo5K#7F9$U z017Zz3PX=7q6`4p4)Qm)s3OV$Q*CL20fx;WYGh;v04Kd|LNXE_EC2ui07*qoM6N<$ Eg1Eb8?EnA( diff --git a/assets/forbidden/textures/misc/infernalism.png b/assets/forbidden/textures/misc/infernalism.png deleted file mode 100644 index da80c608db7a0ef8d9440422d6563e166c6e311a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1565 zcmV+&2IBdNP)N2bPDNB8 zb~7$DE-^7j^FlWO00o&zL_t(oN6nXcY*l3t#fQ2SOSLh$03k|Cs!@R;#6GKmltvqB zOE^Nb@^#%&$Axyf)ni zBoxFw#pW+9HUFW;TKjT**HHVQet1K&_0Pe~+f4tfJxdrAQmD`xE&fhP! zR2W#fyZJ4#Ko7sv+0=vrxbrCUjUDE%uQq>iiMce<^lG7vRHldDG%nBpB_Mm4P+3MN z6o9ha>)o~Hn>)>)oo`M_)})(XF~t0;{mm)CwFd?z07ycEN6ubeX1-~a`NPwLOs^kh zPHCdLKTvIsSb5(cfOR>R{7#7t+b)2jHT}`!%-7|a-#FI1b4t*5C?7^PtT2CVrTGhs zx6T0I@$+fLcC_n5^+EQR3<}!q-ZJysCvIT_767xg48N_mhR2$Mec#vE*ll9tsoCat z7nonZkNK)S%@H7g=zt57f-ZoO@2ai1Kga5jMU;=uImhCIE2Cc!Pv+Uct}nH@`N7&C z2zJAmKy)Y{P=G;{Fr@6tdpiE6+Opae6tGKlJtMTYiu)K`PaJK@)T#%7Mnr}VBE?^t z762ePqNF?M3K$|w04-A>O)x)Ic9v{$c+dZBGMyvUy;x9>kH5dt{EJH4FM3J#)R?(X z+g-G4K>x)9gO+3n5tQHn!(fJtI}~W4>_pk|vSUL#Mb{QtF916I${8?Zs_A#Y=an`J z%Bde$f}E|57`22>Df^%e1(pN@*orV?0KyO;PLnmt%4AitCfVsS#Td~IgoMwDPO;AU4g5a0~A+VUlJDP4HIHE?JXoPt{2?0PW!fr1B z8a(r+=mn(!2mqigPnHvIka!kS9x{)z!;$vJ5GO*U?o7?7710Rg13)BfX=QdV020sO z8ZCl)Hb501po^Lb90uf^k!v(g`1Z}F082(9xr6~Ielp!8a#uP;l zVyDk<&A$MtB{KPE7U@99?jz>37GV zKC|!oPOekK3t%kbH&hnxu@Rul?OwJ zzyOlqT3#vW{-LwOK=h?MM68r*D77(+qIy5S$ec4k+0GJMhwN~m|H8qahRcYU@37B3 P00000NkvXXu0mjf{l(e= diff --git a/assets/forbidden/textures/misc/taintorgan.png b/assets/forbidden/textures/misc/taintorgan.png deleted file mode 100644 index adbbc0dbe124fa12b3d3ce4ee22277600bcba905..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1567 zcmV+)2H^RLP)N2bPDNB8 zb~7$DE-^7j^FlWO00o;#L_t(oN7YwJPg`dcy^xSXh?zqD>}P`slL}|DfGeU9{a)$)?MyYFClkMHgB04^*nyRFS;!Til-e1*mPn z4xtk2;>v!0?|tXod(S=JXR_IBw3o4`;F9?Nnt+ZBzC`@8Mf`-{zCg$`VUv8{3KZCE zX)i36(!VvW#;~L|8ji$n{?5 zb3Hxf9(ur&w8S^*CVR-kvoy=+=$T*BDuu-N;YjR+Kq3}$A%4*HEdN;mjnEywMYmL3 zr|W!~E^{ljayzy2HM+)?^qe)VYP}NHttt_YKrUYR4)H7EH^ghip9mu_H5=e{D&rZN z!S@j!qcQHMe!fT-6@h7*2BABAjPCnwwj)A9G_eV9I|5SX7a0lNKJ=8GaU*QCmN0%p zq;ZwW#7jhoIv%EBZlM+)paHaDlBZ}&wP6lb8KS#r#dEeN4uXUd>pKxREY{J?08}hWJ!;z}1LS`keD(ysx#? zwpt_*L?VnjkB)js7mR20cRc>QaTt!CC2IYDhPdJv78RlLLh-Cy!gAW=Wz!;RAntlDqy?K z&Zpu}@dQn9;ePj88_)`^gzIQosb5N69DViQd#Y77*31pufGP2kR}wJBXmM53%EUW1 za03ZAal?0Pp9gHmxiqen9aaZBQ=KSl6TntB0XPzR0Putx5n1s=o9<`D4?>vt6nPQn z01X;eYeA3}0tra(ebP5kwUk}TUr+V?FIp!@dZcCJGC zudV4wlIWlbBUFr`6?jvD1!bm1)xFfK#3g3)b^?MU``{>_UlW@%b^;{J5fuz4MAcRR zzOdmDG8yM+IWmEhaJM;{-!K?A`doq@hJvRhb*m9;22eRj3jv2|kWWGrgDAWBgG`U~ zUx-{lo5Z#wR^aFdZj9Dl*y)0LaR7@IMFkT`OYVT#JVI+e!3aJC=ptvw4|7rUEW0ob zQZ;cz5wZ{wlGfB_0bfOID?-u08?(6vf_o}sgYjBWc3XnGK*Vq)Ty&qa zdXrngl5k2bt3{#K1E8yQE(zcs|Lo$W}a`b>lWhMkX$Wk=mF!i$| z!KG9$z@lmakqV_Jw*Vj$Bx)hbCs6$|GM`sf$~x4y-o8Juc5kQ~h8j@|9(bke`Pk|1 zsaD8hLLf7K1jMG)%*&WIQll#KFfz2Kv~Fm`VmSlQevD2YuwxkMaI$eA0U>`efW>CL5ZfHhDPf8>-tLMX zbuHheQlcYir9HWIR|M7xsw0_xxXE_`SqXrE$wbIxbWxWIv0nKUACS?^-#-KJ%pJ8L zTt$>da$+Zaavl^A0TU7~a;cM%oDt+x1bY^3&~>MPe~kz_DMu=Mq$AtQ^u(@JjHxjJ znw z?|SB&z=h0C0k?WS@DIu>EGmcCz&|VE{oDRQ`7a3UYK>jJ9NN$Kx!!XE{{Z!FwN#Ep R!odIl002ovPDHLkV1o1d#EAd^ diff --git a/assets/forbidden/textures/models/wand_cap_manasteel.png b/assets/forbidden/textures/models/wand_cap_manasteel.png new file mode 100644 index 0000000000000000000000000000000000000000..7f7b4990e7b2a26751c86d18e63e08fdb8252a8d GIT binary patch literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}c0*}aI z1_r)^Ak4U9V)k30AbW|YuPggq4pu=+o_Zd!5}=S&iEBhjaDG}zd16s2LqK9?UWuNc zYluRbv7V`(p`rU{Cv%{xtDY{7ArbD$2@Or}4$J=!fA{al{VL@Z6??=WG5?t&!)L=2K@*-H)V}|h zKlUr%8xDc_&-fg+DOA61|1UZFrNo~X`vtt$Xdx{Ab832#$EA!Ki_YA zaJGJW<@*24Hx~Txzxm~1{kv`a|GUdBC|Ws8tJ1CeeLwwVbb%R9^jEn#qL&*o8CzaT oNiCk%+jby>qX!GYzopr09xRd>;M1& literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/models/wand_rod_livingwood.png b/assets/forbidden/textures/models/wand_rod_livingwood.png new file mode 100644 index 0000000000000000000000000000000000000000..0ac3f00df5fbec19caa090d74d99dce48cd87f39 GIT binary patch literal 880 zcmV-$1CRWPP)H;LN@>a0@+DKK~z{r?N?cA6hRQKzaY3` z_HeVCOx76V5o3%ZA|fIpBBEdjo`e{p7`#}G2VRL$yrL$AAQ~T3P!aSG_$Pev-I(2- z83kX0Pwjja8#?ol+NL20I?!}aPgm7fUscUa5&gNsx1$t1AEfa0Fausy~$EObz zz8fQd^dg0CMkshTK$QoltJ6^)>ZQ{4qg1(jvU;JI>hB*XD13RJ{E>bN-;Yx;F~sXR zFYR&g^alB3m#KW`I0Ml4)xn=R1@Kc>4${}+J}TepVTY!!9iCf-_83NCymYgRN(0>t z0{7BoQjIW%uO2e>v%+EQOZu#zn^c3f%A<2s9y~^7ILv)(1CoGAwg2Qihk+S1!eQ=9 z`u^ePy{+|XV_j11Y+RyFto4*F6~CsZ>F1Zvq-R@s>R6Fe+X@*TdzNRd0l+vaLeEtL z$Rrl1##BNzrx)?;)hwK~mK4Q3w`Kygx8-WsYtRn{Hsq5Wj+X3Vk%_qH)=a?g_N5uM zx4BkzuFR?3O9fK&YFEF4@^(oE?SN)KEl<9ENo{>XHN-7@`8#13gg^!c!z4)<`}i zBY+?juKGoJc)r<7F#s4w+%=GSNkWtwj3V}60+oO_A@)$Bq6e-A5Px`%7ZQx4D!N)` zssOXAeo-DZk9dQ27}tP6KSCoaFb?1s+<#oO5g~$cv;MJ0SineYt^74Kt)ZboFJN`y zQ>?#!m_a=fQ?G55aZhot&qjm@KO%)>g3GTx0t2s`qCM>6=S0#r+228v7xr^Af;ImU z51-}s%pbohiMv0C(QlVJxg$a+gr0z#ov1&+_<#NN4EzS)2Lq3*dhNjg0000EL8-}0(J0Cr@BRLMxDUI}?9S}W&a?aM=6kp~%FAlV0s!Ql z4pI(Fkov=rQW8INCB;kvh$vfETL2o_sI9Oal33=%!GKc$C_MRLu!k37mL*B)BqvvU z>2X<2XiqvBN`bwu8~b8byz2g ztv4fNxom{(ZLfSb^_qqC0&1WdpWjQ&CCJXQdVi8JQj+l;c*wKj@vf*TDb1eCzUZmu zEAHWB3}*FDj}|6Z^`qx~Eld~${U=oKyzFhLhV*aX*IQi01o~t8 z(UhSW)sU66-9#{(%%<2L)gUR?d)u8 zm}SIW8R{iKhztJEVs!}hxHWr>%r5U}GtXoT=+>tMgx}_yW{2EWH2;eI`N%+h-P9az>vw-N zBB{X?A(CvDH19qcY|JJ~rr(PGD6Ipj2%QAOw_2$)6X?I$^mxQOIYeFeZ%Wul*-fxz@C{Dj}u zS~eU_Ml@{n9cGI{(hG_o9mNC9D9WEn>o(d`#LNEHczPSt*YqS zuAO1w94~YZ|E|lS!loSh(ImqBq8U<`i7_k$kN!yaMG%6=J+-w;r(00J41qfME|f8( zM>-Pn@yjnO8LwtBg|~m6Fyc0wkS{Uu##b)R>|J|T636e_nBl3J_#ddBX!p;s-#JRm z6_P!+v_KyF2j3WgM%%!=TlM+6vMv?^h^i4N%7=g)o&;9T`}p1(KN?|t6*ir1ZWRzQ zJ?K$kuE1-}%c>baO5p(cY7(F~hD`5jvhO4glG-lDBnOb4S{24~Ebs(JsZl+wTB~_MKl-U{kZ}-hgys z_jxc!v#6k=nFgs=fZVWw;-+`6Q=aVdiJ7gvt!bI|;qs*s1?iT9FQ+lDGs89&E$>&q zob1d>aD3i^SPhG-HtX?`1#BUS1(-KplF$H~BPPI}%Ww-LT@30}Ve#RkeRvQ_atSbj z^nT~zb&RIFm6eP{vc>HAY;D8&?{Y6rng{)$QHI$O;c^#7mNXU10*uP_(`Yc&JUHeJ z8{ph8@%x|PX0%b$Ik+j+A`+cGvk3JPmo9~Tf^R>kC( z@5{$uFHIi*<`(+N$~2X$#1)Er?_SN0Q literal 0 HcmV?d00001 diff --git a/assets/forbidden/textures/models/wand_rod_witchwoodhd.png b/assets/forbidden/textures/models/wand_rod_witchwoodhd.png deleted file mode 100644 index dcd1b0d15f6521402ea921828a46d33e6fd2de7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 587 zcmV-R0<`^!P)FWc16RGx8y0#%KL#;Uj_6e#Ve-MDdkEYJ^938_e`)?gbt z+B^-825+H&ntSeHw0-sUG1u+FfLunl=| zLkikkohChFXK24^SgBnZ3S%9Nga8<3yu`5f%%yDGZ(lKj}pHjqABvR4Fg)Q&Ui&(x)?< zkSCP7^?4|D8C80cFlUtJsQol}+rmm>SDMu+rNBz%gpzGeDVf_TCE<1=a)!VSI@!Tb zJaq(>R@#-`6aB~4IF%gBUrcGUrU<#Q)ii=i`;B9(E}c-4!aYwZk)DH&4YuL!!&78T ziHT~U8Xq+@7%R!5MusZQ2%dpWN1obYfnJTZ-=AYV!53LmM1M>ykZScWo+Z6LuDa?6 Z>mQMnl69R 0) @@ -99,8 +101,8 @@ public class ForbiddenResearch } - (new DarkResearchItem("TAINTSHOVEL", "TAINT", (new AspectList()).add(Aspect.CRYSTAL, 3).add(Aspect.TAINT, 2).add(Aspect.TOOL, 1), 0, -3, 4, new ItemStack(ForbiddenItems.taintShovel))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.TAINTSHOVEL.1"), new ResearchPage((InfusionRecipe)recipes.get("TaintShovel")), new ResearchPage("forbidden.research_page.TAINTSHOVEL.2")}).setParentsHidden(new String[]{"THAUMIUM", "INFUSION", "ETHEREALBLOOM"}).setConcealed().registerResearchItem(); - (new DarkResearchItem("TAINTPICK", "TAINT", (new AspectList()).add(Aspect.TOOL, 2).add(Aspect.TAINT, 4).add(Aspect.ENTROPY, 3), -2, -3, 3, new ItemStack(ForbiddenItems.taintPickaxe))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.TAINTPICK.1"), new ResearchPage((InfusionRecipe)recipes.get("TaintPick"))}).setParentsHidden(new String[]{"THAUMIUM", "INFUSION"}).setConcealed().registerResearchItem(); + (new DarkResearchItem("TAINTSHOVEL", "TAINT", (new AspectList()).add(Aspect.CRYSTAL, 3).add(Aspect.TAINT, 2).add(Aspect.TOOL, 1), 0, -3, 3, new ItemStack(ForbiddenItems.taintShovel))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.TAINTSHOVEL.1"), new ResearchPage((InfusionRecipe)recipes.get("TaintShovel")), new ResearchPage("forbidden.research_page.TAINTSHOVEL.2")}).setParentsHidden(new String[]{"THAUMIUM", "INFUSION", "ETHEREALBLOOM"}).setConcealed().registerResearchItem(); + (new DarkResearchItem("TAINTPICK", "TAINT", (new AspectList()).add(Aspect.TOOL, 2).add(Aspect.TAINT, 4).add(Aspect.ENTROPY, 3), -2, -3, 2, new ItemStack(ForbiddenItems.taintPickaxe))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.TAINTPICK.1"), new ResearchPage((InfusionRecipe)recipes.get("TaintPick"))}).setParentsHidden(new String[]{"THAUMIUM", "INFUSION"}).setConcealed().registerResearchItem(); (new DarkResearchItem("ROD_tainted", "TAINT", (new AspectList()).add(Aspect.MAGIC, 4).add(Aspect.TAINT, 5).add(Aspect.TOOL, 2), -4, -5, 4, new ItemStack(ForbiddenItems.wandCore, 1, 0))).setPages(new ResearchPage[]{new ResearchPage("forbidden.research_page.ROD_tainted.1"), new ResearchPage((InfusionRecipe)recipes.get("WandRodTainted"))}).setParents(new String[]{"ROD_silverwood", "TAINTSHOVEL"}).setConcealed().registerResearchItem(); } } \ No newline at end of file diff --git a/src/com/spiteful/forbidden/WandOverlord.java b/src/com/spiteful/forbidden/WandOverlord.java new file mode 100644 index 0000000..578f666 --- /dev/null +++ b/src/com/spiteful/forbidden/WandOverlord.java @@ -0,0 +1,46 @@ +package com.spiteful.forbidden; + +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.World; +import net.minecraftforge.common.ForgeDirection; +import thaumcraft.api.IVisDiscountGear; +import thaumcraft.api.aspects.Aspect; +import thaumcraft.api.aspects.AspectList; +import thaumcraft.api.nodes.INode; +import thaumcraft.api.nodes.NodeModifier; +import thaumcraft.api.nodes.NodeType; +import thaumcraft.api.wands.IWandFocus; +import thaumcraft.api.wands.IWandTriggerManager; +import thaumcraft.common.lib.research.ResearchManager; +import thaumcraft.common.items.wands.ItemWandCasting; + +public class WandOverlord implements IWandTriggerManager +{ + public boolean performTrigger(World world, ItemStack wand, EntityPlayer player, int x, int y, int z, int side, int event) + { + if(event == 1 && side == 1) + return hellfire(world, wand, player, x, y, z, side); + return false; + } + + public boolean hellfire(World world, ItemStack wand, EntityPlayer player, int x, int y, int z, int side) + { + if(world.isRemote || wand == null || !(wand.getItem() instanceof ItemWandCasting) || ((ItemWandCasting)wand.getItem()).getFocus(wand) != null + || !ResearchManager.isResearchComplete(player.username, "HELLFIRE") || !player.canPlayerEdit(x, y, z, side, new ItemStack(Item.fireballCharge))) + return false; + + if(world.isAirBlock(x, y + 1, z) && ((ItemWandCasting)wand.getItem()).consumeVis(wand, player, Aspect.FIRE, 2)) + { + world.playSoundEffect((double)x + 0.5D, (double)y + 1.5D, (double)z + 0.5D, "fire.ignite", 1.0F, world.rand.nextFloat() * 0.4F + 0.8F); + world.setBlock(x, y + 1, z, Block.fire.blockID); + player.swingItem(); + return true; + } + else + return false; + } +} \ No newline at end of file diff --git a/src/com/spiteful/forbidden/blocks/BlockWrathCage.java b/src/com/spiteful/forbidden/blocks/BlockWrathCage.java index 8da9b38..eb300c2 100644 --- a/src/com/spiteful/forbidden/blocks/BlockWrathCage.java +++ b/src/com/spiteful/forbidden/blocks/BlockWrathCage.java @@ -51,16 +51,6 @@ public class BlockWrathCage extends BlockContainer return 1; } - /** - * Drops the block items with a specified chance of dropping the specified items - */ - public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) - { - super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, par7); - int j1 = 15 + par1World.rand.nextInt(15) + par1World.rand.nextInt(15); - this.dropXpOnBlockBreak(par1World, par2, par3, par4, j1); - } - /** * Called upon block activation (right click on the block.) */ diff --git a/src/com/spiteful/forbidden/items/ForbiddenItems.java b/src/com/spiteful/forbidden/items/ForbiddenItems.java index 6c471e5..4a10130 100644 --- a/src/com/spiteful/forbidden/items/ForbiddenItems.java +++ b/src/com/spiteful/forbidden/items/ForbiddenItems.java @@ -1,6 +1,7 @@ package com.spiteful.forbidden.items; import com.spiteful.forbidden.*; +import com.spiteful.forbidden.items.wands.*; import cpw.mods.fml.common.registry.GameRegistry; import java.util.Arrays; @@ -33,20 +34,25 @@ public class ForbiddenItems public static Item morphSword; public static Item morphShovel; public static Item morphAxe; - public static Item bloodwell; public static Item crystalwell; public static Item ridingCrop; + public static Item bloodwell; + public static Item bloodOrb; + public static WandRod WAND_ROD_TAINTED; public static WandRod WAND_ROD_INFERNAL; public static WandRod WAND_ROD_NEUTRONIUM; public static WandRod WAND_ROD_SOUL; public static WandRod WAND_ROD_BLOOD; public static WandRod WAND_ROD_WITCHWOOD; + public static WandRod WAND_ROD_TOTEM; + public static WandRod WAND_ROD_LIVINGWOOD; public static WandCap WAND_CAP_ORICHALCUM; public static WandCap WAND_CAP_ALCHEMICAL; public static WandCap WAND_CAP_VINTEUM; public static WandCap WAND_CAP_SOUL; + public static WandCap WAND_CAP_MANASTEEL; public static void addItems() { @@ -118,10 +124,13 @@ public class ForbiddenItems WAND_ROD_SOUL.setGlowing(true); WAND_ROD_BLOOD = new WandRod("blood", 100, new ItemStack(wandCore, 1, 3), 12, new BloodWandUpdate(), new ResourceLocation("forbidden", "textures/models/wand_rod_blood.png")); WAND_ROD_WITCHWOOD = new WandRod("witchwood", 100, new ItemStack(wandCore, 1, 4), 12, new ManaWandUpdate(), new ResourceLocation("forbidden", "textures/models/wand_rod_witchwood.png")); + WAND_ROD_TOTEM = new WandRod("totem", 50, new ItemStack(wandCore, 1, 5), 4, new TotemWandUpdate(), new ResourceLocation("forbidden", "textures/models/wand_rod_totem.png")); + WAND_ROD_LIVINGWOOD = new WandRod("livingwood", 100, new ItemStack(wandCore, 1, 7), 12, new YandereWandUpdate(), new ResourceLocation("forbidden", "textures/models/wand_rod_livingwood.png")); WAND_CAP_ORICHALCUM = new DarkWandCap("orichalcum", 0.0F, new ItemStack(Block.commandBlock, 1), 1000, new ResourceLocation("forbidden", "textures/models/wand_cap_orichalcum.png")); - WAND_CAP_ALCHEMICAL = new DarkWandCap("alchemical", 0.95F, Arrays.asList(new Aspect[]{Aspect.WATER}), 0.8F, new ItemStack(wandCap, 1, 0), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_alchemical.png")); - WAND_CAP_VINTEUM = new DarkWandCap("vinteum", 0.9F, new ItemStack(wandCap, 1, 1), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_vinteum.png")); - WAND_CAP_SOUL = new DarkWandCap("soul", 0.95F, Arrays.asList(new Aspect[]{Aspect.ENTROPY}), 0.8F, new ItemStack(wandCap, 1, 2), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_soul.png")); + WAND_CAP_ALCHEMICAL = new DarkWandCap("alchemical", 0.9F, Arrays.asList(new Aspect[]{Aspect.WATER}), 0.8F, new ItemStack(wandCap, 1, 0), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_alchemical.png")); + WAND_CAP_VINTEUM = new DarkWandCap("vinteum", 0.9F, new ItemStack(wandCap, 1, 1), 6, new ResourceLocation("forbidden", "textures/models/wand_cap_vinteum.png")); + WAND_CAP_SOUL = new DarkWandCap("soul", 0.9F, Arrays.asList(new Aspect[]{Aspect.ENTROPY}), 0.8F, new ItemStack(wandCap, 1, 2), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_soul.png")); + WAND_CAP_MANASTEEL = new DarkWandCap("manasteel", 0.9F, new ItemStack(wandCap, 1, 3), 7, new ResourceLocation("forbidden", "textures/models/wand_cap_manasteel.png")); resource = new ItemResource(Config.resourceID).setUnlocalizedName("FMResource"); GameRegistry.registerItem(resource, "FMResource"); @@ -130,8 +139,18 @@ public class ForbiddenItems if(Compat.bm) { - bloodwell = new ItemBloodwell(Config.bloodwellID).setUnlocalizedName("Bloodwell"); - GameRegistry.registerItem(bloodwell, "Bloodwell"); + try + { + bloodwell = new ItemBloodwell(Config.bloodwellID).setUnlocalizedName("Bloodwell"); + GameRegistry.registerItem(bloodwell, "Bloodwell"); + + bloodOrb = new ItemDivineOrb(Config.bloodOrbID).setUnlocalizedName("DivineOrb"); + GameRegistry.registerItem(bloodOrb, "DivineOrb"); + } + catch(Throwable e) + { + e.printStackTrace(); + } } crystalwell = new ItemCrystalwell(Config.crystalwellID).setUnlocalizedName("Crystalwell"); diff --git a/src/com/spiteful/forbidden/items/ItemDivineOrb.java b/src/com/spiteful/forbidden/items/ItemDivineOrb.java new file mode 100644 index 0000000..84658cd --- /dev/null +++ b/src/com/spiteful/forbidden/items/ItemDivineOrb.java @@ -0,0 +1,28 @@ +package com.spiteful.forbidden.items; + +import com.spiteful.forbidden.*; + +import WayofTime.alchemicalWizardry.common.items.EnergyBattery; +import WayofTime.alchemicalWizardry.common.altarRecipeRegistry.AltarRecipeRegistry; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.item.ItemStack; + +public class ItemDivineOrb extends EnergyBattery +{ + public ItemDivineOrb(int id) + { + super(id, 50000000); + orbLevel = 5; + setCreativeTab(Forbidden.tab); + AltarRecipeRegistry.registerAltarOrbRecipe(new ItemStack(this),5,140); + } + + @Override + @SideOnly(Side.CLIENT) + public void registerIcons(IconRegister iconRegister) + { + this.itemIcon = iconRegister.registerIcon("forbidden:divineorb"); + } +} \ No newline at end of file diff --git a/src/com/spiteful/forbidden/items/ItemResource.java b/src/com/spiteful/forbidden/items/ItemResource.java index 424ec0d..ca52f5e 100644 --- a/src/com/spiteful/forbidden/items/ItemResource.java +++ b/src/com/spiteful/forbidden/items/ItemResource.java @@ -32,10 +32,11 @@ public class ItemResource extends Item @SideOnly(Side.CLIENT) public void registerIcons(IconRegister ir) { - icons = new Icon[2]; + icons = new Icon[3]; icons[0] = ir.registerIcon("forbidden:emerald_nugget"); icons[1] = ir.registerIcon("forbidden:dye_powder_black"); + icons[2] = ir.registerIcon("forbidden:nuggetmanasteel"); } @SideOnly(Side.CLIENT) @@ -50,7 +51,7 @@ public class ItemResource extends Item */ public String getUnlocalizedName(ItemStack par1ItemStack) { - int i = MathHelper.clamp_int(par1ItemStack.getItemDamage(), 0, 6); + int i = MathHelper.clamp_int(par1ItemStack.getItemDamage(), 0, 2); return super.getUnlocalizedName() + "." + i; } @@ -60,7 +61,7 @@ public class ItemResource extends Item */ public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { - for (int j = 0; j < 2; ++j) + for (int j = 0; j < 3; ++j) { par3List.add(new ItemStack(par1, 1, j)); } diff --git a/src/com/spiteful/forbidden/items/ItemWandCores.java b/src/com/spiteful/forbidden/items/ItemWandCores.java deleted file mode 100644 index 71a074d..0000000 --- a/src/com/spiteful/forbidden/items/ItemWandCores.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.spiteful.forbidden.items; - -import com.spiteful.forbidden.Forbidden; -import com.spiteful.forbidden.Compat; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -import java.util.List; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; -import thaumcraft.api.ItemApi; -import thaumcraft.api.wands.WandCap; -import thaumcraft.api.wands.WandRod; -import thaumcraft.common.items.wands.ItemWandCasting; - -public class ItemWandCores extends Item { - - public final String[] types = {"tainted", "infernal", "soul", "blood", "witchwood"}; - public Icon[] icon; - - - public ItemWandCores(int par1) { - super(par1); - this.setMaxStackSize(64); - this.setHasSubtypes(true); - this.setMaxDamage(0); - this.setCreativeTab(Forbidden.tab); - } - - @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister ir) { - icon = new Icon[types.length]; - for(int x = 0; x < types.length; x++) - this.icon[x] = ir.registerIcon("forbidden:wand_rod_" + types[x]); - } - - @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { - return this.icon[meta]; - } - - @SideOnly(Side.CLIENT) - public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { - for(int x = 0; x < types.length; x++){ - par3List.add(new ItemStack(this, 1, x)); - } - - ItemStack taint = ItemApi.getItem("itemWandCasting", 72); - ((ItemWandCasting)taint.getItem()).setCap(taint, (WandCap)WandCap.caps.get("thaumium")); - ((ItemWandCasting)taint.getItem()).setRod(taint, (WandRod)WandRod.rods.get("tainted")); - par3List.add(taint); - ItemStack infernal = ItemApi.getItem("itemWandCasting", 72); - ((ItemWandCasting)infernal.getItem()).setCap(infernal, (WandCap)WandCap.caps.get("thaumium")); - ((ItemWandCasting)infernal.getItem()).setRod(infernal, (WandRod)WandRod.rods.get("infernal")); - par3List.add(infernal); - ItemStack creative = ItemApi.getItem("itemWandCasting", 2000); - ((ItemWandCasting)creative.getItem()).setCap(creative, (WandCap)WandCap.caps.get("orichalcum")); - ((ItemWandCasting)creative.getItem()).setRod(creative, (WandRod)WandRod.rods.get("neutronium")); - par3List.add(creative); - if(Compat.pb) - { - ItemStack soul = ItemApi.getItem("itemWandCasting", 72); - ((ItemWandCasting)creative.getItem()).setCap(soul, (WandCap)WandCap.caps.get("soul")); - ((ItemWandCasting)creative.getItem()).setRod(soul, (WandRod)WandRod.rods.get("soul")); - par3List.add(soul); - } - if(Compat.bm) - { - ItemStack blood = ItemApi.getItem("itemWandCasting", 72); - ((ItemWandCasting)creative.getItem()).setCap(blood, (WandCap)WandCap.caps.get("alchemical")); - ((ItemWandCasting)creative.getItem()).setRod(blood, (WandRod)WandRod.rods.get("blood")); - par3List.add(blood); - } - if(Compat.am2) - { - ItemStack mana = ItemApi.getItem("itemWandCasting", 72); - ((ItemWandCasting)creative.getItem()).setCap(mana, (WandCap)WandCap.caps.get("vinteum")); - ((ItemWandCasting)creative.getItem()).setRod(mana, (WandRod)WandRod.rods.get("witchwood")); - par3List.add(mana); - } - } - - public String getUnlocalizedName(ItemStack par1ItemStack) { - return super.getUnlocalizedName() + "." + types[par1ItemStack.getItemDamage()]; - } -} diff --git a/src/com/spiteful/forbidden/items/BloodWandUpdate.java b/src/com/spiteful/forbidden/items/wands/BloodWandUpdate.java similarity index 98% rename from src/com/spiteful/forbidden/items/BloodWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/BloodWandUpdate.java index a5d01b4..65801ee 100644 --- a/src/com/spiteful/forbidden/items/BloodWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/BloodWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; import com.spiteful.forbidden.Compat; diff --git a/src/com/spiteful/forbidden/items/CreativeWandUpdate.java b/src/com/spiteful/forbidden/items/wands/CreativeWandUpdate.java similarity index 95% rename from src/com/spiteful/forbidden/items/CreativeWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/CreativeWandUpdate.java index 287c98c..92733cc 100644 --- a/src/com/spiteful/forbidden/items/CreativeWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/CreativeWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; diff --git a/src/com/spiteful/forbidden/items/DarkWandCap.java b/src/com/spiteful/forbidden/items/wands/DarkWandCap.java similarity index 95% rename from src/com/spiteful/forbidden/items/DarkWandCap.java rename to src/com/spiteful/forbidden/items/wands/DarkWandCap.java index 2f3c7ae..7237acc 100644 --- a/src/com/spiteful/forbidden/items/DarkWandCap.java +++ b/src/com/spiteful/forbidden/items/wands/DarkWandCap.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import java.util.LinkedHashMap; import java.util.List; diff --git a/src/com/spiteful/forbidden/items/InfernalWandUpdate.java b/src/com/spiteful/forbidden/items/wands/InfernalWandUpdate.java similarity index 96% rename from src/com/spiteful/forbidden/items/InfernalWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/InfernalWandUpdate.java index 2344975..22c8fc6 100644 --- a/src/com/spiteful/forbidden/items/InfernalWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/InfernalWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; diff --git a/src/com/spiteful/forbidden/items/ItemWandCaps.java b/src/com/spiteful/forbidden/items/wands/ItemWandCaps.java similarity index 91% rename from src/com/spiteful/forbidden/items/ItemWandCaps.java rename to src/com/spiteful/forbidden/items/wands/ItemWandCaps.java index 006e686..0433f9e 100644 --- a/src/com/spiteful/forbidden/items/ItemWandCaps.java +++ b/src/com/spiteful/forbidden/items/wands/ItemWandCaps.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Forbidden; import com.spiteful.forbidden.Compat; @@ -18,7 +18,7 @@ import thaumcraft.common.items.wands.ItemWandCasting; public class ItemWandCaps extends Item { - public final String[] types = {"alchemical", "vinteum", "soul"}; + public final String[] types = {"alchemical", "vinteum", "soul", "manasteel", "manasteel_inert"}; public Icon[] icon; diff --git a/src/com/spiteful/forbidden/items/wands/ItemWandCores.java b/src/com/spiteful/forbidden/items/wands/ItemWandCores.java new file mode 100644 index 0000000..d6bbdc8 --- /dev/null +++ b/src/com/spiteful/forbidden/items/wands/ItemWandCores.java @@ -0,0 +1,103 @@ +package com.spiteful.forbidden.items.wands; + +import com.spiteful.forbidden.Forbidden; +import com.spiteful.forbidden.Compat; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import java.util.List; +import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.Icon; +import thaumcraft.api.ItemApi; +import thaumcraft.api.wands.WandCap; +import thaumcraft.api.wands.WandRod; +import thaumcraft.common.items.wands.ItemWandCasting; + +public class ItemWandCores extends Item { + + public final String[] types = {"tainted", "infernal", "soul", "blood", "witchwood", "totem", "blood_inert", "livingwood", "livingwood_inert"}; + public Icon[] icon; + + + public ItemWandCores(int par1) { + super(par1); + this.setMaxStackSize(64); + this.setHasSubtypes(true); + this.setMaxDamage(0); + this.setCreativeTab(Forbidden.tab); + } + + @SideOnly(Side.CLIENT) + public void registerIcons(IconRegister ir) { + icon = new Icon[types.length]; + for(int x = 0; x < types.length; x++) + this.icon[x] = ir.registerIcon("forbidden:wand_rod_" + types[x]); + } + + @SideOnly(Side.CLIENT) + public Icon getIconFromDamage(int meta) { + return this.icon[meta]; + } + + @SideOnly(Side.CLIENT) + public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { + for(int x = 0; x < types.length; x++){ + par3List.add(new ItemStack(this, 1, x)); + } + + ItemStack wand = ItemApi.getItem("itemWandCasting", 72); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("thaumium")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("tainted")); + par3List.add(wand); + wand = ItemApi.getItem("itemWandCasting", 72); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("thaumium")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("infernal")); + par3List.add(wand); + wand = ItemApi.getItem("itemWandCasting", 2000); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("orichalcum")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("neutronium")); + par3List.add(wand); + if(Compat.pb) + { + wand = ItemApi.getItem("itemWandCasting", 84); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("soul")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("soul")); + par3List.add(wand); + } + if(Compat.bm) + { + wand = ItemApi.getItem("itemWandCasting", 84); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("alchemical")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("blood")); + par3List.add(wand); + } + if(Compat.am2) + { + wand = ItemApi.getItem("itemWandCasting", 72); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("vinteum")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("witchwood")); + par3List.add(wand); + } + if(Compat.totes) + { + wand = ItemApi.getItem("itemWandCasting", 24); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("thaumium")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("totem")); + par3List.add(wand); + } + if(Compat.botan) + { + wand = ItemApi.getItem("itemWandCasting", 84); + ((ItemWandCasting)wand.getItem()).setCap(wand, (WandCap)WandCap.caps.get("manasteel")); + ((ItemWandCasting)wand.getItem()).setRod(wand, (WandRod)WandRod.rods.get("livingwood")); + par3List.add(wand); + } + } + + public String getUnlocalizedName(ItemStack par1ItemStack) { + return super.getUnlocalizedName() + "." + types[par1ItemStack.getItemDamage()]; + } +} diff --git a/src/com/spiteful/forbidden/items/ManaWandUpdate.java b/src/com/spiteful/forbidden/items/wands/ManaWandUpdate.java similarity index 96% rename from src/com/spiteful/forbidden/items/ManaWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/ManaWandUpdate.java index 46b4fba..f7d336e 100644 --- a/src/com/spiteful/forbidden/items/ManaWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/ManaWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; import com.spiteful.forbidden.Compat; diff --git a/src/com/spiteful/forbidden/items/SoulWandUpdate.java b/src/com/spiteful/forbidden/items/wands/SoulWandUpdate.java similarity index 98% rename from src/com/spiteful/forbidden/items/SoulWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/SoulWandUpdate.java index 7d605b1..2d08edc 100644 --- a/src/com/spiteful/forbidden/items/SoulWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/SoulWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; import com.spiteful.forbidden.Compat; diff --git a/src/com/spiteful/forbidden/items/TaintedWandUpdate.java b/src/com/spiteful/forbidden/items/wands/TaintedWandUpdate.java similarity index 95% rename from src/com/spiteful/forbidden/items/TaintedWandUpdate.java rename to src/com/spiteful/forbidden/items/wands/TaintedWandUpdate.java index e540f94..8d45e14 100644 --- a/src/com/spiteful/forbidden/items/TaintedWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/TaintedWandUpdate.java @@ -1,4 +1,4 @@ -package com.spiteful.forbidden.items; +package com.spiteful.forbidden.items.wands; import com.spiteful.forbidden.Config; diff --git a/src/com/spiteful/forbidden/items/wands/TotemWandUpdate.java b/src/com/spiteful/forbidden/items/wands/TotemWandUpdate.java new file mode 100644 index 0000000..5416958 --- /dev/null +++ b/src/com/spiteful/forbidden/items/wands/TotemWandUpdate.java @@ -0,0 +1,59 @@ +package com.spiteful.forbidden.items.wands; + +import com.spiteful.forbidden.Config; +import com.spiteful.forbidden.Compat; + +import java.util.ArrayList; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import thaumcraft.api.aspects.Aspect; +import thaumcraft.api.wands.IWandRodOnUpdate; +import thaumcraft.common.items.wands.ItemWandCasting; + +public class TotemWandUpdate implements IWandRodOnUpdate { + + Aspect primals[] = Aspect.getPrimalAspects().toArray(new Aspect[0]); + + public void onUpdate(ItemStack itemstack, EntityPlayer player) + { + if(Compat.totes && Compat.fennCrystal != null && player.ticksExisted % 30 == 0) + { + try + { + ArrayList unfilled = new ArrayList(); + for(int x = 0;x < primals.length;x++) + { + if(((ItemWandCasting)itemstack.getItem()).getVis(itemstack, primals[x]) < ((ItemWandCasting)itemstack.getItem()).getMaxVis(itemstack)) + { + unfilled.add(primals[x]); + } + } + if(unfilled.size() > 0 && siphonPlant(player)) + ((ItemWandCasting)itemstack.getItem()).addVis(itemstack, (Aspect)(unfilled.get(player.worldObj.rand.nextInt(unfilled.size()))), 1, true); + + } + catch(Exception e) + { + return; + } + } + + } + + public boolean siphonPlant(EntityPlayer player) + { + for(int x = 0; x < player.inventory.getSizeInventory(); ++x) + { + ItemStack item = player.inventory.getStackInSlot(x); + if(item != null && item.itemID == Compat.fennCrystal.itemID) + { + if(item.getItemDamage() <= 995) + { + item.setItemDamage(item.getItemDamage() + 5); + return true; + } + } + } + return false; + } +} diff --git a/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java b/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java new file mode 100644 index 0000000..1ac7cac --- /dev/null +++ b/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java @@ -0,0 +1,50 @@ +package com.spiteful.forbidden.items.wands; + +import com.spiteful.forbidden.Config; +import com.spiteful.forbidden.Compat; + +import java.util.ArrayList; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import thaumcraft.api.aspects.Aspect; +import thaumcraft.api.wands.IWandRodOnUpdate; +import thaumcraft.common.items.wands.ItemWandCasting; +import vazkii.botania.api.mana.ManaItemHandler; + +public class YandereWandUpdate implements IWandRodOnUpdate { + + Aspect primals[] = Aspect.getPrimalAspects().toArray(new Aspect[0]); + + public void onUpdate(ItemStack itemstack, EntityPlayer player) + { + if(Compat.botan && player.ticksExisted % 30 == 0) + { + try + { + int cost; + if(((ItemWandCasting)itemstack.getItem()).getCap(itemstack).getTag().equals("manasteel")) + cost = 600; + else + cost = 800; + + ArrayList unfilled = new ArrayList(); + for(int x = 0;x < primals.length;x++) + { + if(((ItemWandCasting)itemstack.getItem()).getVis(itemstack, primals[x]) < ((ItemWandCasting)itemstack.getItem()).getMaxVis(itemstack)) + { + unfilled.add(primals[x]); + } + } + if(unfilled.size() > 0 && ManaItemHandler.requestManaExact(itemstack, player, cost, true)) + ((ItemWandCasting)itemstack.getItem()).addVis(itemstack, (Aspect)(unfilled.get(player.worldObj.rand.nextInt(unfilled.size()))), 1, true); + + } + catch(Throwable e) + { + return; + } + } + + } + +} diff --git a/src/mcmod.info b/src/mcmod.info index 9a16b94..dd54896 100644 --- a/src/mcmod.info +++ b/src/mcmod.info @@ -2,7 +2,7 @@ { "modid" : "ForbiddenMagic", "name" : "Forbidden Magic", - "version" : "v0.32", + "version" : "v0.33", "url" : "http://www.minecraftforum.net/topic/2305054-/", "credits" : "Azanor, Flaxbeard, Killajoke, LycaonX, Nieue, Succubism, Vazkii", "authors": [