Compare commits

..
42 Commits
Author SHA1 Message Date
Martin Robertz 91afbb035a sa+deps 2025-04-29 12:18:00 +02:00
Martin Robertz 0877cf8cab Merge remote-tracking branch 'tiflu/master' into dev 2025-04-29 12:17:14 +02:00
tiflu 44dadfd139 Fixes missing texture particles when breaking or mining the Alchemic Calcinator. 2025-04-28 17:24:39 -05:00
tiflu 806d9aac1c Adds glass breaking sound to belljar, fixes missing texture particles when breaking, and allows the pickaxe to break the belljar quickly. 2025-04-28 17:23:41 -05:00
Martin Robertz 7891d769fb update 2025-04-28 20:46:14 +02:00
Martin Robertz 8b8937a137 Merge remote-tracking branch 'koolkrafter5/meteor-nei' into dev 2025-04-28 20:45:51 +02:00
koolkrafter5 395e9c6b10 This works to make it only show this info on the first page of results, which seems fine. 2025-04-25 07:50:41 -04:00
koolkrafter5 3eeabd90ae Make this message more clear 2025-04-25 07:50:41 -04:00
koolkrafter5 2321967bdb Capitalize this to match other text 2025-04-25 07:50:41 -04:00
koolkrafter5 2b0b688c98 Spotless 2025-04-25 07:50:41 -04:00
koolkrafter5 b721e43537 Move the + button down for the meteor handler so it's not on top of the item slot graphics. 2025-04-25 07:50:41 -04:00
koolkrafter5 f74f42d0f9 Add ritual (name and cost) and reagent (message saying there are none that apply) to the binding ritual handler. It shows them for every recipe. It should only show once per page, but I'm stumped on how to actually do that. 2025-04-25 07:50:41 -04:00
koolkrafter5 b02fa2f32d Revamp the NEI meteor handler.
Add a new Ritual Info widget that shows the required activation crystal, ritual name, and activation cost when hovered. Suitable for use in any other NEI ritual handlers.
Move the cost and radius to the top of the page so they don't get hidden with certain UI scales.
Cost now shows the blood orb required (works with any IBloodOrb, but does not account for Runes of the Orb). The orb is darkened and the hover text includes "Insufficient LP" if the player does not have enough LP to summon that meteor.
Radius shows the diameter (and its formula because it's actually 2r + 1) when hovered.
Add a new Reagent Effects widget (also suitable for use in other handlers), and have it show effects for the currently selected meteor (meteors with no filler will not show things that impact filler, new filler chance will be calculated, new radius will be calculated).
Center focus item and arrow on the texture because they were not centered before.
2025-04-25 07:50:41 -04:00
Martin Robertz 0d8650bed6 Merge remote-tracking branch 'koolkrafter5/meteor-nei' into dev 2025-04-25 13:43:34 +02:00
Martin Robertz e362e6dbae Merge remote-tracking branch 'koolkrafter5/item-refactor' into dev 2025-04-25 13:43:30 +02:00
koolkrafter5 f0596f1670 This works to make it only show this info on the first page of results, which seems fine. 2025-04-25 07:35:48 -04:00
koolkrafter5 180c7c0f3e Merge branch 'master' into item-refactor 2025-04-25 06:21:16 -04:00
koolkrafter5 60b0d380bf Merge branch 'master' into meteor-nei 2025-04-25 06:20:59 -04:00
koolkrafter5 22137e5ae1 Merge branch 'master' into meteor-nei 2025-04-21 18:13:12 -04:00
koolkrafter5 57fa14baf2 Make this message more clear 2025-04-21 18:08:32 -04:00
koolkrafter5 13748db6db Capitalize this to match other text 2025-04-21 18:00:30 -04:00
koolkrafter5 a29a4084ed Spotless 2025-04-21 17:49:07 -04:00
koolkrafter5 78b0acad7e Move the + button down for the meteor handler so it's not on top of the item slot graphics. 2025-04-21 17:44:31 -04:00
koolkrafter5 d24de9e13d Add ritual (name and cost) and reagent (message saying there are none that apply) to the binding ritual handler. It shows them for every recipe. It should only show once per page, but I'm stumped on how to actually do that. 2025-04-21 17:12:44 -04:00
koolkrafter5 ff8466ae00 Revamp the NEI meteor handler.
Add a new Ritual Info widget that shows the required activation crystal, ritual name, and activation cost when hovered. Suitable for use in any other NEI ritual handlers.
Move the cost and radius to the top of the page so they don't get hidden with certain UI scales.
Cost now shows the blood orb required (works with any IBloodOrb, but does not account for Runes of the Orb). The orb is darkened and the hover text includes "Insufficient LP" if the player does not have enough LP to summon that meteor.
Radius shows the diameter (and its formula because it's actually 2r + 1) when hovered.
Add a new Reagent Effects widget (also suitable for use in other handlers), and have it show effects for the currently selected meteor (meteors with no filler will not show things that impact filler, new filler chance will be calculated, new radius will be calculated).
Center focus item and arrow on the texture because they were not centered before.
2025-04-21 14:02:18 -04:00
koolkrafter5 caca7c5fc7 Merge branch 'master' into item-refactor 2025-04-20 16:20:38 -04:00
koolkrafter5 efc0c52bc8 Spotless 2025-04-20 06:58:40 -04:00
koolkrafter5 fc589690d0 Replace fields for tickDelay and isBoundTool as well as the drain cost and bound tool right click cost with overridable methods. Removed parameters from various methods and made some static methods instance methods as a consequence.
Improved the check for valid sigils to put in the Sigil of Holding by using an overridable method instead of checking if it's a SigilOfHolding.
2025-04-20 06:58:06 -04:00
koolkrafter5 3e40aa9708 Revert change to settings.gradle 2025-04-20 03:23:14 -04:00
Maya 8da3db4e65 Merge branch 'master' into item-refactor 2025-04-19 09:40:28 -05:00
koolkrafter5 b0096a3279 Spotless 2025-04-10 18:19:01 -04:00
koolkrafter5 681fa92af5 Simplify these tooltip methods. 2025-04-10 16:56:59 -04:00
koolkrafter5 e153c70116 Simplify this method. 2025-04-10 16:44:54 -04:00
koolkrafter5 1ea6d9c700 Replace hardcoded values 2025-04-10 16:37:23 -04:00
koolkrafter5 38a7bbbe55 Replace checkAndSetItemOwner in SoulNetworkHandler with a wrapper for the new version in IBindable.
Spotless.
2025-04-10 16:24:42 -04:00
koolkrafter5 082b41cb8c Add these back as wrappers for the new methods to fix a problem with Blood Arsenal. 2025-04-10 16:18:31 -04:00
koolkrafter5 5a6c998070 Remove quotes from "Developer" username set in gradle.properties. 2025-04-10 15:36:07 -04:00
koolkrafter5 b14aded91f Replace a bunch of duplicated checks done for various items with methods in IBindable.
Replace a bunch of duplicated checks for toggling sigils in ISigil.
Move static methods from EnergyItems to IBindable so they are more relevant for the bound tools (they don't extend EnergyItems because they need to extend the tool classes).
2025-04-10 15:25:15 -04:00
koolkrafter5 46a8c566d7 Make the Energy Bazooka extend the Energy Blaster because the two items are very similar and shared a lot of code. 2025-04-10 03:14:18 -04:00
koolkrafter5 ac59510594 Update syntax 2025-04-10 01:24:42 -04:00
koolkrafter5 d5a33f6f81 Use getTotalWorldTime 2025-04-10 00:07:59 -04:00
koolkrafter5 aad613b221 Make a generic method in order to remove tons of duplicate code that adds an item's owner and its active state to the tooltip. 2025-04-09 23:44:17 -04:00
88 changed files with 2395 additions and 2402 deletions

No files matched your search

+61 -55
View File
@@ -1,111 +1,117 @@
# Blood Magic: Alchemical Wizardry
#Blood Magic: Alchemical Wizardry
### Gruesome? Probably. Worth it? Definitely!
###Gruesome? Probably. Worth it? Definitely!
###[Downloads](http://minecraft.curseforge.com/mc-mods/224791-blood-magic/files)
## Fork
This mod was forked by the GT:NH Team to continue the development of the 1.7.10 branch.
## Information
##Information
Have you ever picked up a magic mod for Minecraft, and thought that it was too tame? Was there not enough danger involved when creating your next high-tech gadget? Bored with all of those peaceful animals just staring at you without a care in the world? Well then, I am glad you came here!
Blood Magic is an arcane art that is practiced by mages who attempt to gather a vast amount of power through utilizing a forbidden material: blood. Even though it does grant a huge amount of power, every single action that is performed with this volatile magic can prove deadly. You have been warned.
## Upstream Blood Magic Links
* Github: [Blood Magic](https://github.com/WayofTime/BloodMagic)
##Links
* Twitter: [@WayofTime](https://twitter.com/WayofTime)
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic). Most information is still relevant for this fork.
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic)
* [Minecraft Forum Thread](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1290532-bm)
* [CurseForge](https://www.curseforge.com/minecraft/mc-mods/blood-magic)
* [Donate to WayofTime on Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J7SNY7L82PQ82)
* [Donate to WayofTime on Patreon](https://www.patreon.com/BloodMagic)
* [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic)
* [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J7SNY7L82PQ82)
## GT:NH Links
* Wiki: Hosted on [Miraheze](https://wiki.gtnewhorizons.com/wiki/Blood_Magic). Contains both fork-specific and pack-specific information. It is currently very incomplete, so feel free to contribute!
* [Discord](https://discord.gg/gtnh): Talk to other players about Blood Magic and any other mods present in GT:NH.
* [Releases](https://github.com/GTNewHorizons/BloodMagic/releases)
##Issue Reporting
## Issue Reporting
Please include the following:
**DO NOT** report issues encountered when running this fork to upstream. Report issues for this mod on [the GT:NH issue tracker](https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/new/choose).
* Minecraft version
* Blood Magic version
* Forge version/build
* Versions of any mods potentially related to the issue
* Any relevant screenshots are greatly appreciated.
* For crashes:
* Steps to reproduce
* ForgeModLoader-client-0.log (the FML log) from the root folder of the client
## Development Setup
##Development Setup
1. Fork this project to your own Github repository and clone it to your desktop.
2. Navigate to the directory you cloned to. Open a command window there and run (if you use Eclipse) `gradlew eclipse` or (if you use IDEA) `gradlew idea`.
3. This process will setup [Forge](http://www.minecraftforge.net/forum/), your workspace, and all dependencies.
2. Navigate to the directory you cloned to. Open a command window there and run `gradlew setupDevWorkspace` then (if you use Eclipse) `gradlew eclipse` or (if you use IDEA) `gradlew idea`.
3. This process will setup [Forge](http://www.minecraftforge.net/forum/), your workspace, and link [MineTweaker](http://minetweaker3.powerofbytes.com/) as a dependency.
4. Open the project in your IDE of choice.
5. Set `../src/api/java` as a source directory.
[Setup video](https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be) by LexManos. For more information, refer to the [Forge Forums](http://www.minecraftforge.net/forum/index.php/topic,14048.0.html).
## Custom Builds
##Custom Builds
### Custom builds are unsupported. If you have an issue using a build not by GT:NH, it is not guaranteed that you will get support.
###Custom builds are unsupported. If you have an issue using a build not by me (WayofTime), it is not guaranteed that you will get support.
#### How to make a custom build:
####How to make a custom build:
1. Clone directly from this repository to your desktop.
2. Navigate to the directory you cloned to. Open a command window there and run `gradlew build`
3. Once it completes, your new build will be found at `../build/libs/BloodMagic-*.jar`. You can ignore the `api`, `dev`, and `sources` jars.
3. Once it completes, your new build will be found at `../build/libs/BloodMagic-*.jar`. You can ignore the `deobf`, `sources`, and `javadoc` jars.
## License
##License
![CCA4.0](https://licensebuttons.net/l/by/4.0/88x31.png)
Blood Magic: Alchemical Wizardry by WayofTime is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
Blood Magic: AlchemicalWizardry by WayofTime is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
## Installation Instructions
##Installation Instructions
This mod requires "Minecraft Forge" in order to operate. It is incredibly easy to download and set up, so you might as well get to it!
This mod requires "Minecraft Forge" in order to operate. It is incredibly easy to download and set up, so might as well get to it!
1. Download [Forge](https://files.minecraftforge.net/net/minecraftforge/forge/index_1.7.10.html). "Recommended" and "Latest" will both yield the same files. Download "Universal" to install it manually. Forge also has an "Installer" option, so all you need to do is launch that program and it will make a lovely Forge profile.
2. Download the latest version of Blood Magic from the [Releases Page](https://github.com/GTNewHorizons/BloodMagic/releases) (ignore versions that end with `-pre` if you are not looking to test in-development features).
3. Place the mod in the `.minecraft/mods` folder. If you use the official Minecraft launcher from Mojang, check [this page](https://minecraft.wiki/w/.minecraft) on the Minecraft Wiki to find it. If you use a different launcher, check its interface for a "Minecraft Folder" button, "View Mods" button, or something similar.
1. Download [Forge](http://files.minecraftforge.net/). Usually "Recommended" is best - you want the "universal", not the source. Forge also has an "install" option now, so all you need to do is launch that program and it will make a lovely Forge profile. If you haven't, look up how to use the installer and the new 1.6.x launcher if you are confused!
## FAQ
2. Download the latest version of BloodMagic from [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic).
**Q**: What has changed in the GT:NH fork compared to the final 1.7.10 version released by WayofTime?
3. Place the mod in the **mods** folder of your .minecraft. If you are unsure of where that is located, it is here: `../Users/you/AppData/roaming/.minecraft`.
**A**: Many things, including:
* Better configuration for meteors summoned by the Mark of the Falling Tower ritual. Run the mod once and check config/BloodMagic/meteors/README for a guide on how to edit the default ones and create your own. The old ModTweaker system should still work, but this new system is far more powerful and configurable for pack developers.
* [Buffs](https://github.com/GTNewHorizons/BloodMagic/pull/15) to various Blood Altar upgrade runes.
* The [Rune of Quickness](https://github.com/GTNewHorizons/BloodMagic/pull/51), a new rune which lowers the Blood Altar's delay between crafts.
* [Improvements](https://github.com/GTNewHorizons/BloodMagic/pull/85) to the Orchestra of the Phantom Hands.
* [Buffs](https://github.com/GTNewHorizons/BloodMagic/pull/83) to the Incense Crucible.
* NEI Handlers for the [Blood Altar's Structure](https://github.com/GTNewHorizons/BloodMagic/pull/81) (requires [StructureLib](https://github.com/GTNewHorizons/StructureLib) and [BlockRenderer6343](https://github.com/GTNewHorizons/BlockRenderer6343)), [Meteors](https://github.com/GTNewHorizons/BloodMagic/pull/17), and the [Alchemic Calcinator](https://github.com/GTNewHorizons/BloodMagic/pull/87).
* Configurable LP costs for many items and rituals.
* Many other bug fixes, new localizations, and quality of life improvements!
##FAQ
**Q**: My weak blood orb doesn't show my current LP! Fix it please.
**A**: You need a Divination Sigil to view your essence. It does other things, too, so it is worth it!
**A**: The mechanic for viewing the player's essence has changed due to some issues with mechanics. You now need a Divination Sigil to view a player's essence. It does other things, too, so it is worth it!
**Q**: Why am I dying so much?
**A**: It might be a good idea to make sure that you have enough essence to do a task. If you don't have enough essence for, say, an imperfect ritual or a sigil, it will take it out of your health. If your health reaches 0... Well, you don't have to be a genius to see what would happen. Note that Rituals will only stop working and give you nausea, not kill you, so you don't have to worry about them quite as much.
**A**: It might be a good idea to make sure that you have enough essence to do a task. If you don't have enough essence for, say, an imperfect ritual, it will take it out of your health. If your health reaches 0... Well, you don't have to be a genius to see what would happen.
**Q**: Waffles?
**A**: Waffles!
**Q**: Where is x? When I watched spotlight "w", it had an item called x. Don't you need x to make y, before you can create z?
**Q**: Where is x? When I watched spotlight "w," it had an item called x. Don't you need x to make y, before you can create z?
**A**: It might be wise to look at a spotlight made for 1.7.10 (especially one for GT:NH), or check the changelogs. Versions of Blood Magic for more recent versions of Minecraft have some very different mechanics, which are not present in this version of the mod.
**A**: It might be wise to look at an updated spotlight, or check the changelogs. I'm not evil, so I do document everything that I can. There was most likely some issues with balance with the item, so it may have been removed for those reasons. Or you just grabbed the item from NEI without seeing it was a test item, in which case: shame on you!
**Q**: Isn't that armour ...
**A**: Yes, the bound armour and tool textures are from the mod EE2. Pahimar and WayofTime are good friends, and Pahimar has given his express permission for it, so need not worry!
[Proof](https://twitter.com/Pahimar/status/453590600689139712), [Archive](https://web.archive.org/web/20191208030719/https://twitter.com/Pahimar/status/453590600689139712).
**A**: Yes, the armour texture is from the mod EE2. Pahimar and I are good friends, and I decided to use it for the armour and tools. He has given me his express permission for it, so need not worry!
[Proof](https://twitter.com/Pahimar/status/453590600689139712).
**Q**: I've just had an amazing idea! Why not add an in-game book just like the Thaumonomicon?
**Q**: My game is crashing with the latest TC4!
**A**: The Sanguine Scientiem can be created by dropping a Mail Order Catalogue (craftable with [Guide-API](https://www.curseforge.com/minecraft/mc-mods/guide-api) installed). Some of the formatting is off, and it has not been updated with all the information specific to this fork, so readers beware.
**A**: To help stop this, remove the TC4 API from my Blood Magic zip file (if it is there). It should solve things.
**Q**: But, my Thaumcraft aspects are messed up!
**A**: Once again, remove the TC4 API from the Blood Magic zip file to solve this. Azanor changed some aspect combinations.
**Q**: When will 1.7.2 be released?
**A**: It's out! Go get it!
**Q**: Way, I've just had an amazing idea! Why not add an in-game book just like the Thaumonomicon?
**A**: This has been suggested several times. It I being worked on, and is proceeding quite well. Some framework needs to be completed, but it isn't a priority - ALL of the information you need is on this post, or online.
**Q**: Why do I not have a Sacrificial Orb? It's only showing up as a knife!
**A**: This is a config option. The person you saw with an orb had a config that changed the knife to an orb. The orb and knife function exactly the same way, but you can change the way it looks in the configs by looking for the "IDontLikeFun" option.
**A**: This is a config option. The person you saw with an orb had a config that changed the knife to an orb. The orb and knife function exactly the same way, but you can change it in the configs by looking for the "Idontlikefun" option.
**Q**: When I respawn, I come back with the "Soul Fray" potion effect and I don't create as much LP with the Sacrificial Dagger/Orb. What's happening?
**A**: This is due to the config option "RespawnWithDebuff", which was made to combat Zerg Rushing. Instead of dying and respawning again and again, why not look into making an [Incense Crucible](https://ftbwiki.org/Incense_Crucible) to boost the LP from your self-sacrifices, brewing a [refillable healing potion](https://ftbwiki.org/Potion_Flask_(Blood_Magic)) with the Alchemic Chemistry Set, or finding some villagers to show your [Dagger of Sacrifice](https://ftbwiki.org/Dagger_of_Sacrifice) to?
**Q**: When I respawn, I appear to only come back with 3 hearts. What's happening?
**A**: This is due to another config option in the "WhimpySettings," which is due to my attempt to combat Zerg Rushing. You can disable this if you really want to, but it shouldn't hurt unduly.
+8 -10
View File
@@ -23,22 +23,20 @@
*/
dependencies {
api("com.github.GTNewHorizons:waila:1.8.10:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.7.59-GTNH:dev")
api("com.github.GTNewHorizons:waila:1.8.4:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.7.40-GTNH:dev")
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.362:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.259:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Botania:1.12.12-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.13:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.6:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Botania:1.12.6-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.7:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.2:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Chisel:2.16.5-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:Chisel:2.16.2-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.2:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.1:dev") {transitive = false }
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.12:dev")
}
+2 -2
View File
@@ -41,11 +41,11 @@ developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
enableModernJavaSyntax = false
# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = true
enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
@@ -277,7 +277,6 @@ import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiHandler;
import WayofTime.alchemicalWizardry.common.tweaker.MineTweakerIntegration;
import WayofTime.alchemicalWizardry.compat.BloodMagicWailaPlugin;
import WayofTime.alchemicalWizardry.compat.structurelib.CompatStructureLib;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
@@ -494,7 +493,6 @@ public class AlchemicalWizardry {
public static boolean causeHungerWithRegen;
public static boolean causeHungerChatMessage = true;
public static boolean disableBoundToolsRightClick;
public static boolean allowPotionRepair;
public static BlockStack[] secondTierRunes = new BlockStack[10];
public static BlockStack[] thirdTierRunes = new BlockStack[10];
@@ -3333,10 +3331,6 @@ public class AlchemicalWizardry {
isFMPLoaded = Loader.isModLoaded("ForgeMultipart");
isChiselLoaded = Loader.isModLoaded("chisel");
if (Loader.isModLoaded("structurelib")) {
CompatStructureLib.init();
}
BloodMagicConfiguration.loadBlacklist();
BloodMagicConfiguration.blacklistRituals();
BloodMagicConfiguration.loadCustomLPValues();
@@ -131,7 +131,6 @@ public class BloodMagicConfiguration {
.getBoolean();
AlchemicalWizardry.causeHungerChatMessage = config.get("WimpySettings", "causeHungerChatMessage", true)
.getBoolean();
AlchemicalWizardry.allowPotionRepair = config.get("WimpySettings", "allowPotionRepair", true).getBoolean();
// AlchemicalWizardry.lockdownAltar = config.get("WimpySettings", "LockdownAltarWithRegen", true).getBoolean();
AlchemicalWizardry.lockdownAltar = false;
AlchemicalWizardry.disableBoundToolsRightClick = config
@@ -57,151 +57,117 @@ import cpw.mods.fml.common.registry.GameRegistry;
*/
public class ModBlocks {
// Blood Altar
public static Block bloodStoneBrick;
public static Block largeBloodStoneBrick;
public static BlockAltar blockAltar;
public static BloodRune bloodRune;
public static SpeedRune speedRune;
public static EfficiencyRune efficiencyRune;
public static RuneOfSacrifice runeOfSacrifice;
public static RuneOfSelfSacrifice runeOfSelfSacrifice;
public static Block blockCrucible;
public static Block largeBloodStoneBrick;
public static Block bloodStoneBrick;
public static Block blockCrystal;
// Rituals
public static Block imperfectRitualStone;
public static Block ritualStone;
public static Block blockMasterStone;
public static Block ritualStone;
public static Block imperfectRitualStone;
public static Block bloodSocket;
public static Block emptySocket;
public static Block armourForge;
public static Block blockWritingTable;
public static Block blockHomHeart;
public static Block blockPedestal;
public static Block blockPlinth;
public static Block blockStabilityGlyph;
public static Block blockEnchantmentGlyph;
// Reagents
public static Block blockWritingTable;
public static Block blockAlchemicCalcinator;
public static Block blockReagentConduit;
public static Block blockCrystalBelljar;
// Bound Armor
public static Block emptySocket;
public static Block bloodSocket;
public static Block armourForge;
// Spells
public static Block blockHomHeart;
public static Block blockLifeEssence;
public static Block blockTeleposer;
public static Block spectralBlock;
public static Block blockConduit;
public static Block blockBloodLight;
public static Block blockSpellEffect;
public static Block blockSpellParadigm;
public static Block blockSpellModifier;
public static Block blockSpellEnhancement;
// Misc
public static Block blockTeleposer;
public static Block spectralBlock;
public static Block blockBloodLight;
public static Block blockSpectralContainer;
public static Block blockLifeEssence;
public static Block blockDemonPortal;
public static Block blockDemonChest;
public static Block blockBuildingSchematicSaver;
public static Block blockDemonPortal;
public static Block blockReagentConduit;
public static Block blockAlchemicCalcinator;
public static Block blockCrystalBelljar;
public static Block blockDemonChest;
public static Block blockCrystal;
public static Block blockMimic;
public static Block blockEnchantmentGlyph;
public static Block blockStabilityGlyph;
public static Block blockCrucible;
public static void init() {
// Blood Altar
blockAltar = new BlockAltar();
bloodRune = new BloodRune();
speedRune = new SpeedRune();
efficiencyRune = new EfficiencyRune();
runeOfSacrifice = new RuneOfSacrifice();
runeOfSelfSacrifice = new RuneOfSelfSacrifice();
blockCrucible = new BlockCrucible();
bloodStoneBrick = new BloodStoneBrick();
largeBloodStoneBrick = new LargeBloodStoneBrick();
blockCrystal = new BlockCrystal();
// Rituals
imperfectRitualStone = new ImperfectRitualStone();
blockTeleposer = new BlockTeleposer();
spectralBlock = new SpectralBlock();
ritualStone = new RitualStone();
blockMasterStone = new BlockMasterStone();
blockPedestal = new BlockPedestal();
blockPlinth = new BlockPlinth();
blockStabilityGlyph = new BlockStabilityGlyph();
blockEnchantmentGlyph = new BlockEnchantmentGlyph();
// Reagents
blockWritingTable = new BlockWritingTable();
blockAlchemicCalcinator = new BlockAlchemicCalcinator();
blockReagentConduit = new BlockReagentConduit();
blockCrystalBelljar = new BlockBelljar();
// Bound Armor
emptySocket = new EmptySocket();
imperfectRitualStone = new ImperfectRitualStone();
bloodSocket = new BlockSocket();
armourForge = new ArmourForge();
// Spells
emptySocket = new EmptySocket();
largeBloodStoneBrick = new LargeBloodStoneBrick();
bloodStoneBrick = new BloodStoneBrick();
blockWritingTable = new BlockWritingTable();
blockHomHeart = new BlockHomHeart();
blockPedestal = new BlockPedestal();
blockPlinth = new BlockPlinth();
blockConduit = new BlockConduit();
blockBloodLight = new BlockBloodLightSource();
blockSpellEffect = new BlockSpellEffect();
blockSpellParadigm = new BlockSpellParadigm();
blockSpellModifier = new BlockSpellModifier();
blockSpellEnhancement = new BlockSpellEnhancement();
// Misc
blockTeleposer = new BlockTeleposer();
spectralBlock = new SpectralBlock();
blockBloodLight = new BlockBloodLightSource();
blockSpectralContainer = new BlockSpectralContainer();
blockLifeEssence = new LifeEssenceBlock();
blockDemonPortal = new BlockDemonPortal();
blockDemonChest = new BlockDemonChest();
blockBuildingSchematicSaver = new BlockSchematicSaver();
blockReagentConduit = new BlockReagentConduit();
blockAlchemicCalcinator = new BlockAlchemicCalcinator();
blockCrystalBelljar = new BlockBelljar();
blockDemonChest = new BlockDemonChest();
blockCrystal = new BlockCrystal();
blockMimic = new MimicBlock();
blockLifeEssence = new LifeEssenceBlock();
blockEnchantmentGlyph = new BlockEnchantmentGlyph();
blockStabilityGlyph = new BlockStabilityGlyph();
blockCrucible = new BlockCrucible();
}
public static void registerBlocksInPre() {
// Blood Altar
GameRegistry.registerBlock(ModBlocks.blockAltar, "Altar");
GameRegistry.registerBlock(
ModBlocks.bloodRune,
ItemBloodRuneBlock.class,
"AlchemicalWizardry" + (ModBlocks.bloodRune.getUnlocalizedName().substring(5)));
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
GameRegistry.registerBlock(ModBlocks.speedRune, "speedRune");
GameRegistry.registerBlock(ModBlocks.efficiencyRune, "efficiencyRune");
GameRegistry.registerBlock(ModBlocks.runeOfSacrifice, "runeOfSacrifice");
GameRegistry.registerBlock(ModBlocks.runeOfSelfSacrifice, "runeOfSelfSacrifice");
GameRegistry.registerBlock(ModBlocks.blockCrucible, "blockCrucible");
GameRegistry.registerBlock(ModBlocks.largeBloodStoneBrick, "largeBloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.bloodStoneBrick, "bloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.blockCrystal, ItemCrystalBlock.class, "blockCrystal");
// Rituals
GameRegistry.registerBlock(ModBlocks.imperfectRitualStone, "imperfectRitualStone");
GameRegistry.registerBlock(ModBlocks.ritualStone, "ritualStone");
GameRegistry.registerBlock(ModBlocks.blockMasterStone, "masterStone");
GameRegistry.registerBlock(ModBlocks.bloodSocket, "bloodSocket");
GameRegistry.registerBlock(ModBlocks.imperfectRitualStone, "imperfectRitualStone");
GameRegistry.registerBlock(ModBlocks.armourForge, "armourForge");
GameRegistry.registerBlock(ModBlocks.emptySocket, "emptySocket");
GameRegistry.registerBlock(ModBlocks.bloodStoneBrick, "bloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.largeBloodStoneBrick, "largeBloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.blockWritingTable, "blockWritingTable");
GameRegistry.registerBlock(ModBlocks.blockHomHeart, "blockHomHeart");
GameRegistry.registerBlock(ModBlocks.blockPedestal, "blockPedestal");
GameRegistry.registerBlock(ModBlocks.blockPlinth, "blockPlinth");
GameRegistry.registerBlock(ModBlocks.blockStabilityGlyph, ItemStabilityGlyphBlock.class, "blockStabilityGlyph");
GameRegistry.registerBlock(
ModBlocks.blockEnchantmentGlyph,
ItemEnchantmentGlyphBlock.class,
"blockEnchantmentGlyph");
GameRegistry.registerBlock(ModBlocks.blockTeleposer, "blockTeleposer");
GameRegistry.registerBlock(ModBlocks.spectralBlock, "spectralBlock");
GameRegistry.registerBlock(ModBlocks.blockBloodLight, "bloodLight");
// Reagents
GameRegistry.registerBlock(ModBlocks.blockWritingTable, "blockWritingTable");
GameRegistry.registerBlock(ModBlocks.blockAlchemicCalcinator, "blockAlchemicCalcinator");
GameRegistry.registerBlock(ModBlocks.blockReagentConduit, "blockReagentConduit");
GameRegistry.registerBlock(ModBlocks.blockCrystalBelljar, ItemBlockCrystalBelljar.class, "blockCrystalBelljar");
// Bound Armor
GameRegistry.registerBlock(ModBlocks.emptySocket, "emptySocket");
GameRegistry.registerBlock(ModBlocks.bloodSocket, "bloodSocket");
GameRegistry.registerBlock(ModBlocks.armourForge, "armourForge");
// Spells
GameRegistry.registerBlock(ModBlocks.blockHomHeart, "blockHomHeart");
GameRegistry.registerBlock(ModBlocks.blockConduit, "blockConduit");
GameRegistry.registerBlock(
ModBlocks.blockSpellParadigm,
@@ -220,16 +186,22 @@ public class ModBlocks {
ItemSpellEffectBlock.class,
"AlchemicalWizardry" + (ModBlocks.blockSpellEffect.getUnlocalizedName()));
// Misc
GameRegistry.registerBlock(ModBlocks.blockTeleposer, "blockTeleposer");
GameRegistry.registerBlock(ModBlocks.spectralBlock, "spectralBlock");
GameRegistry.registerBlock(ModBlocks.blockBloodLight, "bloodLight");
GameRegistry.registerBlock(ModBlocks.blockSpectralContainer, "spectralContainer");
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
GameRegistry.registerBlock(ModBlocks.blockDemonPortal, "demonPortalMain");
GameRegistry.registerBlock(ModBlocks.blockDemonChest, "blockDemonChest");
GameRegistry.registerBlock(ModBlocks.blockBuildingSchematicSaver, "blockSchemSaver");
GameRegistry.registerBlock(ModBlocks.blockReagentConduit, "blockReagentConduit");
GameRegistry.registerBlock(ModBlocks.blockAlchemicCalcinator, "blockAlchemicCalcinator");
GameRegistry.registerBlock(ModBlocks.blockCrystalBelljar, ItemBlockCrystalBelljar.class, "blockCrystalBelljar");
GameRegistry.registerBlock(ModBlocks.blockDemonChest, "blockDemonChest");
GameRegistry.registerBlock(ModBlocks.blockCrystal, ItemCrystalBlock.class, "blockCrystal");
GameRegistry.registerBlock(ModBlocks.blockMimic, "blockMimic");
GameRegistry.registerBlock(
ModBlocks.blockEnchantmentGlyph,
ItemEnchantmentGlyphBlock.class,
"blockEnchantmentGlyph");
GameRegistry.registerBlock(ModBlocks.blockStabilityGlyph, ItemStabilityGlyphBlock.class, "blockStabilityGlyph");
GameRegistry.registerBlock(ModBlocks.blockCrucible, "blockCrucible");
}
public static void registerBlocksInInit() {}
@@ -8,6 +8,7 @@ import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
import WayofTime.alchemicalWizardry.common.items.AWBaseItems;
import WayofTime.alchemicalWizardry.common.items.ActivationCrystal;
import WayofTime.alchemicalWizardry.common.items.AirScribeTool;
import WayofTime.alchemicalWizardry.common.items.ApprenticeBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor;
@@ -19,13 +20,17 @@ import WayofTime.alchemicalWizardry.common.items.BoundShovel;
import WayofTime.alchemicalWizardry.common.items.CheatyItem;
import WayofTime.alchemicalWizardry.common.items.CreativeDagger;
import WayofTime.alchemicalWizardry.common.items.DaggerOfSacrifice;
import WayofTime.alchemicalWizardry.common.items.DawnScribeTool;
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.DuskScribeTool;
import WayofTime.alchemicalWizardry.common.items.EarthScribeTool;
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
import WayofTime.alchemicalWizardry.common.items.EnergyBazooka;
import WayofTime.alchemicalWizardry.common.items.EnergyBlast;
import WayofTime.alchemicalWizardry.common.items.EnergySword;
import WayofTime.alchemicalWizardry.common.items.EnhancedTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.FireScribeTool;
import WayofTime.alchemicalWizardry.common.items.ItemAlchemyBase;
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
@@ -40,9 +45,9 @@ import WayofTime.alchemicalWizardry.common.items.MagicianBloodOrb;
import WayofTime.alchemicalWizardry.common.items.MasterBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ReinforcedTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.SacrificialDagger;
import WayofTime.alchemicalWizardry.common.items.ScribeTool;
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb;
import WayofTime.alchemicalWizardry.common.items.WaterScribeTool;
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
@@ -95,40 +100,122 @@ import cpw.mods.fml.common.registry.GameRegistry;
*/
public class ModItems {
// Orbs
public static Item weakBloodOrb;
public static Item apprenticeBloodOrb;
public static Item magicianBloodOrb;
public static Item masterBloodOrb;
public static Item archmageBloodOrb;
public static Item transcendentBloodOrb;
public static Item creativeFiller;
// Bound Tools/Weapons
public static Item energySword;
public static Item boundPickaxe;
public static Item boundAxe;
public static Item boundShovel;
public static Item customTool;
public static Item energyBlaster;
public static Item energyBlasterSecondTier;
public static Item energyBlasterThirdTier;
public static Item energyBazooka;
public static Item energyBazookaSecondTier;
public static Item energyBazookaThirdTier;
// Armor
public static Item itemBloodPack;
public static Item sanguineHelmet;
public static Item sanguineRobe;
public static Item sanguinePants;
public static Item sanguineBoots;
public static Item energySword;
public static Item lavaCrystal;
public static Item waterSigil;
public static Item lavaSigil;
public static Item voidSigil;
public static Item blankSlate;
public static Item reinforcedSlate;
public static Item sacrificialDagger;
public static Item daggerOfSacrifice;
public static Item airSigil;
public static Item sigilOfTheFastMiner;
public static Item sigilOfElementalAffinity;
public static Item sigilOfHaste;
public static Item sigilOfHolding;
public static Item divinationSigil;
public static Item waterScribeTool;
public static Item fireScribeTool;
public static Item earthScribeTool;
public static Item airScribeTool;
public static Item dawnScribeTool;
public static Item activationCrystal;
public static Item boundPickaxe;
public static Item boundAxe;
public static Item boundShovel;
public static Item boundHelmet;
public static Item boundPlate;
public static Item boundLeggings;
public static Item boundBoots;
public static Item weakBloodShard;
public static Item growthSigil;
public static Item blankSpell;
public static Item masterBloodOrb;
public static Item alchemyFlask;
public static Item standardBindingAgent;
public static Item mundanePowerCatalyst;
public static Item averagePowerCatalyst;
public static Item greaterPowerCatalyst;
public static Item mundaneLengtheningCatalyst;
public static Item averageLengtheningCatalyst;
public static Item greaterLengtheningCatalyst;
public static Item incendium;
public static Item magicales;
public static Item sanctus;
public static Item aether;
public static Item simpleCatalyst;
public static Item crepitous;
public static Item crystallos;
public static Item terrae;
public static Item aquasalus;
public static Item tennebrae;
public static Item demonBloodShard;
public static Item archmageBloodOrb;
public static Item sigilOfWind;
public static Item telepositionFocus;
public static Item enhancedTelepositionFocus;
public static Item reinforcedTelepositionFocus;
public static Item demonicTelepositionFocus;
public static Item imbuedSlate;
public static Item demonicSlate;
public static Item duskScribeTool;
public static Item sigilOfTheBridge;
public static Item armourInhibitor;
public static Item creativeFiller;
public static Item demonPlacer;
public static Item creativeDagger;
public static Item baseItems;
public static Item baseAlchemyItems;
public static Item weakFillingAgent;
public static Item standardFillingAgent;
public static Item enhancedFillingAgent;
public static Item weakBindingAgent;
public static Item itemRitualDiviner;
public static Item sanguineHelmet;
public static Item sanguineRobe;
public static Item sanguinePants;
public static Item sanguineBoots;
public static Item focusBloodBlast;
public static Item focusGravityWell;
public static Item sigilOfMagnetism;
public static Item itemKeyOfDiablo;
public static Item energyBazooka;
public static Item energyBazookaSecondTier;
public static Item energyBazookaThirdTier;
public static Item itemBloodLightSigil;
public static Item itemComplexSpellCrystal;
public static Item itemBloodFrame;
public static Item itemSigilOfEnderSeverance;
public static Item itemSigilOfSupression;
public static Item itemFluidSigil;
public static Item itemSeerSigil;
public static Item itemCombinationalCatalyst;
public static Item customTool;
public static Item itemAttunedCrystal;
public static Item itemTankSegmenter;
public static Item itemDestinationClearer;
public static Item itemHarvestSigil;
public static Item itemCompressionSigil;
public static Item bucketLife;
public static Item itemBloodPack;
public static Item transcendentBloodOrb;
public static Item itemAssassinSigil;
public static Item boundHelmetWater;
public static Item boundPlateWater;
@@ -150,146 +237,123 @@ public class ModItems {
public static Item boundLeggingsFire;
public static Item boundBootsFire;
// Sigils
// T1
public static Item divinationSigil;
public static Item itemSeerSigil;
public static Item waterSigil;
public static Item lavaSigil;
// T2
public static Item airSigil;
public static Item voidSigil;
public static Item growthSigil;
public static Item sigilOfTheFastMiner;
// T3
public static Item sigilOfElementalAffinity;
public static Item itemBloodLightSigil;
public static Item sigilOfTheBridge;
public static Item sigilOfMagnetism;
public static Item sigilOfHolding;
// T4
public static Item sigilOfWind;
public static Item itemSigilOfSupression;
public static Item sigilOfHaste;
public static Item itemSigilOfEnderSeverance;
public static Item itemCompressionSigil;
// T5
public static Item itemHarvestSigil;
// Unimplemented
public static Item itemFluidSigil;
public static Item itemAssassinSigil;
// Crafting Materials
public static Item blankSlate;
public static Item reinforcedSlate;
public static Item imbuedSlate;
public static Item demonicSlate;
public static Item baseItems;
public static Item weakBloodShard;
public static Item demonBloodShard;
public static Item bucketLife;
// Alchemy
// Potions
public static Item alchemyFlask;
public static Item simpleCatalyst;
public static Item weakBindingAgent;
public static Item standardBindingAgent;
public static Item mundanePowerCatalyst;
public static Item averagePowerCatalyst;
public static Item greaterPowerCatalyst;
public static Item mundaneLengtheningCatalyst;
public static Item averageLengtheningCatalyst;
public static Item greaterLengtheningCatalyst;
public static Item weakFillingAgent;
public static Item standardFillingAgent;
public static Item enhancedFillingAgent;
// Reagents
public static Item itemAttunedCrystal;
public static Item itemTankSegmenter;
public static Item itemDestinationClearer;
public static Item incendium;
public static Item magicales;
public static Item sanctus;
public static Item aether;
public static Item crepitous;
public static Item crystallos;
public static Item terrae;
public static Item aquasalus;
public static Item tennebrae;
// Other Alchemy Items
public static Item baseAlchemyItems;
public static Item itemIncense;
// Unused
public static Item itemCombinationalCatalyst;
// Utility
public static Item sacrificialDagger;
public static Item daggerOfSacrifice;
public static Item creativeDagger;
public static Item lavaCrystal;
public static Item itemKeyOfDiablo;
public static Item armourInhibitor;
public static Item telepositionFocus;
public static Item enhancedTelepositionFocus;
public static Item reinforcedTelepositionFocus;
public static Item demonicTelepositionFocus;
public static Item inputRoutingFocus;
public static Item outputRoutingFocus;
public static Item blankSpell;
public static Item itemComplexSpellCrystal;
public static Item demonPlacer;
// Rituals
public static Item waterScribeTool;
public static Item fireScribeTool;
public static Item earthScribeTool;
public static Item airScribeTool;
public static Item duskScribeTool;
public static Item dawnScribeTool;
public static Item itemRitualDiviner;
public static Item ritualDismantler;
public static Item activationCrystal;
// Guide-API
public static Item itemMailCatalogue;
// Unimplemented
public static Item focusBloodBlast;
public static Item focusGravityWell;
public static Item itemBloodFrame;
public static Item itemIncense;
public static Item ritualDismantler;
public static void init() {
// Orbs
weakBloodOrb = new EnergyBattery(5000).setUnlocalizedName("weakBloodOrb");
apprenticeBloodOrb = new ApprenticeBloodOrb(25000).setUnlocalizedName("apprenticeBloodOrb");
magicianBloodOrb = new MagicianBloodOrb(150000).setUnlocalizedName("magicianBloodOrb");
masterBloodOrb = new MasterBloodOrb(1000000).setUnlocalizedName("masterBloodOrb");
archmageBloodOrb = new ArchmageBloodOrb(10000000).setUnlocalizedName("archmageBloodOrb");
transcendentBloodOrb = new TranscendentBloodOrb(30000000).setUnlocalizedName("transcendentBloodOrb");
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
// Bound Tools/Weapons
energySword = new EnergySword().setUnlocalizedName("energySword");
boundPickaxe = new BoundPickaxe().setUnlocalizedName("boundPickaxe");
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
boundShovel = new BoundShovel().setUnlocalizedName("boundShovel");
customTool = new ItemSpellMultiTool().setUnlocalizedName("multiTool");
SpellParadigmTool.customTool = customTool;
energyBlaster = new EnergyBlast(1).setUnlocalizedName("energyBlast");
energyBlasterSecondTier = new EnergyBlast(2).setUnlocalizedName("energyBlastSecondTier");
energyBlasterThirdTier = new EnergyBlast(3).setUnlocalizedName("energyBlastThirdTier");
energyBazooka = new EnergyBazooka(1).setUnlocalizedName("energyBazooka");
energyBazookaSecondTier = new EnergyBazooka(2).setUnlocalizedName("energyBazookaSecondTier");
energyBazookaThirdTier = new EnergyBazooka(3).setUnlocalizedName("energyBazookaThirdTier");
// Armor
itemBloodPack = new ItemBloodLetterPack().setUnlocalizedName("itemBloodPack");
energySword = new EnergySword().setUnlocalizedName("energySword");
lavaCrystal = new LavaCrystal().setUnlocalizedName("lavaCrystal");
waterSigil = new SigilWater().setUnlocalizedName("waterSigil");
lavaSigil = new SigilLava().setUnlocalizedName("lavaSigil");
voidSigil = new SigilVoid().setUnlocalizedName("voidSigil");
blankSlate = new AWBaseItems().setUnlocalizedName("blankSlate");
reinforcedSlate = new AWBaseItems().setUnlocalizedName("reinforcedSlate");
sacrificialDagger = new SacrificialDagger().setUnlocalizedName("sacrificialDagger");
daggerOfSacrifice = new DaggerOfSacrifice().setUnlocalizedName("daggerOfSacrifice");
airSigil = new SigilAir().setUnlocalizedName("airSigil");
sigilOfTheFastMiner = new SigilOfTheFastMiner().setUnlocalizedName("sigilOfTheFastMiner");
sigilOfElementalAffinity = new SigilOfElementalAffinity().setUnlocalizedName("sigilOfElementalAffinity");
sigilOfHaste = new SigilOfHaste().setUnlocalizedName("sigilOfHaste");
sigilOfHolding = new SigilOfHolding().setUnlocalizedName("sigilOfHolding");
divinationSigil = new SigilDivination().setUnlocalizedName("divinationSigil");
waterScribeTool = new WaterScribeTool().setUnlocalizedName("waterScribeTool");
fireScribeTool = new FireScribeTool().setUnlocalizedName("fireScribeTool");
earthScribeTool = new EarthScribeTool().setUnlocalizedName("earthScribeTool");
airScribeTool = new AirScribeTool().setUnlocalizedName("airScribeTool");
activationCrystal = new ActivationCrystal();
boundPickaxe = new BoundPickaxe().setUnlocalizedName("boundPickaxe");
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
boundShovel = new BoundShovel().setUnlocalizedName("boundShovel");
boundHelmet = new BoundArmour(0).setUnlocalizedName("boundHelmet");
boundPlate = new BoundArmour(1).setUnlocalizedName("boundPlate");
boundLeggings = new BoundArmour(2).setUnlocalizedName("boundLeggings");
boundBoots = new BoundArmour(3).setUnlocalizedName("boundBoots");
weakBloodShard = new BloodShard().setUnlocalizedName("weakBloodShard");
growthSigil = new SigilOfGrowth().setUnlocalizedName("growthSigil");
blankSpell = new BlankSpell().setUnlocalizedName("blankSpell");
alchemyFlask = new AlchemyFlask().setUnlocalizedName("alchemyFlask");
standardBindingAgent = new StandardBindingAgent().setUnlocalizedName("standardBindingAgent");
mundanePowerCatalyst = new MundanePowerCatalyst().setUnlocalizedName("mundanePowerCatalyst");
averagePowerCatalyst = new AveragePowerCatalyst().setUnlocalizedName("averagePowerCatalyst");
greaterPowerCatalyst = new GreaterPowerCatalyst().setUnlocalizedName("greaterPowerCatalyst");
mundaneLengtheningCatalyst = new MundaneLengtheningCatalyst().setUnlocalizedName("mundaneLengtheningCatalyst");
averageLengtheningCatalyst = new AverageLengtheningCatalyst().setUnlocalizedName("averageLengtheningCatalyst");
greaterLengtheningCatalyst = new GreaterLengtheningCatalyst().setUnlocalizedName("greaterLengtheningCatalyst");
incendium = new AlchemyReagent().setUnlocalizedName("incendium");
magicales = new AlchemyReagent().setUnlocalizedName("magicales");
sanctus = new AlchemyReagent().setUnlocalizedName("sanctus");
aether = new AlchemyReagent().setUnlocalizedName("aether");
simpleCatalyst = new AlchemyReagent().setUnlocalizedName("simpleCatalyst");
crepitous = new AlchemyReagent().setUnlocalizedName("crepitous");
crystallos = new AlchemyReagent().setUnlocalizedName("crystallos");
terrae = new AlchemyReagent().setUnlocalizedName("terrae");
aquasalus = new AlchemyReagent().setUnlocalizedName("aquasalus");
tennebrae = new AlchemyReagent().setUnlocalizedName("tennebrae");
demonBloodShard = new BloodShard().setUnlocalizedName("demonBloodShard");
sigilOfWind = new SigilOfWind().setUnlocalizedName("sigilOfWind");
telepositionFocus = new TelepositionFocus(1).setUnlocalizedName("telepositionFocus");
enhancedTelepositionFocus = new EnhancedTelepositionFocus().setUnlocalizedName("enhancedTelepositionFocus");
reinforcedTelepositionFocus = new ReinforcedTelepositionFocus()
.setUnlocalizedName("reinforcedTelepositionFocus");
demonicTelepositionFocus = new DemonicTelepositionFocus().setUnlocalizedName("demonicTelepositionFocus");
imbuedSlate = new AWBaseItems().setUnlocalizedName("imbuedSlate");
demonicSlate = new AWBaseItems().setUnlocalizedName("demonicSlate");
duskScribeTool = new DuskScribeTool().setUnlocalizedName("duskScribeTool");
sigilOfTheBridge = new SigilOfTheBridge().setUnlocalizedName("sigilOfTheBridge");
armourInhibitor = new ArmourInhibitor().setUnlocalizedName("armourInhibitor");
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
demonPlacer = new DemonPlacer().setUnlocalizedName("demonPlacer");
creativeDagger = new CreativeDagger().setUnlocalizedName("creativeDagger");
weakFillingAgent = new WeakFillingAgent().setUnlocalizedName("weakFillingAgent");
standardFillingAgent = new StandardFillingAgent().setUnlocalizedName("standardFillingAgent");
enhancedFillingAgent = new EnhancedFillingAgent().setUnlocalizedName("enhancedFillingAgent");
weakBindingAgent = new WeakBindingAgent().setUnlocalizedName("weakBindingAgent");
itemRitualDiviner = new ItemRitualDiviner().setUnlocalizedName("ritualDiviner");
sigilOfMagnetism = new SigilOfMagnetism().setUnlocalizedName("sigilOfMagnetism");
itemKeyOfDiablo = new ItemDiabloKey().setUnlocalizedName("itemDiabloKey");
energyBazooka = new EnergyBazooka(1).setUnlocalizedName("energyBazooka");
energyBazookaSecondTier = new EnergyBazooka(2).setUnlocalizedName("energyBazookaSecondTier");
energyBazookaThirdTier = new EnergyBazooka(3).setUnlocalizedName("energyBazookaThirdTier");
itemBloodLightSigil = new SigilBloodLight().setUnlocalizedName("bloodLightSigil");
itemComplexSpellCrystal = new ItemComplexSpellCrystal().setUnlocalizedName("itemComplexSpellCrystal");
bucketLife = new LifeBucket(ModBlocks.blockLifeEssence).setUnlocalizedName("bucketLife")
.setContainerItem(Items.bucket).setCreativeTab(CreativeTabs.tabMisc);
itemSigilOfEnderSeverance = (new SigilOfEnderSeverance()).setUnlocalizedName("itemSigilOfEnderSeverance");
baseItems = new ItemComponents().setUnlocalizedName("baseItems");
baseAlchemyItems = new ItemAlchemyBase().setUnlocalizedName("baseAlchemyItems");
itemSigilOfSupression = new SigilOfSupression().setUnlocalizedName("itemSigilOfSupression");
itemFluidSigil = new SigilFluid().setUnlocalizedName("itemFluidSigil");
itemSeerSigil = new SigilSeer().setUnlocalizedName("itemSeerSigil");
customTool = new ItemSpellMultiTool().setUnlocalizedName("multiTool");
SpellParadigmTool.customTool = customTool;
itemCombinationalCatalyst = new CombinationalCatalyst().setUnlocalizedName("itemCombinationalCatalyst");
itemAttunedCrystal = new ItemAttunedCrystal().setUnlocalizedName("itemAttunedCrystal");
itemTankSegmenter = new ItemTankSegmenter().setUnlocalizedName("itemTankSegmenter");
itemDestinationClearer = new ItemDestinationClearer().setUnlocalizedName("destinationClearer");
dawnScribeTool = new DawnScribeTool().setUnlocalizedName("dawnScribeTool");
itemBloodPack = new ItemBloodLetterPack().setUnlocalizedName("itemBloodPack");
itemHarvestSigil = new SigilHarvest().setUnlocalizedName("itemHarvestSigil");
itemCompressionSigil = new SigilPackRat().setUnlocalizedName("itemCompressionSigil");
itemAssassinSigil = new SigilOfTheAssassin().setUnlocalizedName("itemAssassinSigil");
boundHelmetWater = new OmegaArmourWater(0).setUnlocalizedName("boundHelmetWater");
boundPlateWater = new OmegaArmourWater(1).setUnlocalizedName("boundPlateWater");
@@ -311,140 +375,122 @@ public class ModItems {
boundLeggingsFire = new OmegaArmourFire(2).setUnlocalizedName("boundLeggingsFire");
boundBootsFire = new OmegaArmourFire(3).setUnlocalizedName("boundBootsFire");
// Sigils
// T1
divinationSigil = new SigilDivination().setUnlocalizedName("divinationSigil");
itemSeerSigil = new SigilSeer().setUnlocalizedName("itemSeerSigil");
waterSigil = new SigilWater().setUnlocalizedName("waterSigil");
lavaSigil = new SigilLava().setUnlocalizedName("lavaSigil");
// T2
airSigil = new SigilAir().setUnlocalizedName("airSigil");
voidSigil = new SigilVoid().setUnlocalizedName("voidSigil");
growthSigil = new SigilOfGrowth().setUnlocalizedName("growthSigil");
sigilOfTheFastMiner = new SigilOfTheFastMiner().setUnlocalizedName("sigilOfTheFastMiner");
// T3
sigilOfElementalAffinity = new SigilOfElementalAffinity().setUnlocalizedName("sigilOfElementalAffinity");
itemBloodLightSigil = new SigilBloodLight().setUnlocalizedName("bloodLightSigil");
sigilOfTheBridge = new SigilOfTheBridge().setUnlocalizedName("sigilOfTheBridge");
sigilOfMagnetism = new SigilOfMagnetism().setUnlocalizedName("sigilOfMagnetism");
sigilOfHolding = new SigilOfHolding().setUnlocalizedName("sigilOfHolding");
// T4
sigilOfWind = new SigilOfWind().setUnlocalizedName("sigilOfWind");
itemSigilOfSupression = new SigilOfSupression().setUnlocalizedName("itemSigilOfSupression");
sigilOfHaste = new SigilOfHaste().setUnlocalizedName("sigilOfHaste");
itemSigilOfEnderSeverance = (new SigilOfEnderSeverance()).setUnlocalizedName("itemSigilOfEnderSeverance");
itemCompressionSigil = new SigilPackRat().setUnlocalizedName("itemCompressionSigil");
// T5
itemHarvestSigil = new SigilHarvest().setUnlocalizedName("itemHarvestSigil");
// Unimplemented
itemFluidSigil = new SigilFluid().setUnlocalizedName("itemFluidSigil");
itemAssassinSigil = new SigilOfTheAssassin().setUnlocalizedName("itemAssassinSigil");
// Crafting Materials
blankSlate = new AWBaseItems().setUnlocalizedName("blankSlate");
reinforcedSlate = new AWBaseItems().setUnlocalizedName("reinforcedSlate");
imbuedSlate = new AWBaseItems().setUnlocalizedName("imbuedSlate");
demonicSlate = new AWBaseItems().setUnlocalizedName("demonicSlate");
baseItems = new ItemComponents().setUnlocalizedName("baseItems");
weakBloodShard = new BloodShard().setUnlocalizedName("weakBloodShard");
demonBloodShard = new BloodShard().setUnlocalizedName("demonBloodShard");
bucketLife = new LifeBucket(ModBlocks.blockLifeEssence).setUnlocalizedName("bucketLife")
.setContainerItem(Items.bucket).setCreativeTab(CreativeTabs.tabMisc);
// Alchemy
// Potions
alchemyFlask = new AlchemyFlask().setUnlocalizedName("alchemyFlask");
simpleCatalyst = new AlchemyReagent().setUnlocalizedName("simpleCatalyst");
weakBindingAgent = new WeakBindingAgent().setUnlocalizedName("weakBindingAgent");
standardBindingAgent = new StandardBindingAgent().setUnlocalizedName("standardBindingAgent");
mundanePowerCatalyst = new MundanePowerCatalyst().setUnlocalizedName("mundanePowerCatalyst");
averagePowerCatalyst = new AveragePowerCatalyst().setUnlocalizedName("averagePowerCatalyst");
greaterPowerCatalyst = new GreaterPowerCatalyst().setUnlocalizedName("greaterPowerCatalyst");
mundaneLengtheningCatalyst = new MundaneLengtheningCatalyst().setUnlocalizedName("mundaneLengtheningCatalyst");
averageLengtheningCatalyst = new AverageLengtheningCatalyst().setUnlocalizedName("averageLengtheningCatalyst");
greaterLengtheningCatalyst = new GreaterLengtheningCatalyst().setUnlocalizedName("greaterLengtheningCatalyst");
weakFillingAgent = new WeakFillingAgent().setUnlocalizedName("weakFillingAgent");
standardFillingAgent = new StandardFillingAgent().setUnlocalizedName("standardFillingAgent");
enhancedFillingAgent = new EnhancedFillingAgent().setUnlocalizedName("enhancedFillingAgent");
// Reagents
itemAttunedCrystal = new ItemAttunedCrystal().setUnlocalizedName("itemAttunedCrystal");
itemTankSegmenter = new ItemTankSegmenter().setUnlocalizedName("itemTankSegmenter");
itemDestinationClearer = new ItemDestinationClearer().setUnlocalizedName("destinationClearer");
incendium = new AlchemyReagent().setUnlocalizedName("incendium");
magicales = new AlchemyReagent().setUnlocalizedName("magicales");
sanctus = new AlchemyReagent().setUnlocalizedName("sanctus");
aether = new AlchemyReagent().setUnlocalizedName("aether");
crepitous = new AlchemyReagent().setUnlocalizedName("crepitous");
crystallos = new AlchemyReagent().setUnlocalizedName("crystallos");
terrae = new AlchemyReagent().setUnlocalizedName("terrae");
aquasalus = new AlchemyReagent().setUnlocalizedName("aquasalus");
tennebrae = new AlchemyReagent().setUnlocalizedName("tennebrae");
// Other Alchemy Items
baseAlchemyItems = new ItemAlchemyBase().setUnlocalizedName("baseAlchemyItems");
itemIncense = new ItemIncense().setUnlocalizedName("bloodMagicIncenseItem");
// Unused
itemCombinationalCatalyst = new CombinationalCatalyst().setUnlocalizedName("itemCombinationalCatalyst");
// Utility
sacrificialDagger = new SacrificialDagger().setUnlocalizedName("sacrificialDagger");
daggerOfSacrifice = new DaggerOfSacrifice().setUnlocalizedName("daggerOfSacrifice");
creativeDagger = new CreativeDagger().setUnlocalizedName("creativeDagger");
lavaCrystal = new LavaCrystal().setUnlocalizedName("lavaCrystal");
itemKeyOfDiablo = new ItemDiabloKey().setUnlocalizedName("itemDiabloKey");
armourInhibitor = new ArmourInhibitor().setUnlocalizedName("armourInhibitor");
telepositionFocus = new TelepositionFocus(1).setUnlocalizedName("telepositionFocus");
enhancedTelepositionFocus = new EnhancedTelepositionFocus().setUnlocalizedName("enhancedTelepositionFocus");
reinforcedTelepositionFocus = new ReinforcedTelepositionFocus()
.setUnlocalizedName("reinforcedTelepositionFocus");
demonicTelepositionFocus = new DemonicTelepositionFocus().setUnlocalizedName("demonicTelepositionFocus");
inputRoutingFocus = new InputRoutingFocus().setUnlocalizedName("inputRoutingFocus");
outputRoutingFocus = new OutputRoutingFocus().setUnlocalizedName("outputRoutingFocus");
blankSpell = new BlankSpell().setUnlocalizedName("blankSpell");
itemComplexSpellCrystal = new ItemComplexSpellCrystal().setUnlocalizedName("itemComplexSpellCrystal");
demonPlacer = new DemonPlacer().setUnlocalizedName("demonPlacer");
// Rituals
waterScribeTool = new ScribeTool(1, "WaterScribeTool").setUnlocalizedName("waterScribeTool");
fireScribeTool = new ScribeTool(2, "FireScribeTool").setUnlocalizedName("fireScribeTool");
earthScribeTool = new ScribeTool(3, "EarthScribeTool").setUnlocalizedName("earthScribeTool");
airScribeTool = new ScribeTool(4, "AirScribeTool").setUnlocalizedName("airScribeTool");
duskScribeTool = new ScribeTool(5, "DuskScribeTool").setUnlocalizedName("duskScribeTool");
dawnScribeTool = new ScribeTool(6, "DawnScribeTool").setUnlocalizedName("dawnScribeTool");
itemRitualDiviner = new ItemRitualDiviner().setUnlocalizedName("ritualDiviner");
itemIncense = new ItemIncense().setUnlocalizedName("bloodMagicIncenseItem");
ritualDismantler = new ItemRitualDismantler().setUnlocalizedName("ritualDismantler");
activationCrystal = new ActivationCrystal();
}
public static void registerItems() {
// Orbs
GameRegistry.registerItem(ModItems.weakBloodOrb, "weakBloodOrb");
GameRegistry.registerItem(ModItems.apprenticeBloodOrb, "apprenticeBloodOrb");
GameRegistry.registerItem(ModItems.magicianBloodOrb, "magicianBloodOrb");
GameRegistry.registerItem(ModItems.masterBloodOrb, "masterBloodOrb");
GameRegistry.registerItem(ModItems.archmageBloodOrb, "archmageBloodOrb");
GameRegistry.registerItem(ModItems.transcendentBloodOrb, "transcendentBloodOrb");
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
// Bound Tools/Weapons
GameRegistry.registerItem(ModItems.energySword, "energySword");
GameRegistry.registerItem(ModItems.boundPickaxe, "boundPickaxe");
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
GameRegistry.registerItem(ModItems.boundShovel, "boundShovel");
GameRegistry.registerItem(ModItems.customTool, "customTool");
GameRegistry.registerItem(ModItems.energyBlaster, "energyBlaster");
GameRegistry.registerItem(ModItems.energyBlasterSecondTier, "energyBlasterSecondTier");
GameRegistry.registerItem(ModItems.energyBlasterThirdTier, "energyBlasterThirdTier");
GameRegistry.registerItem(ModItems.energyBazooka, "energyBazooka");
GameRegistry.registerItem(ModItems.energyBazookaSecondTier, "energyBazookaSecondTier");
GameRegistry.registerItem(ModItems.energyBazookaThirdTier, "energyBazookaThirdTier");
// Armor
GameRegistry.registerItem(ModItems.itemBloodPack, "itemBloodPack");
GameRegistry.registerItem(ModItems.energySword, "energySword");
GameRegistry.registerItem(ModItems.lavaCrystal, "lavaCrystal");
GameRegistry.registerItem(ModItems.waterSigil, "waterSigil");
GameRegistry.registerItem(ModItems.lavaSigil, "lavaSigil");
GameRegistry.registerItem(ModItems.voidSigil, "voidSigil");
GameRegistry.registerItem(ModItems.blankSlate, "blankSlate");
GameRegistry.registerItem(ModItems.reinforcedSlate, "reinforcedSlate");
GameRegistry.registerItem(ModItems.sacrificialDagger, "sacrificialKnife");
GameRegistry.registerItem(ModItems.daggerOfSacrifice, "daggerOfSacrifice");
GameRegistry.registerItem(ModItems.airSigil, "airSigil");
GameRegistry.registerItem(ModItems.sigilOfTheFastMiner, "sigilOfTheFastMiner");
GameRegistry.registerItem(ModItems.sigilOfElementalAffinity, "sigilOfElementalAffinity");
GameRegistry.registerItem(ModItems.sigilOfHaste, "sigilOfHaste");
GameRegistry.registerItem(ModItems.sigilOfHolding, "sigilOfHolding");
GameRegistry.registerItem(ModItems.divinationSigil, "divinationSigil");
GameRegistry.registerItem(ModItems.waterScribeTool, "waterScribeTool");
GameRegistry.registerItem(ModItems.fireScribeTool, "fireScribeTool");
GameRegistry.registerItem(ModItems.earthScribeTool, "earthScribeTool");
GameRegistry.registerItem(ModItems.airScribeTool, "airScribeTool");
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
GameRegistry.registerItem(ModItems.boundPickaxe, "boundPickaxe");
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
GameRegistry.registerItem(ModItems.boundShovel, "boundShovel");
GameRegistry.registerItem(ModItems.boundHelmet, "boundHelmet");
GameRegistry.registerItem(ModItems.boundPlate, "boundPlate");
GameRegistry.registerItem(ModItems.boundLeggings, "boundLeggings");
GameRegistry.registerItem(ModItems.boundBoots, "boundBoots");
GameRegistry.registerItem(ModItems.weakBloodShard, "weakBloodShard");
GameRegistry.registerItem(ModItems.growthSigil, "growthSigil");
GameRegistry.registerItem(ModItems.blankSpell, "blankSpell");
GameRegistry.registerItem(ModItems.masterBloodOrb, "masterBloodOrb");
GameRegistry.registerItem(ModItems.alchemyFlask, "alchemyFlask");
GameRegistry.registerItem(ModItems.standardBindingAgent, "standardBindingAgent");
GameRegistry.registerItem(ModItems.mundanePowerCatalyst, "mundanePowerCatalyst");
GameRegistry.registerItem(ModItems.averagePowerCatalyst, "averagePowerCatalyst");
GameRegistry.registerItem(ModItems.greaterPowerCatalyst, "greaterPowerCatalyst");
GameRegistry.registerItem(ModItems.mundaneLengtheningCatalyst, "mundaneLengtheningCatalyst");
GameRegistry.registerItem(ModItems.averageLengtheningCatalyst, "averageLengtheningCatalyst");
GameRegistry.registerItem(ModItems.greaterLengtheningCatalyst, "greaterLengtheningCatalyst");
GameRegistry.registerItem(ModItems.incendium, "incendium");
GameRegistry.registerItem(ModItems.magicales, "magicales");
GameRegistry.registerItem(ModItems.sanctus, "sanctus");
GameRegistry.registerItem(ModItems.aether, "aether");
GameRegistry.registerItem(ModItems.simpleCatalyst, "simpleCatalyst");
GameRegistry.registerItem(ModItems.crepitous, "crepitous");
GameRegistry.registerItem(ModItems.crystallos, "crystallos");
GameRegistry.registerItem(ModItems.terrae, "terrae");
GameRegistry.registerItem(ModItems.aquasalus, "aquasalus");
GameRegistry.registerItem(ModItems.tennebrae, "tennebrae");
GameRegistry.registerItem(ModItems.demonBloodShard, "demonBloodShard");
GameRegistry.registerItem(ModItems.archmageBloodOrb, "archmageBloodOrb");
GameRegistry.registerItem(ModItems.transcendentBloodOrb, "transcendentBloodOrb");
GameRegistry.registerItem(ModItems.sigilOfWind, "sigilOfWind");
GameRegistry.registerItem(ModItems.telepositionFocus, "telepositionFocus");
GameRegistry.registerItem(ModItems.enhancedTelepositionFocus, "enhancedTelepositionFocus");
GameRegistry.registerItem(ModItems.reinforcedTelepositionFocus, "reinforcedTelepositionFocus");
GameRegistry.registerItem(ModItems.demonicTelepositionFocus, "demonicTelepositionFocus");
GameRegistry.registerItem(ModItems.imbuedSlate, "imbuedSlate");
GameRegistry.registerItem(ModItems.demonicSlate, "demonicSlate");
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
GameRegistry.registerItem(ModItems.sigilOfTheBridge, "sigilOfTheBridge");
GameRegistry.registerItem(ModItems.armourInhibitor, "armourInhibitor");
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
GameRegistry.registerItem(ModItems.demonPlacer, "demonPlacer");
GameRegistry.registerItem(ModItems.creativeDagger, "creativeDagger");
GameRegistry.registerItem(ModItems.weakFillingAgent, "weakFillingAgent");
GameRegistry.registerItem(ModItems.standardFillingAgent, "standardFillingAgent");
GameRegistry.registerItem(ModItems.enhancedFillingAgent, "enhancedFillingAgent");
GameRegistry.registerItem(ModItems.weakBindingAgent, "weakBindingAgent");
GameRegistry.registerItem(ModItems.itemRitualDiviner, "itemRitualDiviner");
GameRegistry.registerItem(ModItems.sigilOfMagnetism, "sigilOfMagnetism");
GameRegistry.registerItem(ModItems.itemKeyOfDiablo, "itemKeyOfDiablo");
GameRegistry.registerItem(ModItems.energyBazooka, "energyBazooka");
GameRegistry.registerItem(ModItems.energyBazookaSecondTier, "energyBazookaSecondTier");
GameRegistry.registerItem(ModItems.energyBazookaThirdTier, "energyBazookaThirdTier");
GameRegistry.registerItem(ModItems.itemBloodLightSigil, "itemBloodLightSigil");
GameRegistry.registerItem(ModItems.itemComplexSpellCrystal, "itemComplexSpellCrystal");
GameRegistry.registerItem(ModItems.itemSigilOfSupression, "sigilOfSupression");
GameRegistry.registerItem(ModItems.itemSigilOfEnderSeverance, "sigilOfEnderSeverance");
GameRegistry.registerItem(ModItems.itemFluidSigil, "fluidSigil");
GameRegistry.registerItem(ModItems.itemSeerSigil, "seerSigil");
GameRegistry.registerItem(ModItems.customTool, "customTool");
GameRegistry.registerItem(ModItems.bucketLife, "bucketLife");
GameRegistry.registerItem(ModItems.itemCombinationalCatalyst, "itemCombinationalCatalyst");
GameRegistry.registerItem(ModItems.itemAttunedCrystal, "itemAttunedCrystal");
GameRegistry.registerItem(ModItems.itemTankSegmenter, "itemTankSegmenter");
GameRegistry.registerItem(ModItems.itemDestinationClearer, "itemDestinationClearer");
GameRegistry.registerItem(ModItems.baseItems, "bloodMagicBaseItems");
GameRegistry.registerItem(ModItems.baseAlchemyItems, "bloodMagicBaseAlchemyItems");
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
GameRegistry.registerItem(ModItems.itemBloodPack, "itemBloodPack");
GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil");
GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil");
GameRegistry.registerItem(ModItems.itemAssassinSigil, "itemAssassinSigil");
GameRegistry.registerItem(ModItems.boundHelmetWater, "boundHelmetWater");
GameRegistry.registerItem(ModItems.boundPlateWater, "boundPlateWater");
@@ -466,105 +512,10 @@ public class ModItems {
GameRegistry.registerItem(ModItems.boundLeggingsFire, "boundLeggingsFire");
GameRegistry.registerItem(ModItems.boundBootsFire, "boundBootsFire");
// Sigils
// T1
GameRegistry.registerItem(ModItems.divinationSigil, "divinationSigil");
GameRegistry.registerItem(ModItems.itemSeerSigil, "seerSigil");
GameRegistry.registerItem(ModItems.waterSigil, "waterSigil");
GameRegistry.registerItem(ModItems.lavaSigil, "lavaSigil");
// T2
GameRegistry.registerItem(ModItems.airSigil, "airSigil");
GameRegistry.registerItem(ModItems.voidSigil, "voidSigil");
GameRegistry.registerItem(ModItems.growthSigil, "growthSigil");
GameRegistry.registerItem(ModItems.sigilOfTheFastMiner, "sigilOfTheFastMiner");
// T3
GameRegistry.registerItem(ModItems.sigilOfElementalAffinity, "sigilOfElementalAffinity");
GameRegistry.registerItem(ModItems.sigilOfTheBridge, "sigilOfTheBridge");
GameRegistry.registerItem(ModItems.itemBloodLightSigil, "itemBloodLightSigil");
GameRegistry.registerItem(ModItems.sigilOfMagnetism, "sigilOfMagnetism");
GameRegistry.registerItem(ModItems.sigilOfHolding, "sigilOfHolding");
// T4
GameRegistry.registerItem(ModItems.sigilOfWind, "sigilOfWind");
GameRegistry.registerItem(ModItems.itemSigilOfSupression, "sigilOfSupression");
GameRegistry.registerItem(ModItems.sigilOfHaste, "sigilOfHaste");
GameRegistry.registerItem(ModItems.itemSigilOfEnderSeverance, "sigilOfEnderSeverance");
GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil");
// T5
GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil");
// Unimplemented
GameRegistry.registerItem(ModItems.itemFluidSigil, "fluidSigil");
GameRegistry.registerItem(ModItems.itemAssassinSigil, "itemAssassinSigil");
// Crafting Materials
GameRegistry.registerItem(ModItems.blankSlate, "blankSlate");
GameRegistry.registerItem(ModItems.reinforcedSlate, "reinforcedSlate");
GameRegistry.registerItem(ModItems.imbuedSlate, "imbuedSlate");
GameRegistry.registerItem(ModItems.demonicSlate, "demonicSlate");
GameRegistry.registerItem(ModItems.baseItems, "bloodMagicBaseItems");
GameRegistry.registerItem(ModItems.weakBloodShard, "weakBloodShard");
GameRegistry.registerItem(ModItems.demonBloodShard, "demonBloodShard");
GameRegistry.registerItem(ModItems.bucketLife, "bucketLife");
// Alchemy
// Potions
GameRegistry.registerItem(ModItems.alchemyFlask, "alchemyFlask");
GameRegistry.registerItem(ModItems.simpleCatalyst, "simpleCatalyst");
GameRegistry.registerItem(ModItems.weakBindingAgent, "weakBindingAgent");
GameRegistry.registerItem(ModItems.standardBindingAgent, "standardBindingAgent");
GameRegistry.registerItem(ModItems.mundanePowerCatalyst, "mundanePowerCatalyst");
GameRegistry.registerItem(ModItems.averagePowerCatalyst, "averagePowerCatalyst");
GameRegistry.registerItem(ModItems.greaterPowerCatalyst, "greaterPowerCatalyst");
GameRegistry.registerItem(ModItems.mundaneLengtheningCatalyst, "mundaneLengtheningCatalyst");
GameRegistry.registerItem(ModItems.averageLengtheningCatalyst, "averageLengtheningCatalyst");
GameRegistry.registerItem(ModItems.greaterLengtheningCatalyst, "greaterLengtheningCatalyst");
GameRegistry.registerItem(ModItems.weakFillingAgent, "weakFillingAgent");
GameRegistry.registerItem(ModItems.standardFillingAgent, "standardFillingAgent");
GameRegistry.registerItem(ModItems.enhancedFillingAgent, "enhancedFillingAgent");
// Reagents
GameRegistry.registerItem(ModItems.itemAttunedCrystal, "itemAttunedCrystal");
GameRegistry.registerItem(ModItems.itemTankSegmenter, "itemTankSegmenter");
GameRegistry.registerItem(ModItems.itemDestinationClearer, "itemDestinationClearer");
GameRegistry.registerItem(ModItems.incendium, "incendium");
GameRegistry.registerItem(ModItems.magicales, "magicales");
GameRegistry.registerItem(ModItems.sanctus, "sanctus");
GameRegistry.registerItem(ModItems.aether, "aether");
GameRegistry.registerItem(ModItems.crepitous, "crepitous");
GameRegistry.registerItem(ModItems.crystallos, "crystallos");
GameRegistry.registerItem(ModItems.terrae, "terrae");
GameRegistry.registerItem(ModItems.aquasalus, "aquasalus");
GameRegistry.registerItem(ModItems.tennebrae, "tennebrae");
// Other Alchemy Items
GameRegistry.registerItem(ModItems.baseAlchemyItems, "bloodMagicBaseAlchemyItems");
GameRegistry.registerItem(ModItems.itemIncense, "bloodMagicIncenseItem");
// Unused
GameRegistry.registerItem(ModItems.itemCombinationalCatalyst, "itemCombinationalCatalyst");
// Utility
GameRegistry.registerItem(ModItems.sacrificialDagger, "sacrificialKnife");
GameRegistry.registerItem(ModItems.daggerOfSacrifice, "daggerOfSacrifice");
GameRegistry.registerItem(ModItems.creativeDagger, "creativeDagger");
GameRegistry.registerItem(ModItems.lavaCrystal, "lavaCrystal");
GameRegistry.registerItem(ModItems.itemKeyOfDiablo, "itemKeyOfDiablo");
GameRegistry.registerItem(ModItems.armourInhibitor, "armourInhibitor");
GameRegistry.registerItem(ModItems.telepositionFocus, "telepositionFocus");
GameRegistry.registerItem(ModItems.enhancedTelepositionFocus, "enhancedTelepositionFocus");
GameRegistry.registerItem(ModItems.reinforcedTelepositionFocus, "reinforcedTelepositionFocus");
GameRegistry.registerItem(ModItems.demonicTelepositionFocus, "demonicTelepositionFocus");
GameRegistry.registerItem(ModItems.inputRoutingFocus, "inputRoutingFocus");
GameRegistry.registerItem(ModItems.outputRoutingFocus, "outputRoutingFocus");
GameRegistry.registerItem(ModItems.blankSpell, "blankSpell");
GameRegistry.registerItem(ModItems.itemComplexSpellCrystal, "itemComplexSpellCrystal");
GameRegistry.registerItem(ModItems.demonPlacer, "demonPlacer");
// Rituals
GameRegistry.registerItem(ModItems.waterScribeTool, "waterScribeTool");
GameRegistry.registerItem(ModItems.fireScribeTool, "fireScribeTool");
GameRegistry.registerItem(ModItems.earthScribeTool, "earthScribeTool");
GameRegistry.registerItem(ModItems.airScribeTool, "airScribeTool");
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
GameRegistry.registerItem(ModItems.itemRitualDiviner, "itemRitualDiviner");
GameRegistry.registerItem(ModItems.itemIncense, "bloodMagicIncenseItem");
GameRegistry.registerItem(ModItems.ritualDismantler, "ritualDismantler");
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
}
}
@@ -1,29 +1,17 @@
package WayofTime.alchemicalWizardry.api;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
public class RoutingFocusLogic {
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
return (keyStack != null && keyStack.getItem() != null
&& checkedStack != null
&& keyStack.getItem() == checkedStack.getItem()
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage()));
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem()
&& (keyStack.getItem().getHasSubtypes() ? keyStack.getItemDamage() == checkedStack.getItemDamage()
: true)
: false);
}
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
return previous || this.getDefaultMatch(keyStack, checkedStack);
}
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.default.logic")));
}
}
@@ -7,11 +7,9 @@ import net.minecraft.item.ItemStack;
public class RoutingFocusParadigm {
public List<RoutingFocusLogic> logicList = new LinkedList<>();
public List<RoutingFocusLogic> logicList = new LinkedList();
public List<RoutingFocusPosAndFacing> locationList = new LinkedList<>();
public List<String> nameList = new LinkedList<>();
public List<RoutingFocusPosAndFacing> locationList = new LinkedList();
public int maximumAmount = 0;
@@ -26,14 +24,6 @@ public class RoutingFocusParadigm {
logicList.add(logic);
}
public void addName(String name) {
nameList.add(name);
}
public boolean doesNameMatch(String name) {
return nameList.contains(name);
}
public boolean doesItemMatch(ItemStack keyStack, ItemStack checkedStack) {
boolean isGood = false;
boolean isFirst = true;
@@ -52,7 +42,6 @@ public class RoutingFocusParadigm {
public void clear() {
logicList.clear();
locationList.clear();
nameList.clear();
maximumAmount = 0;
}
@@ -5,8 +5,4 @@ public interface IBloodOrb {
int getMaxEssence();
int getOrbLevel();
default boolean isFilledForFree() {
return false;
}
}
@@ -13,7 +13,7 @@ import WayofTime.alchemicalWizardry.api.tile.IBloodAltar;
public class PlayerSacrificeHandler {
public static float scalingOfSacrifice = 0.001f;
public static int soulFrayDuration = 240;
public static int soulFrayDuration = 400;
public static Potion soulFrayId;
public static float getPlayerIncense(EntityPlayer player) {
@@ -7,14 +7,12 @@ import cpw.mods.fml.common.event.FMLInterModComms;
public class IMCForNEI {
public static void IMCSender() {
sendHandler("alchemicalwizardry.meteor", "AWWayofTime:masterStone", 181, 1);
sendHandler("alchemicalwizardry.calcinator", "AWWayofTime:blockAlchemicCalcinator", 55, 5);
sendHandler("alchemicalwizardry.meteor", "AWWayofTime:masterStone", 181);
sendCatalyst("alchemicalwizardry.meteor", "AWWayofTime:masterStone");
sendCatalyst("alchemicalwizardry.bindingritual", "AWWayofTime:masterStone");
sendCatalyst("alchemicalwizardry.calcinator", "AWWayofTime:blockAlchemicCalcinator");
}
private static void sendHandler(String handlerName, String stack, int height, int recipesPerPage) {
private static void sendHandler(String handlerName, String stack, int height) {
NBTTagCompound NBT = new NBTTagCompound();
NBT.setString("handler", handlerName);
NBT.setString("modName", "Blood Magic");
@@ -22,7 +20,7 @@ public class IMCForNEI {
NBT.setBoolean("modRequired", true);
NBT.setString("itemName", stack);
NBT.setInteger("handlerHeight", height);
NBT.setInteger("maxRecipesPerPage", recipesPerPage);
NBT.setInteger("maxRecipesPerPage", 1);
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", NBT);
}
@@ -1,16 +1,15 @@
package WayofTime.alchemicalWizardry.client.nei;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.getBloodOrbs;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
@@ -29,19 +28,28 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
public class CachedAlchemyRecipe extends CachedRecipe {
ArrayList<ItemStack> orbs;
public class BloodOrbs {
public PositionedStack stack;
public BloodOrbs(ItemStack orb) {
this.stack = new PositionedStack(orb, 136, 47, false);
}
}
ArrayList<BloodOrbs> orbs;
PositionedStack output;
List<PositionedStack> inputs;
int lp;
public CachedAlchemyRecipe(AlchemyRecipe recipe, ItemStack orb) {
this(recipe);
this.orbs = new ArrayList<>();
orbs.add(orb);
this.orbs = new ArrayList<BloodOrbs>();
orbs.add(new BloodOrbs(orb));
}
public CachedAlchemyRecipe(AlchemyRecipe recipe) {
List<PositionedStack> inputs = new ArrayList<>();
List<PositionedStack> inputs = new ArrayList<PositionedStack>();
ItemStack[] stacks = recipe.getRecipe();
if (stacks.length > 0) inputs.add(new PositionedStack(stacks[0], 76, 3));
if (stacks.length > 1) inputs.add(new PositionedStack(stacks[1], 51, 19));
@@ -51,10 +59,10 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
this.inputs = inputs;
this.output = new PositionedStack(recipe.getResult(), 76, 25);
this.lp = recipe.getAmountNeeded() * 100;
this.orbs = new ArrayList<>();
this.orbs = new ArrayList<BloodOrbs>();
for (Item orb : getBloodOrbs()) {
if (((IBloodOrb) orb).getOrbLevel() >= recipe.getOrbLevel()) {
orbs.add(new ItemStack(orb));
orbs.add(new BloodOrbs(new ItemStack(orb)));
}
}
}
@@ -71,11 +79,8 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
@Override
public PositionedStack getOtherStack() {
if (orbs == null || orbs.isEmpty()) return null;
PositionedStack stack = new PositionedStack(orbs, 136, 47, false);
stack.setPermutationToRender((cycleticks / 48) % orbs.size());
stack.setMaxSize(1);
return stack;
if (orbs == null || orbs.size() <= 0) return null;
return orbs.get((cycleticks / 48) % orbs.size()).stack;
}
}
@@ -117,10 +122,10 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
@Override
public void loadUsageRecipes(ItemStack ingredient) {
if (ingredient.getItem() instanceof IBloodOrb orb) {
if (ingredient.getItem() instanceof IBloodOrb) {
for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
if (recipe == null) continue;
if (orb.getOrbLevel() >= recipe.getOrbLevel()) {
if (((IBloodOrb) ingredient.getItem()).getOrbLevel() >= recipe.getOrbLevel()) {
arecipes.add(new CachedAlchemyRecipe(recipe, ingredient));
}
}
@@ -140,14 +145,17 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
@Override
public void drawExtras(int id) {
CachedAlchemyRecipe recipe = (CachedAlchemyRecipe) arecipes.get(id);
String text = EnumChatFormatting.GRAY.toString() + recipe.lp + "LP";
mc.fontRenderer.drawString(text, getLPX(text), 28, 0);
CachedAlchemyRecipe cache = (CachedAlchemyRecipe) arecipes.get(id);
Minecraft.getMinecraft().fontRenderer.drawString("\u00a77" + cache.lp + "LP", getLPX(cache.lp), 34, 0);
}
public int getLPX(String text) {
int textWidth = mc.fontRenderer.getStringWidth(text);
return 144 - (textWidth / 2);
public int getLPX(int lp) {
if (lp < 10) return 122;
else if (lp < 100) return 122;
else if (lp < 1000) return 130;
else if (lp < 10000) return 127;
else if (lp < 100000) return 124;
return 122;
}
@Override
@@ -6,7 +6,6 @@ import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
@@ -66,7 +65,7 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
public void loadCraftingRecipes(ItemStack result) {
for (AltarRecipe recipe : AltarRecipeRegistry.altarRecipes) {
if (NEIServerUtils.areStacksSameTypeCraftingWithNBT(recipe.result, result)) {
if (recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
if (recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
}
}
}
@@ -75,7 +74,7 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
public void loadUsageRecipes(ItemStack ingredient) {
for (AltarRecipe recipe : AltarRecipeRegistry.altarRecipes) {
if (NEIServerUtils.areStacksSameTypeCraftingWithNBT(recipe.requiredItem, ingredient)) {
if (recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
if (recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
}
}
}
@@ -84,18 +83,21 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
public void drawExtras(int id) {
CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
Minecraft.getMinecraft().fontRenderer.drawString(
EnumChatFormatting.GRAY + StatCollector.translateToLocal("bm.string.tier") + ": " + recipe.tier,
"\u00a77" + StatCollector.translateToLocal("bm.string.tier") + ": " + recipe.tier,
78,
5,
0);
Minecraft.getMinecraft().fontRenderer
.drawString(EnumChatFormatting.GRAY + "LP: " + recipe.lp_amount, 78, 15, 0);
Minecraft.getMinecraft().fontRenderer.drawString("\u00a77" + "LP: " + recipe.lp_amount, 78, 15, 0);
}
@Override
public List<String> handleTooltip(GuiRecipe<?> gui, List<String> currenttip, int id) {
super.handleTooltip(gui, currenttip, id);
if (altarRect(gui, id).contains(GuiDraw.getMousePosition())) {
Point mouse = GuiDraw.getMousePosition();
Point root = gui.getRecipePosition(id);
int offsetX = gui.guiLeft + root.x;
int offsetY = gui.guiTop + root.y;
if (mouse.x >= 14 + offsetX && mouse.x <= 75 + offsetX && mouse.y >= 22 + offsetY && mouse.y <= 56 + offsetY) {
CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
currenttip.add(StatCollector.translateToLocal("bm.string.consume") + ": " + recipe.consumption + "LP/t");
currenttip.add(StatCollector.translateToLocal("bm.string.drain") + ": " + recipe.drain + "LP/t");
@@ -103,13 +105,6 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
return currenttip;
}
public Rectangle altarRect(GuiRecipe<?> gui, int id) {
Point root = gui.getRecipePosition(id);
int offsetX = gui.guiLeft + root.x;
int offsetY = gui.guiTop + root.y;
return new Rectangle(14 + offsetX, 22 + offsetY, 62, 34);
}
@Override
public String getOverlayIdentifier() {
return "altarrecipes";
@@ -122,7 +117,7 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
@Override
public String getRecipeName() {
return StatCollector.translateToLocal("tile.bloodAltar.name");
return " " + StatCollector.translateToLocal("tile.bloodAltar.name");
}
@Override
@@ -24,7 +24,7 @@ import codechicken.nei.recipe.TemplateRecipeHandler;
*/
public class NEIBindingRitualHandler extends TemplateRecipeHandler {
private static final RitualInfo ritualInfo = new RitualInfo(1f, "AW006Binding");
private static final RitualInfo ritualInfo = new RitualInfo("AW006Binding", 1f);
private static final ReagentInfo reagentInfo = new ReagentInfo(1f);
public class CachedBindingRecipe extends CachedRecipe {
@@ -94,20 +94,24 @@ public class NEIBindingRitualHandler extends TemplateRecipeHandler {
}
@Override
public List<String> handleTooltip(GuiRecipe<?> gui, List<String> currenttip, int recipeIndex) {
if (GuiContainerManager.shouldShowTooltip(gui) && currenttip.isEmpty()) {
public List<String> handleTooltip(GuiRecipe<?> gui, List<String> list, int recipeIndex) {
if (GuiContainerManager.shouldShowTooltip(gui) && list.isEmpty()) {
CachedRecipe cRecipe = arecipes.get(recipeIndex);
Point mousePos = GuiDraw.getMousePosition();
if (recipeIndex == 0 && cRecipe instanceof NEIBindingRitualHandler.CachedBindingRecipe) {
if (ritualInfo.getRect(gui).contains(mousePos)) {
ritualInfo.onHover(currenttip);
} else if (reagentInfo.getRect(gui).contains(mousePos)) {
currenttip.add(StatCollector.translateToLocal("nei.recipe.reagent.none"));
Rectangle rect = ritualInfo.getRect(gui);
if (rect.contains(mousePos)) {
ritualInfo.onHover(list);
}
rect = reagentInfo.getRect(gui);
if (rect.contains(mousePos)) {
list.add(StatCollector.translateToLocal("nei.recipe.reagent.none"));
}
}
}
return super.handleTooltip(gui, currenttip, recipeIndex);
return super.handleTooltip(gui, list, recipeIndex);
}
@Override
@@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.client.nei;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.getBloodOrbs;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
@@ -32,17 +33,21 @@ public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
public void setIngredients(int width, int height, Object[] items) {
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
Object o = items[y * width + x];
if (o == null) continue;
if (items[y * width + x] == null) continue;
Object o = items[y * width + x];
if (o instanceof ItemStack) {
PositionedStack stack = new PositionedStack(o, 25 + x * 18, 6 + y * 18, false);
PositionedStack stack = new PositionedStack(
items[y * width + x],
25 + x * 18,
6 + y * 18,
false);
stack.setMaxSize(1);
ingredients.add(stack);
} else if (o instanceof Integer i) {
} else if (o instanceof Integer) {
ArrayList<ItemStack> orbs = new ArrayList<>();
for (Item item : getBloodOrbs()) {
if (((IBloodOrb) item).getOrbLevel() >= i) {
if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
orbs.add(new ItemStack(item));
}
}
@@ -59,12 +64,13 @@ public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadCraftingRecipes(String outputId, Object... results) {
if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapedHandler.class) {
for (IRecipe irecipe : CraftingManager.getInstance().getRecipeList()) {
if (irecipe instanceof ShapedBloodOrbRecipe orbRecipe) {
CachedBloodOrbRecipe recipe = forgeShapedRecipe(orbRecipe);
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
if (irecipe instanceof ShapedBloodOrbRecipe) {
CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
if (recipe == null) continue;
recipe.computeVisuals();
@@ -76,11 +82,12 @@ public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadCraftingRecipes(ItemStack result) {
for (IRecipe irecipe : CraftingManager.getInstance().getRecipeList()) {
if (irecipe instanceof ShapedBloodOrbRecipe orbRecipe) {
CachedBloodOrbRecipe recipe = forgeShapedRecipe(orbRecipe);
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
if (irecipe instanceof ShapedBloodOrbRecipe) {
CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
if (recipe == null || !NEIServerUtils.areStacksSameTypeCraftingWithNBT(recipe.result.item, result))
continue;
@@ -90,11 +97,12 @@ public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadUsageRecipes(ItemStack ingredient) {
for (IRecipe irecipe : CraftingManager.getInstance().getRecipeList()) {
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
CachedShapedRecipe recipe = null;
if (irecipe instanceof ShapedBloodOrbRecipe orbRecipe) recipe = forgeShapedRecipe(orbRecipe);
if (irecipe instanceof ShapedBloodOrbRecipe) recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
if (recipe == null || !recipe.contains(recipe.ingredients, ingredient.getItem())) continue;
@@ -126,6 +134,11 @@ public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
return new CachedBloodOrbRecipe(width, height, items, recipe.getRecipeOutput());
}
@Override
public void loadTransferRects() {
transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
}
@Override
public String getRecipeName() {
return StatCollector.translateToLocal("bm.string.crafting.orb.shaped");
@@ -1,5 +1,6 @@
package WayofTime.alchemicalWizardry.client.nei;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
@@ -38,10 +39,10 @@ public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
6 + stackorder[ingred][1] * 18);
stack.setMaxSize(1);
ingredients.add(stack);
} else if (o instanceof Integer i) {
} else if (o instanceof Integer) {
ArrayList<ItemStack> orbs = new ArrayList<>();
for (Item item : NEIConfig.getBloodOrbs()) {
if (((IBloodOrb) item).getOrbLevel() >= i) {
if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
orbs.add(new ItemStack(item));
}
}
@@ -64,13 +65,15 @@ public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadCraftingRecipes(String outputId, Object... results) {
if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapelessHandler.class) {
List<IRecipe> allRecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allRecipes) {
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allrecipes) {
CachedBloodOrbRecipe recipe = null;
if (irecipe instanceof ShapelessBloodOrbRecipe orbRecipe) recipe = forgeShapelessRecipe(orbRecipe);
if (irecipe instanceof ShapelessBloodOrbRecipe)
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
if (recipe == null) continue;
@@ -81,13 +84,15 @@ public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadCraftingRecipes(ItemStack result) {
List<IRecipe> allRecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allRecipes) {
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allrecipes) {
if (NEIServerUtils.areStacksSameTypeCraftingWithNBT(irecipe.getRecipeOutput(), result)) {
CachedBloodOrbRecipe recipe = null;
if (irecipe instanceof ShapelessBloodOrbRecipe orbRecipe) recipe = forgeShapelessRecipe(orbRecipe);
if (irecipe instanceof ShapelessBloodOrbRecipe)
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
if (recipe == null) continue;
@@ -96,12 +101,14 @@ public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
}
}
@SuppressWarnings("unchecked")
@Override
public void loadUsageRecipes(ItemStack ingredient) {
List<IRecipe> allRecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allRecipes) {
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
for (IRecipe irecipe : allrecipes) {
CachedBloodOrbRecipe recipe = null;
if (irecipe instanceof ShapelessBloodOrbRecipe orbRecipe) recipe = forgeShapelessRecipe(orbRecipe);
if (irecipe instanceof ShapelessBloodOrbRecipe)
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
if (recipe == null) continue;
@@ -121,6 +128,16 @@ public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
return new CachedBloodOrbRecipe(items, recipe.getRecipeOutput());
}
@Override
public void loadTransferRects() {
transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
}
@Override
public String getOverlayIdentifier() {
return "crafting";
}
@Override
public String getRecipeName() {
return StatCollector.translateToLocal("bm.string.crafting.orb.shapeless");
@@ -1,206 +0,0 @@
package WayofTime.alchemicalWizardry.client.nei;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.ARROW_TEXTURE;
import java.awt.Rectangle;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.util.Constants;
import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.TemplateRecipeHandler;
public class NEICalcinatorHandler extends TemplateRecipeHandler {
public class CachedReagentInfo extends CachedRecipe {
private final Reagent reagent;
private final int amount;
private final int color;
public CachedReagentInfo(ReagentStack reagent) {
this.reagent = reagent.reagent;
this.amount = reagent.amount;
this.color = reagent.reagent.getColourRed() << 16 | reagent.reagent.getColourGreen() << 8
| reagent.reagent.getColourBlue();
}
@Override
public PositionedStack getResult() {
return new PositionedStack(ReagentRegistry.getItemForReagent(reagent), 32, 6);
}
public Reagent getReagent() {
return reagent;
}
public int getAmount() {
return amount;
}
public void onDraw(int x, int y) {
drawColoredProgressBar(x, y);
String amountText = String.format("%,d AR", amount);
FontRenderer fontRenderer = mc.fontRenderer;
int textWidth = fontRenderer.getStringWidth(amountText);
int textX = x + 84 - (textWidth / 2);
int textY = y + 19;
fontRenderer.drawString(amountText, textX, textY, 0x000000);
textWidth = fontRenderer.getStringWidth(reagent.name);
textX = x + 84 - (textWidth / 2);
textY = y + 29;
fontRenderer.drawString(reagent.name, textX, textY, color);
}
private void drawColoredProgressBar(int x, int y) {
int arrowX = x + 25;
int arrowY = y + 19;
int arrowWidth = 24;
int arrowHeight = 16;
int fillTime = 192;
int holdTime = 8;
int totalCycle = fillTime + holdTime;
int cycleTick = cycleticks % totalCycle;
int fillWidth;
if (cycleTick < fillTime) {
fillWidth = cycleTick * arrowWidth / fillTime;
} else {
fillWidth = arrowWidth;
}
TextureManager texManager = mc.getTextureManager();
texManager.bindTexture(ARROW_TEXTURE);
Tessellator tessellator = Tessellator.instance;
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
float r = ((color >> 16) & 0xFF) / 255f;
float g = ((color >> 8) & 0xFF) / 255f;
float b = (color & 0xFF) / 255f;
GL11.glColor4f(r, g, b, 1.0f);
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(arrowX, arrowY + arrowHeight, 0, 0, 1);
tessellator.addVertexWithUV(arrowX + fillWidth, arrowY + arrowHeight, 0, fillWidth / (float) arrowWidth, 1);
tessellator.addVertexWithUV(arrowX + fillWidth, arrowY, 0, fillWidth / (float) arrowWidth, 0);
tessellator.addVertexWithUV(arrowX, arrowY, 0, 0, 0);
tessellator.draw();
GL11.glDisable(GL11.GL_BLEND);
}
@Override
public PositionedStack getOtherStack() {
ItemStack[] orbStacks = NEIConfig.getBloodOrbs().stream().map(ItemStack::new).toArray(ItemStack[]::new);
PositionedStack stack = new PositionedStack(orbStacks, 32, 33, true);
stack.setPermutationToRender((cycleticks / 20) % orbStacks.length);
return stack;
}
}
@Override
public void loadCraftingRecipes(String outputId, Object... results) {
if (outputId.equals("alchemicalwizardry.calcinator") && getClass() == NEICalcinatorHandler.class) {
for (ReagentStack reagent : ReagentRegistry.itemToReagentMap.values()) {
arecipes.add(new CachedReagentInfo(reagent));
}
} else {
super.loadCraftingRecipes(outputId, results);
}
}
@Override
public void loadCraftingRecipes(ItemStack result) {
checkReagents(result);
}
@Override
public void loadUsageRecipes(ItemStack ingredient) {
checkReagents(ingredient);
}
private void checkReagents(ItemStack result) {
ReagentStack rs = ReagentRegistry.getReagentStackForItem(result);
if (rs != null) {
arecipes.add(new CachedReagentInfo(rs));
} else { // Check reagents in crystal belljars or other reagent storages
NBTTagCompound tagCompound = result.getTagCompound();
if (tagCompound == null || tagCompound.hasNoTags()) {
return;
}
NBTTagList tagList = tagCompound.getTagList("reagentTanks", Constants.NBT.TAG_COMPOUND);
if (tagList.tagList.isEmpty()) {
return;
}
for (int i = 0; i < tagList.tagCount(); i++) {
// Get the proper size of the ReagentStack created by melting the item for this reagent
NBTTagCompound savedTag = tagList.getCompoundTagAt(i);
ReagentStack reagent = ReagentContainer.readFromNBT(savedTag).getReagent();
ItemStack reagentItem = ReagentRegistry.getItemForReagent(reagent.reagent);
ReagentStack reagentStackForItem = ReagentRegistry.getReagentStackForItem(reagentItem);
if (reagentStackForItem != null) {
arecipes.add(new CachedReagentInfo(reagentStackForItem));
}
}
}
}
@Override
public int recipiesPerPage() {
return 5;
}
@Override
public void drawExtras(int recipe) {
NEICalcinatorHandler.CachedReagentInfo reagentInfo = (CachedReagentInfo) this.arecipes.get(recipe);
reagentInfo.onDraw(30, 0);
}
@Override
public String getOverlayIdentifier() {
return "alchemicalwizardry.calcinator";
}
@Override
public void loadTransferRects() {
transferRects.add(new RecipeTransferRect(new Rectangle(54, 23, 23, 16), "alchemicalwizardry.calcinator"));
}
@Override
public String getGuiTexture() {
return new ResourceLocation("alchemicalwizardry", "gui/nei/calcinator.png").toString();
}
@Override
public String getRecipeName() {
return "Alchemic Calcinator";
}
}
@@ -4,7 +4,6 @@ import java.util.ArrayList;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import codechicken.nei.ItemList;
@@ -16,10 +15,6 @@ public class NEIConfig implements IConfigureNEI {
private static ArrayList<Item> bloodOrbs = null;
private static ArrayList<Item> byCapacity = null;
public static final ResourceLocation ARROW_TEXTURE = new ResourceLocation(
"alchemicalwizardry",
"gui/nei/arrow.png");
public static ArrayList<Item> getBloodOrbs() {
if (bloodOrbs == null) {
synchronized (NEIConfig.class) {
@@ -77,8 +72,6 @@ public class NEIConfig implements IConfigureNEI {
API.registerUsageHandler(new NEIBindingRitualHandler());
API.registerRecipeHandler(new NEIMeteorRecipeHandler());
API.registerUsageHandler(new NEIMeteorRecipeHandler());
API.registerRecipeHandler(new NEICalcinatorHandler());
API.registerUsageHandler(new NEICalcinatorHandler());
}
@Override
@@ -26,7 +26,7 @@ import com.google.common.base.Joiner;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.client.nei.widgets.CostInfo;
import WayofTime.alchemicalWizardry.client.nei.widgets.RadiusInfo;
import WayofTime.alchemicalWizardry.client.nei.widgets.ReagentInfo;
@@ -45,7 +45,7 @@ import codechicken.nei.recipe.TemplateRecipeHandler;
public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
private static final RitualInfo ritualInfo = new RitualInfo(0.75f, "AW019FallingTower");
private static final RitualInfo ritualInfo = new RitualInfo("AW019FallingTower", 0.75f);
private static final ReagentInfo reagentInfo = new ReagentInfo(0.75f);
public class CachedMeteorRecipe extends CachedRecipe {
@@ -134,8 +134,8 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
}
}
this.costInfo = new CostInfo(1.0f, meteor.cost);
this.radiusInfo = new RadiusInfo(1.0f, meteor.radius);
this.costInfo = new CostInfo(meteor.cost);
this.radiusInfo = new RadiusInfo(meteor.radius);
}
private String getReagentStrings(MeteorComponent component) {
@@ -244,11 +244,6 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
return false;
}
@Override
public int recipiesPerPage() {
return 1;
}
@Override
public String getGuiTexture() {
return new ResourceLocation("alchemicalwizardry", "gui/nei/meteor.png").toString();
@@ -286,8 +281,9 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
CachedMeteorRecipe meteorRecipe = (CachedMeteorRecipe) this.arecipes.get(recipe);
for (PositionedStack pStack : meteorRecipe.outputs) {
// if (!gui.isMouseOver(pStack, recipe)) continue; // put it back when NEI is properly patched
if (!(pStack instanceof TooltipStack tStack)) break;
if (!(pStack instanceof TooltipStack)) break;
TooltipStack tStack = (TooltipStack) pStack;
if (Arrays.stream(tStack.items).anyMatch(s -> NEIServerUtils.areStacksSameTypeCrafting(s, stack))) {
currenttip.addAll(tStack.getTooltips());
break;
@@ -297,33 +293,44 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
}
@Override
public List<String> handleTooltip(GuiRecipe<?> gui, List<String> currenttip, int recipeIndex) {
if (GuiContainerManager.shouldShowTooltip(gui) && currenttip.isEmpty()) {
public List<String> handleTooltip(GuiRecipe<?> gui, List<String> list, int recipeIndex) {
if (GuiContainerManager.shouldShowTooltip(gui) && list.isEmpty()) {
CachedRecipe cRecipe = arecipes.get(recipeIndex);
Point mousePos = GuiDraw.getMousePosition();
if (cRecipe instanceof CachedMeteorRecipe cachedRecipe) {
if (cachedRecipe.costInfo.getRect(gui).contains(mousePos)) {
currenttip.add(StatCollector.translateToLocal("nei.recipe.meteor.cost"));
if (APISpellHelper.getPlayerLPTag(mc.thePlayer) < cachedRecipe.getCost()) {
currenttip.add(
if (cRecipe instanceof CachedMeteorRecipe) {
CachedMeteorRecipe cachedRecipe = (CachedMeteorRecipe) cRecipe;
Rectangle rect = cachedRecipe.costInfo.getRect(gui);
if (rect.contains(mousePos)) {
list.add(StatCollector.translateToLocal("nei.recipe.meteor.cost"));
if (SoulNetworkHandler.getCurrentEssence(mc.thePlayer.getDisplayName()) < cachedRecipe.getCost()) {
list.add(
EnumChatFormatting.RED
+ StatCollector.translateToLocal("nei.recipe.meteor.tooExpensive"));
}
} else if (cachedRecipe.radiusInfo.getRect(gui).contains(mousePos)) {
currenttip.add(
}
rect = cachedRecipe.radiusInfo.getRect(gui);
if (rect.contains(mousePos)) {
list.add(
StatCollector.translateToLocalFormatted(
"nei.recipe.meteor.diameter",
2 * cachedRecipe.radiusInfo.getRadius() + 1));
} else if (ritualInfo.getRect(gui).contains(mousePos)) {
ritualInfo.onHover(currenttip);
} else if (reagentInfo.getRect(gui).contains(mousePos)) {
reagentInfo.onHover(currenttip);
addMeteorReagentInfo(currenttip, cachedRecipe);
}
rect = ritualInfo.getRect(gui);
if (rect.contains(mousePos)) {
ritualInfo.onHover(list);
}
rect = reagentInfo.getRect(gui);
if (rect.contains(mousePos)) {
reagentInfo.onHover(list);
addMeteorReagentInfo(list, cachedRecipe);
}
}
}
return super.handleTooltip(gui, currenttip, recipeIndex);
return super.handleTooltip(gui, list, recipeIndex);
}
private void addMeteorReagentInfo(List<String> list, CachedMeteorRecipe cachedRecipe) {
@@ -396,14 +403,8 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
private String reagentFillerBlockNames(MeteorReagent mr) {
ArrayList<String> blockNames = new ArrayList<>();
for (MeteorComponent mc : mr.filler) {
blockNames.add(mc.getBlock().getDisplayName() + requiredReagentsForFiller(mc));
blockNames.add(mc.getBlock().getDisplayName());
}
return Joiner.on(", ").join(blockNames);
}
private String requiredReagentsForFiller(MeteorComponent mc) {
List<Reagent> reagents = mc.getRequiredReagents();
if (reagents.isEmpty()) return "";
return " (" + reagents.stream().map(r -> r.name).collect(Collectors.joining(", ")) + ")";
}
}
@@ -1,33 +0,0 @@
package WayofTime.alchemicalWizardry.client.nei.widgets;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import java.awt.Rectangle;
import net.minecraft.client.gui.FontRenderer;
import codechicken.nei.recipe.GuiRecipe;
public abstract class BMNEIWidget {
protected final float scale;
public int prevX, prevY;
protected BMNEIWidget(float scale) {
this.scale = scale;
}
public Rectangle getRect(GuiRecipe<?> gui) {
return new Rectangle(gui.guiLeft + prevX + 4, gui.guiTop + prevY + 14, (int) (18 * scale), (int) (18 * scale));
}
protected static void drawCenteredText(int x, int y, String text) {
FontRenderer fontRenderer = mc.fontRenderer;
int textWidth = fontRenderer.getStringWidth(text);
int textX = x + 9 - (textWidth / 2);
int textY = y + 18;
fontRenderer.drawString(text, textX, textY, 0x000000);
}
}
@@ -1,9 +1,13 @@
package WayofTime.alchemicalWizardry.client.nei.widgets;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.getBloodOrbs;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.getOrbsByCapacity;
import java.awt.Rectangle;
import java.util.ArrayList;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -11,24 +15,26 @@ import net.minecraft.item.ItemStack;
import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import WayofTime.alchemicalWizardry.client.nei.NEIConfig;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import codechicken.nei.recipe.GuiRecipe;
public class CostInfo extends BMNEIWidget {
public class CostInfo {
private final int cost;
private int prevX, prevY;
private final int orbLP;
private final ItemStack orbStack;
private static final RenderItem renderItem = new RenderItem();
static {
renderItem.renderWithColor = false;
}
public CostInfo(float scale, int cost) {
super(scale);
public CostInfo(int cost) {
this.cost = cost;
Item orb = null;
ArrayList<Item> orbList = NEIConfig.getOrbsByCapacity();
getOrbsByCapacity();
ArrayList<Item> orbList = getBloodOrbs();
for (Item o : orbList) {
if (((IBloodOrb) o).getMaxEssence() >= cost) {
orb = o;
@@ -39,6 +45,7 @@ public class CostInfo extends BMNEIWidget {
orb = orbList.get(orbList.size() - 1);
}
orbLP = ((IBloodOrb) orb).getMaxEssence();
orbStack = new ItemStack(orb);
}
@@ -50,11 +57,13 @@ public class CostInfo extends BMNEIWidget {
prevX = x;
prevY = y;
int currentLP = SoulNetworkHandler.getCurrentEssence(mc.thePlayer.getDisplayName());
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
if (cost > APISpellHelper.getPlayerLPTag(mc.thePlayer)) {
if (orbLP > currentLP) {
GL11.glColor4f(0.4f, 0.4f, 0.4f, 1.0f);
} else {
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
@@ -66,7 +75,18 @@ public class CostInfo extends BMNEIWidget {
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopMatrix();
drawCenteredText(x, y, String.format("%,d", cost));
String costText = String.format("%,d", cost);
FontRenderer fontRenderer = mc.fontRenderer;
int textWidth = fontRenderer.getStringWidth(costText);
int textX = x + 9 - (textWidth / 2);
int textY = y + 18;
fontRenderer.drawString(costText, textX, textY, 0x000000);
}
public Rectangle getRect(GuiRecipe<?> gui) {
return new Rectangle(gui.guiLeft + prevX + 4, gui.guiTop + prevY + 14, 18, 18);
}
}
@@ -2,21 +2,25 @@ package WayofTime.alchemicalWizardry.client.nei.widgets;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import java.awt.Rectangle;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import WayofTime.alchemicalWizardry.ModItems;
import codechicken.nei.recipe.GuiRecipe;
public class RadiusInfo extends BMNEIWidget {
public class RadiusInfo {
private final int radius;
private int prevX, prevY;
private static final RenderItem renderItem = new RenderItem();
// It's a circle with a dot in the center. Couldn't ask for a better item!
private static final ItemStack item = new ItemStack(ModItems.demonPlacer);
public RadiusInfo(float scale, int radius) {
super(scale);
public RadiusInfo(int radius) {
this.radius = radius;
}
@@ -30,7 +34,18 @@ public class RadiusInfo extends BMNEIWidget {
renderItem.renderItemAndEffectIntoGUI(mc.fontRenderer, mc.getTextureManager(), item, x, y);
drawCenteredText(x, y, StatCollector.translateToLocalFormatted("nei.recipe.meteor.radius", radius));
String costText = StatCollector.translateToLocalFormatted("nei.recipe.meteor.radius", radius);
FontRenderer fontRenderer = mc.fontRenderer;
int textWidth = fontRenderer.getStringWidth(costText);
int textX = x + 9 - (textWidth / 2);
int textY = y + 18;
fontRenderer.drawString(costText, textX, textY, 0x000000);
}
public Rectangle getRect(GuiRecipe<?> gui) {
return new Rectangle(gui.guiLeft + prevX + 5, gui.guiTop + prevY + 15, 16, 16);
}
}
@@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.client.nei.widgets;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import java.awt.Rectangle;
import java.util.List;
import net.minecraft.client.renderer.entity.RenderItem;
@@ -11,14 +12,17 @@ import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.ModBlocks;
import codechicken.nei.recipe.GuiRecipe;
public class ReagentInfo extends BMNEIWidget {
public class ReagentInfo {
private final float scale;
private int prevX, prevY;
private static final RenderItem renderItem = new RenderItem();
private static final ItemStack item = new ItemStack(ModBlocks.blockReagentConduit);
public ReagentInfo(float scale) {
super(scale);
this.scale = scale;
}
public void onDraw(int x, int y) {
@@ -32,6 +36,10 @@ public class ReagentInfo extends BMNEIWidget {
GL11.glPopMatrix();
}
public Rectangle getRect(GuiRecipe<?> gui) {
return new Rectangle(gui.guiLeft + prevX + 4, gui.guiTop + prevY + 14, (int) (18 * scale), (int) (18 * scale));
}
/**
* Adds the text Reagent effects: to the tooltip list.
*/
@@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.client.nei.widgets;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import java.awt.Rectangle;
import java.util.List;
import net.minecraft.client.renderer.entity.RenderItem;
@@ -12,17 +13,20 @@ import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.api.rituals.Rituals;
import codechicken.nei.recipe.GuiRecipe;
public class RitualInfo extends BMNEIWidget {
public class RitualInfo {
private final String id;
private final int cost;
private final float scale;
private final ItemStack crystal;
private int prevX, prevY;
private static final RenderItem renderItem = new RenderItem();
public RitualInfo(float scale, String id) {
super(scale);
public RitualInfo(String id, float scale) {
this.id = id;
this.scale = scale;
this.cost = Rituals.getCostForActivation(id);
Rituals r = Rituals.ritualMap.get(id);
@@ -49,6 +53,10 @@ public class RitualInfo extends BMNEIWidget {
GL11.glPopMatrix();
}
public Rectangle getRect(GuiRecipe<?> gui) {
return new Rectangle(gui.guiLeft + prevX + 4, gui.guiTop + prevY + 14, (int) (18 * scale), (int) (18 * scale));
}
public void onHover(List<String> list) {
list.add(
StatCollector
@@ -5,8 +5,6 @@ import java.util.BitSet;
import java.util.EnumMap;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
@@ -47,7 +45,7 @@ public enum NewPacketHandler {
INSTANCE;
private final EnumMap<Side, FMLEmbeddedChannel> channels;
private EnumMap<Side, FMLEmbeddedChannel> channels;
NewPacketHandler() {
this.channels = NetworkRegistry.INSTANCE.newChannel("BloodMagic", new TEAltarCodec());
@@ -97,10 +95,12 @@ public enum NewPacketHandler {
private static class TEAltarMessageHandler extends SimpleChannelInboundHandler<TEAltarMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEAltarMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEAltarMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEAltar altar) {
if (te instanceof TEAltar) {
TEAltar altar = (TEAltar) te;
altar.handlePacketData(msg.items, msg.fluids, msg.capacity);
}
}
@@ -109,12 +109,12 @@ public enum NewPacketHandler {
private static class TEOrientableMessageHandler extends SimpleChannelInboundHandler<TEOrientableMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEOrientableMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEOrientableMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEOrientable teOrientable) {
teOrientable.setInputDirection(ForgeDirection.getOrientation(msg.input));
teOrientable.setOutputDirection(ForgeDirection.getOrientation(msg.output));
if (te instanceof TEOrientable) {
((TEOrientable) te).setInputDirection(ForgeDirection.getOrientation(msg.input));
((TEOrientable) te).setOutputDirection(ForgeDirection.getOrientation(msg.output));
}
}
}
@@ -122,10 +122,12 @@ public enum NewPacketHandler {
private static class TEPedestalMessageHandler extends SimpleChannelInboundHandler<TEPedestalMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEPedestalMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEPedestalMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEPedestal pedestal) {
if (te instanceof TEPedestal) {
TEPedestal pedestal = (TEPedestal) te;
pedestal.handlePacketData(msg.items);
}
}
@@ -134,10 +136,12 @@ public enum NewPacketHandler {
private static class TEPlinthMessageHandler extends SimpleChannelInboundHandler<TEPlinthMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEPlinthMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEPlinthMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEPlinth Plinth) {
if (te instanceof TEPlinth) {
TEPlinth Plinth = (TEPlinth) te;
Plinth.handlePacketData(msg.items);
}
}
@@ -146,10 +150,12 @@ public enum NewPacketHandler {
private static class TESocketMessageHandler extends SimpleChannelInboundHandler<TESocketMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TESocketMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TESocketMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TESocket Socket) {
if (te instanceof TESocket) {
TESocket Socket = (TESocket) te;
Socket.handlePacketData(msg.items);
}
}
@@ -158,10 +164,12 @@ public enum NewPacketHandler {
private static class TETeleposerMessageHandler extends SimpleChannelInboundHandler<TETeleposerMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TETeleposerMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TETeleposerMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TETeleposer Teleposer) {
if (te instanceof TETeleposer) {
TETeleposer Teleposer = (TETeleposer) te;
Teleposer.handlePacketData(msg.items);
}
}
@@ -170,10 +178,12 @@ public enum NewPacketHandler {
private static class TEWritingTableMessageHandler extends SimpleChannelInboundHandler<TEWritingTableMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEWritingTableMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEWritingTableMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEWritingTable WritingTable) {
if (te instanceof TEWritingTable) {
TEWritingTable WritingTable = (TEWritingTable) te;
WritingTable.handlePacketData(msg.items);
}
}
@@ -182,7 +192,7 @@ public enum NewPacketHandler {
private static class ParticleMessageHandler extends SimpleChannelInboundHandler<ParticleMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, ParticleMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, ParticleMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
world.spawnParticle(msg.particle, msg.xCoord, msg.yCoord, msg.zCoord, msg.xVel, msg.yVel, msg.zVel);
@@ -192,7 +202,7 @@ public enum NewPacketHandler {
private static class VelocityMessageHandler extends SimpleChannelInboundHandler<VelocityMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, VelocityMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, VelocityMessage msg) throws Exception {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
if (player != null) {
@@ -206,10 +216,12 @@ public enum NewPacketHandler {
private static class TEMasterStoneMessageHandler extends SimpleChannelInboundHandler<TEMasterStoneMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEMasterStoneMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEMasterStoneMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEMasterStone masterStone) {
if (te instanceof TEMasterStone) {
TEMasterStone masterStone = (TEMasterStone) te;
masterStone.setCurrentRitual(msg.ritual);
masterStone.isRunning = msg.isRunning;
}
@@ -219,10 +231,12 @@ public enum NewPacketHandler {
private static class TEReagentConduitMessageHandler extends SimpleChannelInboundHandler<TEReagentConduitMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, TEReagentConduitMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, TEReagentConduitMessage msg) throws Exception {
World world = AlchemicalWizardry.proxy.getClientWorld();
TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
if (te instanceof TEReagentConduit reagentConduit) {
if (te instanceof TEReagentConduit) {
TEReagentConduit reagentConduit = (TEReagentConduit) te;
reagentConduit.destinationList = msg.destinationList;
}
}
@@ -231,7 +245,7 @@ public enum NewPacketHandler {
private static class CurrentLPMessageHandler extends SimpleChannelInboundHandler<CurrentLPMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, CurrentLPMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, CurrentLPMessage msg) throws Exception {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
APISpellHelper.setPlayerLPTag(player, msg.currentLP);
@@ -242,7 +256,7 @@ public enum NewPacketHandler {
private static class CurrentReagentBarMessageHandler extends SimpleChannelInboundHandler<CurrentReagentBarMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, CurrentReagentBarMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, CurrentReagentBarMessage msg) throws Exception {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
APISpellHelper.setPlayerReagentType(player, msg.reagent);
@@ -254,7 +268,7 @@ public enum NewPacketHandler {
private static class CurrentAddedHPMessageHandler extends SimpleChannelInboundHandler<CurrentAddedHPMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, CurrentAddedHPMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, CurrentAddedHPMessage msg) throws Exception {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
APISpellHelper.setCurrentAdditionalHP(player, msg.currentHP);
@@ -269,7 +283,7 @@ public enum NewPacketHandler {
}
@Override
protected void channelRead0(ChannelHandlerContext ctx, KeyboardMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, KeyboardMessage msg) throws Exception {
System.out.println("Hmmm");
}
}
@@ -277,7 +291,7 @@ public enum NewPacketHandler {
private static class GaiaBiomeChangeMessageHandler extends SimpleChannelInboundHandler<GaiaBiomeChangeMessage> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, GaiaBiomeChangeMessage msg) {
protected void channelRead0(ChannelHandlerContext ctx, GaiaBiomeChangeMessage msg) throws Exception {
Chunk chunk = AlchemicalWizardry.proxy.getClientWorld().getChunkFromChunkCoords(msg.chunkX, msg.chunkZ);
if (chunk != null) {
byte[] biomeArray = chunk.getBiomeArray();
@@ -435,7 +449,30 @@ public enum NewPacketHandler {
public static final int maskByteCount = 32;
}
private static class TEAltarCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
private class ClientToServerCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
public ClientToServerCodec() {}
@Override
public void encodeInto(ChannelHandlerContext ctx, BMMessage msg, ByteBuf target) throws Exception {
target.writeInt(msg.index);
// switch(msg.index)
{}
}
@Override
public void decodeInto(ChannelHandlerContext ctx, ByteBuf source, BMMessage msg) {
int index = source.readInt();
System.out.println("Packet is recieved and being decoded");
// switch(index)
{}
}
}
private class TEAltarCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
public TEAltarCodec() {
addDiscriminator(0, TEAltarMessage.class);
@@ -457,141 +494,175 @@ public enum NewPacketHandler {
}
@Override
public void encodeInto(ChannelHandlerContext ctx, BMMessage msg, ByteBuf target) {
public void encodeInto(ChannelHandlerContext ctx, BMMessage msg, ByteBuf target) throws Exception {
target.writeInt(msg.index);
switch (msg.index) {
case 0 -> {
TEAltarMessage m = (TEAltarMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
case 0:
target.writeInt(((TEAltarMessage) msg).x);
target.writeInt(((TEAltarMessage) msg).y);
target.writeInt(((TEAltarMessage) msg).z);
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
target.writeBoolean(((TEAltarMessage) msg).items != null);
if (((TEAltarMessage) msg).items != null) {
int[] items = ((TEAltarMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
target.writeBoolean(m.fluids != null);
if (m.fluids != null) {
int[] fluids = m.fluids;
Arrays.stream(fluids).forEach(target::writeInt);
target.writeBoolean(((TEAltarMessage) msg).fluids != null);
if (((TEAltarMessage) msg).fluids != null) {
int[] fluids = ((TEAltarMessage) msg).fluids;
for (int j = 0; j < fluids.length; j++) {
int i = fluids[j];
target.writeInt(i);
}
}
target.writeInt(m.capacity);
}
case 1 -> {
TEOrientableMessage m = (TEOrientableMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
target.writeInt(((TEAltarMessage) msg).capacity);
target.writeInt(m.input);
target.writeInt(m.output);
}
case 2 -> {
TEPedestalMessage m = (TEPedestalMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
break;
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
case 1:
target.writeInt(((TEOrientableMessage) msg).x);
target.writeInt(((TEOrientableMessage) msg).y);
target.writeInt(((TEOrientableMessage) msg).z);
target.writeInt(((TEOrientableMessage) msg).input);
target.writeInt(((TEOrientableMessage) msg).output);
break;
case 2:
target.writeInt(((TEPedestalMessage) msg).x);
target.writeInt(((TEPedestalMessage) msg).y);
target.writeInt(((TEPedestalMessage) msg).z);
target.writeBoolean(((TEPedestalMessage) msg).items != null);
if (((TEPedestalMessage) msg).items != null) {
int[] items = ((TEPedestalMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
}
case 3 -> {
TEPlinthMessage m = (TEPlinthMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
}
}
case 4 -> {
TESocketMessage m = (TESocketMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
break;
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
}
}
case 5 -> {
TETeleposerMessage m = (TETeleposerMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
case 3:
target.writeInt(((TEPlinthMessage) msg).x);
target.writeInt(((TEPlinthMessage) msg).y);
target.writeInt(((TEPlinthMessage) msg).z);
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
target.writeBoolean(((TEPlinthMessage) msg).items != null);
if (((TEPlinthMessage) msg).items != null) {
int[] items = ((TEPlinthMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
}
case 6 -> {
TEWritingTableMessage m = (TEWritingTableMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
target.writeBoolean(m.items != null);
if (m.items != null) {
int[] items = m.items;
Arrays.stream(items).forEach(target::writeInt);
break;
case 4:
target.writeInt(((TESocketMessage) msg).x);
target.writeInt(((TESocketMessage) msg).y);
target.writeInt(((TESocketMessage) msg).z);
target.writeBoolean(((TESocketMessage) msg).items != null);
if (((TESocketMessage) msg).items != null) {
int[] items = ((TESocketMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
}
case 7 -> {
ParticleMessage m = (ParticleMessage) msg;
String str = m.particle;
break;
case 5:
target.writeInt(((TETeleposerMessage) msg).x);
target.writeInt(((TETeleposerMessage) msg).y);
target.writeInt(((TETeleposerMessage) msg).z);
target.writeBoolean(((TETeleposerMessage) msg).items != null);
if (((TETeleposerMessage) msg).items != null) {
int[] items = ((TETeleposerMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
break;
case 6:
target.writeInt(((TEWritingTableMessage) msg).x);
target.writeInt(((TEWritingTableMessage) msg).y);
target.writeInt(((TEWritingTableMessage) msg).z);
target.writeBoolean(((TEWritingTableMessage) msg).items != null);
if (((TEWritingTableMessage) msg).items != null) {
int[] items = ((TEWritingTableMessage) msg).items;
for (int j = 0; j < items.length; j++) {
int i = items[j];
target.writeInt(i);
}
}
break;
case 7:
String str = ((ParticleMessage) msg).particle;
target.writeInt(str.length());
IntStream.range(0, str.length()).map(str::charAt).forEach(target::writeChar);
for (int i = 0; i < str.length(); i++) {
target.writeChar(str.charAt(i));
}
target.writeDouble(m.xCoord);
target.writeDouble(m.yCoord);
target.writeDouble(m.zCoord);
target.writeDouble(((ParticleMessage) msg).xCoord);
target.writeDouble(((ParticleMessage) msg).yCoord);
target.writeDouble(((ParticleMessage) msg).zCoord);
target.writeDouble(m.xVel);
target.writeDouble(m.yVel);
target.writeDouble(m.zVel);
}
case 8 -> {
VelocityMessage m = (VelocityMessage) msg;
target.writeDouble(m.xVel);
target.writeDouble(m.yVel);
target.writeDouble(m.zVel);
}
case 9 -> {
TEMasterStoneMessage m = (TEMasterStoneMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
target.writeDouble(((ParticleMessage) msg).xVel);
target.writeDouble(((ParticleMessage) msg).yVel);
target.writeDouble(((ParticleMessage) msg).zVel);
String ritual = m.ritual;
break;
case 8:
target.writeDouble(((VelocityMessage) msg).xVel);
target.writeDouble(((VelocityMessage) msg).yVel);
target.writeDouble(((VelocityMessage) msg).zVel);
break;
case 9:
target.writeInt(((TEMasterStoneMessage) msg).x);
target.writeInt(((TEMasterStoneMessage) msg).y);
target.writeInt(((TEMasterStoneMessage) msg).z);
String ritual = ((TEMasterStoneMessage) msg).ritual;
target.writeInt(ritual.length());
IntStream.range(0, ritual.length()).map(ritual::charAt).forEach(target::writeChar);
for (int i = 0; i < ritual.length(); i++) {
target.writeChar(ritual.charAt(i));
}
target.writeBoolean(m.isRunning);
}
case 10 -> {
TEReagentConduitMessage m = (TEReagentConduitMessage) msg;
target.writeInt(m.x);
target.writeInt(m.y);
target.writeInt(m.z);
target.writeBoolean(((TEMasterStoneMessage) msg).isRunning);
List<ColourAndCoords> list = m.destinationList;
break;
case 10:
target.writeInt(((TEReagentConduitMessage) msg).x);
target.writeInt(((TEReagentConduitMessage) msg).y);
target.writeInt(((TEReagentConduitMessage) msg).z);
List<ColourAndCoords> list = ((TEReagentConduitMessage) msg).destinationList;
target.writeInt(list.size());
list.forEach(colourSet -> {
for (ColourAndCoords colourSet : list) {
target.writeInt(colourSet.colourRed);
target.writeInt(colourSet.colourGreen);
target.writeInt(colourSet.colourBlue);
@@ -599,37 +670,49 @@ public enum NewPacketHandler {
target.writeInt(colourSet.xCoord);
target.writeInt(colourSet.yCoord);
target.writeInt(colourSet.zCoord);
});
}
case 11 -> {
CurrentLPMessage m = (CurrentLPMessage) msg;
target.writeInt(m.currentLP);
target.writeInt(m.maxLP);
}
case 12 -> {
CurrentReagentBarMessage m = (CurrentReagentBarMessage) msg;
char[] charSet = m.reagent.toCharArray();
}
break;
case 11:
target.writeInt(((CurrentLPMessage) msg).currentLP);
target.writeInt(((CurrentLPMessage) msg).maxLP);
break;
case 12:
char[] charSet = ((CurrentReagentBarMessage) msg).reagent.toCharArray();
target.writeInt(charSet.length);
for (char cha : charSet) {
target.writeChar(cha);
}
target.writeFloat(m.currentAR);
target.writeFloat(m.maxAR);
}
case 13 -> {
CurrentAddedHPMessage m = (CurrentAddedHPMessage) msg;
target.writeFloat(m.currentHP);
target.writeFloat(m.maxHP);
}
case 14 -> target.writeByte(((KeyboardMessage) msg).keyPressed);
case 15 -> {
GaiaBiomeChangeMessage m = (GaiaBiomeChangeMessage) msg;
target.writeInt(m.chunkX);
target.writeInt(m.chunkZ);
target.writeByte(m.biome);
byte[] arr = Arrays.copyOf(m.mask.toByteArray(), GaiaBiomeChangeMessage.maskByteCount);
target.writeFloat(((CurrentReagentBarMessage) msg).currentAR);
target.writeFloat(((CurrentReagentBarMessage) msg).maxAR);
break;
case 13:
target.writeFloat(((CurrentAddedHPMessage) msg).currentHP);
target.writeFloat(((CurrentAddedHPMessage) msg).maxHP);
break;
case 14:
System.out.println("Packet is being encoded");
target.writeByte(((KeyboardMessage) msg).keyPressed);
break;
case 15:
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkX);
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkZ);
target.writeByte(((GaiaBiomeChangeMessage) msg).biome);
byte[] arr = Arrays.copyOf(
((GaiaBiomeChangeMessage) msg).mask.toByteArray(),
GaiaBiomeChangeMessage.maskByteCount);
target.writeBytes(arr);
}
break;
}
}
@@ -638,183 +721,233 @@ public enum NewPacketHandler {
int index = dat.readInt();
switch (index) {
case 0 -> {
TEAltarMessage m = (TEAltarMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
case 0:
((TEAltarMessage) msg).x = dat.readInt();
((TEAltarMessage) msg).y = dat.readInt();
((TEAltarMessage) msg).z = dat.readInt();
boolean hasStacks = dat.readBoolean();
m.items = new int[TEAltar.sizeInv * 3];
((TEAltarMessage) msg).items = new int[TEAltar.sizeInv * 3];
if (hasStacks) {
m.items = new int[TEAltar.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
((TEAltarMessage) msg).items = new int[TEAltar.sizeInv * 3];
for (int i = 0; i < ((TEAltarMessage) msg).items.length; i++) {
((TEAltarMessage) msg).items[i] = dat.readInt();
}
}
boolean hasFluids = dat.readBoolean();
m.fluids = new int[6];
if (hasFluids) IntStream.range(0, m.fluids.length).forEach(i -> m.fluids[i] = dat.readInt());
m.capacity = dat.readInt();
}
case 1 -> {
TEOrientableMessage m = (TEOrientableMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
m.input = dat.readInt();
m.output = dat.readInt();
}
case 2 -> {
TEPedestalMessage m = (TEPedestalMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks = dat.readBoolean();
m.items = new int[TEPedestal.sizeInv * 3];
if (hasStacks) {
m.items = new int[TEPedestal.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
((TEAltarMessage) msg).fluids = new int[6];
if (hasFluids) for (int i = 0; i < ((TEAltarMessage) msg).fluids.length; i++) {
((TEAltarMessage) msg).fluids[i] = dat.readInt();
}
}
case 3 -> {
TEPlinthMessage m = (TEPlinthMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks = dat.readBoolean();
((TEAltarMessage) msg).capacity = dat.readInt();
m.items = new int[TEPlinth.sizeInv * 3];
if (hasStacks) {
m.items = new int[TEPlinth.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
break;
case 1:
((TEOrientableMessage) msg).x = dat.readInt();
((TEOrientableMessage) msg).y = dat.readInt();
((TEOrientableMessage) msg).z = dat.readInt();
((TEOrientableMessage) msg).input = dat.readInt();
((TEOrientableMessage) msg).output = dat.readInt();
break;
case 2:
((TEPedestalMessage) msg).x = dat.readInt();
((TEPedestalMessage) msg).y = dat.readInt();
((TEPedestalMessage) msg).z = dat.readInt();
boolean hasStacks1 = dat.readBoolean();
((TEPedestalMessage) msg).items = new int[TEPedestal.sizeInv * 3];
if (hasStacks1) {
((TEPedestalMessage) msg).items = new int[TEPedestal.sizeInv * 3];
for (int i = 0; i < ((TEPedestalMessage) msg).items.length; i++) {
((TEPedestalMessage) msg).items[i] = dat.readInt();
}
}
}
case 4 -> {
TESocketMessage m = (TESocketMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks = dat.readBoolean();
break;
m.items = new int[TESocket.sizeInv * 3];
if (hasStacks) {
m.items = new int[TESocket.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
case 3:
((TEPlinthMessage) msg).x = dat.readInt();
((TEPlinthMessage) msg).y = dat.readInt();
((TEPlinthMessage) msg).z = dat.readInt();
boolean hasStacks2 = dat.readBoolean();
((TEPlinthMessage) msg).items = new int[TEPlinth.sizeInv * 3];
if (hasStacks2) {
((TEPlinthMessage) msg).items = new int[TEPlinth.sizeInv * 3];
for (int i = 0; i < ((TEPlinthMessage) msg).items.length; i++) {
((TEPlinthMessage) msg).items[i] = dat.readInt();
}
}
}
case 5 -> {
TETeleposerMessage m = (TETeleposerMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks = dat.readBoolean();
break;
m.items = new int[TETeleposer.sizeInv * 3];
if (hasStacks) {
m.items = new int[TETeleposer.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
case 4:
((TESocketMessage) msg).x = dat.readInt();
((TESocketMessage) msg).y = dat.readInt();
((TESocketMessage) msg).z = dat.readInt();
boolean hasStacks3 = dat.readBoolean();
((TESocketMessage) msg).items = new int[TESocket.sizeInv * 3];
if (hasStacks3) {
((TESocketMessage) msg).items = new int[TESocket.sizeInv * 3];
for (int i = 0; i < ((TESocketMessage) msg).items.length; i++) {
((TESocketMessage) msg).items[i] = dat.readInt();
}
}
}
case 6 -> {
TEWritingTableMessage m = (TEWritingTableMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks = dat.readBoolean();
break;
m.items = new int[TEWritingTable.sizeInv * 3];
if (hasStacks) {
m.items = new int[TEWritingTable.sizeInv * 3];
IntStream.range(0, m.items.length).forEach(i -> m.items[i] = dat.readInt());
case 5:
((TETeleposerMessage) msg).x = dat.readInt();
((TETeleposerMessage) msg).y = dat.readInt();
((TETeleposerMessage) msg).z = dat.readInt();
boolean hasStacks4 = dat.readBoolean();
((TETeleposerMessage) msg).items = new int[TETeleposer.sizeInv * 3];
if (hasStacks4) {
((TETeleposerMessage) msg).items = new int[TETeleposer.sizeInv * 3];
for (int i = 0; i < ((TETeleposerMessage) msg).items.length; i++) {
((TETeleposerMessage) msg).items[i] = dat.readInt();
}
}
}
case 7 -> {
String str = IntStream.range(0, dat.readInt()).mapToObj(i -> String.valueOf(dat.readChar()))
.collect(Collectors.joining());
ParticleMessage m = (ParticleMessage) msg;
m.particle = str;
break;
m.xCoord = dat.readDouble();
m.yCoord = dat.readDouble();
m.zCoord = dat.readDouble();
case 6:
((TEWritingTableMessage) msg).x = dat.readInt();
((TEWritingTableMessage) msg).y = dat.readInt();
((TEWritingTableMessage) msg).z = dat.readInt();
m.xVel = dat.readDouble();
m.yVel = dat.readDouble();
m.zVel = dat.readDouble();
}
case 8 -> {
VelocityMessage m = (VelocityMessage) msg;
m.xVel = dat.readDouble();
m.yVel = dat.readDouble();
m.zVel = dat.readDouble();
}
case 9 -> {
TEMasterStoneMessage m = (TEMasterStoneMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
boolean hasStacks5 = dat.readBoolean();
m.ritual = IntStream.range(0, dat.readInt()).mapToObj(i -> String.valueOf(dat.readChar()))
.collect(Collectors.joining());
m.isRunning = dat.readBoolean();
}
case 10 -> {
TEReagentConduitMessage m = (TEReagentConduitMessage) msg;
m.x = dat.readInt();
m.y = dat.readInt();
m.z = dat.readInt();
((TEWritingTableMessage) msg).items = new int[TEWritingTable.sizeInv * 3];
if (hasStacks5) {
((TEWritingTableMessage) msg).items = new int[TEWritingTable.sizeInv * 3];
for (int i = 0; i < ((TEWritingTableMessage) msg).items.length; i++) {
((TEWritingTableMessage) msg).items[i] = dat.readInt();
}
}
break;
case 7:
int size = dat.readInt();
String str = "";
for (int i = 0; i < size; i++) {
str = str + dat.readChar();
}
((ParticleMessage) msg).particle = str;
((ParticleMessage) msg).xCoord = dat.readDouble();
((ParticleMessage) msg).yCoord = dat.readDouble();
((ParticleMessage) msg).zCoord = dat.readDouble();
((ParticleMessage) msg).xVel = dat.readDouble();
((ParticleMessage) msg).yVel = dat.readDouble();
((ParticleMessage) msg).zVel = dat.readDouble();
break;
case 8:
((VelocityMessage) msg).xVel = dat.readDouble();
((VelocityMessage) msg).yVel = dat.readDouble();
((VelocityMessage) msg).zVel = dat.readDouble();
break;
case 9:
((TEMasterStoneMessage) msg).x = dat.readInt();
((TEMasterStoneMessage) msg).y = dat.readInt();
((TEMasterStoneMessage) msg).z = dat.readInt();
int ritualStrSize = dat.readInt();
String ritual = "";
for (int i = 0; i < ritualStrSize; i++) {
ritual = ritual + dat.readChar();
}
((TEMasterStoneMessage) msg).ritual = ritual;
((TEMasterStoneMessage) msg).isRunning = dat.readBoolean();
break;
case 10:
((TEReagentConduitMessage) msg).x = dat.readInt();
((TEReagentConduitMessage) msg).y = dat.readInt();
((TEReagentConduitMessage) msg).z = dat.readInt();
int listSize = dat.readInt();
m.destinationList = IntStream.range(0, listSize)
.mapToObj(
i -> new ColourAndCoords(
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt()))
.collect(Collectors.toCollection(LinkedList::new));
}
case 11 -> {
CurrentLPMessage m = (CurrentLPMessage) msg;
m.currentLP = dat.readInt();
m.maxLP = dat.readInt();
}
case 12 -> {
CurrentReagentBarMessage m = (CurrentReagentBarMessage) msg;
m.reagent = IntStream.range(0, dat.readInt()).mapToObj(i -> String.valueOf(dat.readChar()))
.collect(Collectors.joining());
m.currentAR = dat.readFloat();
m.maxAR = dat.readFloat();
}
case 13 -> {
CurrentAddedHPMessage m = (CurrentAddedHPMessage) msg;
m.currentHP = dat.readFloat();
m.maxHP = dat.readFloat();
}
case 14 -> ((KeyboardMessage) msg).keyPressed = dat.readByte();
case 15 -> {
GaiaBiomeChangeMessage m = (GaiaBiomeChangeMessage) msg;
m.chunkX = dat.readInt();
m.chunkZ = dat.readInt();
m.biome = dat.readByte();
List<ColourAndCoords> list = new LinkedList();
for (int i = 0; i < listSize; i++) {
list.add(
new ColourAndCoords(
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt(),
dat.readInt()));
}
((TEReagentConduitMessage) msg).destinationList = list;
break;
case 11:
((CurrentLPMessage) msg).currentLP = dat.readInt();
((CurrentLPMessage) msg).maxLP = dat.readInt();
break;
case 12:
int size1 = dat.readInt();
String str1 = "";
for (int i = 0; i < size1; i++) {
str1 = str1 + dat.readChar();
}
((CurrentReagentBarMessage) msg).reagent = str1;
((CurrentReagentBarMessage) msg).currentAR = dat.readFloat();
((CurrentReagentBarMessage) msg).maxAR = dat.readFloat();
break;
case 13:
((CurrentAddedHPMessage) msg).currentHP = dat.readFloat();
((CurrentAddedHPMessage) msg).maxHP = dat.readFloat();
break;
case 14:
System.out.println("Packet recieved: being decoded");
((KeyboardMessage) msg).keyPressed = dat.readByte();
break;
case 15:
((GaiaBiomeChangeMessage) msg).chunkX = dat.readInt();
((GaiaBiomeChangeMessage) msg).chunkZ = dat.readInt();
((GaiaBiomeChangeMessage) msg).biome = dat.readByte();
byte[] buffer = new byte[GaiaBiomeChangeMessage.maskByteCount];
dat.readBytes(buffer);
m.mask = BitSet.valueOf(buffer);
}
((GaiaBiomeChangeMessage) msg).mask = BitSet.valueOf(buffer);
break;
}
}
}
@@ -839,8 +972,8 @@ public enum NewPacketHandler {
msg.x = tileOrientable.xCoord;
msg.y = tileOrientable.yCoord;
msg.z = tileOrientable.zCoord;
msg.input = TEOrientable.getIntForForgeDirection(tileOrientable.getInputDirection());
msg.output = TEOrientable.getIntForForgeDirection(tileOrientable.getOutputDirection());
msg.input = tileOrientable.getIntForForgeDirection(tileOrientable.getInputDirection());
msg.output = tileOrientable.getIntForForgeDirection(tileOrientable.getOutputDirection());
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
}
@@ -983,6 +1116,8 @@ public enum NewPacketHandler {
msg.index = 14;
msg.keyPressed = bt;
System.out.println("Packet is being created");
return INSTANCE.channels.get(Side.CLIENT).generatePacketFrom(msg);
}
@@ -24,9 +24,6 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockAlchemicCalcinator extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon icon;
public BlockAlchemicCalcinator() {
super(Material.rock);
setHardness(2.0F);
@@ -35,6 +32,9 @@ public class BlockAlchemicCalcinator extends BlockContainer {
this.setBlockName("alchemicCalcinator");
}
@SideOnly(Side.CLIENT)
private IIcon icon;
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
@@ -18,9 +18,7 @@ import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.api.items.IAltarManipulator;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
import WayofTime.alchemicalWizardry.common.items.sigil.holding.SigilOfHolding;
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
import cpw.mods.fml.relauncher.Side;
@@ -56,11 +54,14 @@ public class BlockAltar extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return switch (side) {
case 0 -> bottomIcon;
case 1 -> topIcon;
default -> sideIcon2;
};
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -72,29 +73,19 @@ public class BlockAltar extends BlockContainer {
public int getComparatorInputOverride(World world, int x, int y, int z, int meta) {
TileEntity tile = world.getTileEntity(x, y, z);
if (!(tile instanceof TEAltar altar)) {
return 0;
}
if (tile instanceof TEAltar) {
ItemStack stack = ((TEAltar) tile).getStackInSlot(0);
int maxEssence;
int currentEssence;
if (world.getBlock(x, y - 1, z) instanceof LargeBloodStoneBrick) {
ItemStack stack = altar.getStackInSlot(0);
if (stack == null || !(stack.getItem() instanceof IBloodOrb bloodOrb)
|| !(stack.getItem() instanceof IBindable)) {
return 0;
if (stack != null && stack.getItem() instanceof EnergyBattery) {
EnergyBattery bloodOrb = (EnergyBattery) stack.getItem();
int maxEssence = bloodOrb.getMaxEssence();
int currentEssence = bloodOrb.getCurrentEssence(stack);
int level = currentEssence * 15 / maxEssence;
return Math.min(15, level) % 16;
}
maxEssence = (int) (bloodOrb.getMaxEssence() * altar.getOrbMultiplier());
currentEssence = SoulNetworkHandler.getCurrentEssence(IBindable.getOwnerName(stack));
} else {
maxEssence = altar.getCapacity();
currentEssence = altar.getCurrentBlood();
}
return Math.min(15, currentEssence * 15 / maxEssence) % 16;
return 0;
}
@Override
@@ -29,12 +29,6 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockBelljar extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
@SideOnly(Side.CLIENT)
private IIcon otherIcon;
public BlockBelljar() {
super(Material.glass);
setHardness(2.0F);
@@ -45,6 +39,12 @@ public class BlockBelljar extends BlockContainer {
this.setHarvestLevel("pickaxe", 0);
}
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
@SideOnly(Side.CLIENT)
private IIcon otherIcon;
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
@@ -41,11 +41,14 @@ public class BlockConduit extends BlockOrientable {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return switch (side) {
case 0 -> bottomIcon;
case 1 -> topIcon;
default -> sideIcon2;
};
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -78,13 +78,22 @@ public class BlockCrucible extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return switch (side) {
case 0 -> bottomIcon;
case 1 -> topIcon;
default -> sideIcon;
};
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon;
}
}
// @Override
// public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z)
// {
// return null;
// }
@Override
public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
this.setBlockBounds(0.3125F, 0.0F, 0.3125F, 0.6875F, 0.625F, 0.6875F);
@@ -17,6 +17,10 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockCrystal extends Block {
// private Icon bloodRuneIcon;
@SideOnly(Side.CLIENT)
private IIcon fullIcon;
@SideOnly(Side.CLIENT)
private IIcon brickIcon;
@@ -31,7 +35,8 @@ public class BlockCrystal extends Block {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:ShardCluster");
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:BlankRune");
this.fullIcon = iconRegister.registerIcon("AlchemicalWizardry:ShardCluster");
this.brickIcon = iconRegister.registerIcon("AlchemicalWizardry:ShardClusterBrick");
}
@@ -52,10 +57,16 @@ public class BlockCrystal extends Block {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
if (meta == 1) {
return brickIcon;
switch (meta) {
case 0:
return fullIcon;
case 1:
return brickIcon;
default:
return blockIcon;
}
return blockIcon;
}
@Override
@@ -18,6 +18,9 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockEnchantmentGlyph extends Block implements IEnchantmentGlyph {
@SideOnly(Side.CLIENT)
private IIcon enchantability;
@SideOnly(Side.CLIENT)
private IIcon enchantmentLevel;
@@ -32,17 +35,22 @@ public class BlockEnchantmentGlyph extends Block implements IEnchantmentGlyph {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:GlyphEnchantability");
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:LargeBloodStoneBrick");
this.enchantability = iconRegister.registerIcon("AlchemicalWizardry:GlyphEnchantability");
this.enchantmentLevel = iconRegister.registerIcon("AlchemicalWizardry:GlyphEnchantmentLevel");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
if (meta == 1) {
return enchantmentLevel;
switch (meta) {
case 0:
return enchantability;
case 1:
return enchantmentLevel;
default:
return this.blockIcon;
}
return this.blockIcon;
}
@Override
@@ -46,11 +46,14 @@ public class BlockHomHeart extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return switch (side) {
case 0 -> bottomIcon;
case 1 -> topIcon;
default -> sideIcon;
};
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon;
}
}
@Override
@@ -12,6 +12,7 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
@@ -21,6 +22,15 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockPedestal extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon topIcon;
@SideOnly(Side.CLIENT)
private IIcon sideIcon2;
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
public BlockPedestal() {
super(Material.rock);
setHardness(2.0F);
@@ -34,7 +44,22 @@ public class BlockPedestal extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:ArcanePedestal");
this.topIcon = iconRegister.registerIcon("AlchemicalWizardry:ArcanePedestal");
this.sideIcon2 = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
this.bottomIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -12,6 +12,7 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
@@ -21,6 +22,15 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockPlinth extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon topIcon;
@SideOnly(Side.CLIENT)
private IIcon sideIcon2;
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
public BlockPlinth() {
super(Material.rock);
setHardness(2.0F);
@@ -34,7 +44,22 @@ public class BlockPlinth extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:ArcanePlinth");
this.topIcon = iconRegister.registerIcon("AlchemicalWizardry:ArcanePlinth");
this.sideIcon2 = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
this.bottomIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -2,14 +2,11 @@ package WayofTime.alchemicalWizardry.common.block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.common.tileEntity.TESchematicSaver;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockSchematicSaver extends BlockContainer {
@@ -21,12 +18,6 @@ public class BlockSchematicSaver extends BlockContainer {
this.setBlockName("schematicSaver");
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:SchematicSaver");
}
@Override
public TileEntity createNewTileEntity(World var1, int var2) {
return new TESchematicSaver();
@@ -12,6 +12,7 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
@@ -22,6 +23,15 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockSocket extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon topIcon;
@SideOnly(Side.CLIENT)
private IIcon sideIcon2;
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
public BlockSocket() {
super(Material.rock);
setHardness(2.0F);
@@ -34,7 +44,22 @@ public class BlockSocket extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
this.topIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
this.sideIcon2 = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
this.bottomIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodSocket");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -8,6 +8,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
@@ -17,6 +18,9 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockStabilityGlyph extends Block implements IStabilityGlyph {
@SideOnly(Side.CLIENT)
private IIcon stability1;
public BlockStabilityGlyph() {
super(Material.iron);
setHardness(2.0F);
@@ -28,7 +32,19 @@ public class BlockStabilityGlyph extends Block implements IStabilityGlyph {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:GlyphStability1");
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:LargeBloodStoneBrick");
this.stability1 = iconRegister.registerIcon("AlchemicalWizardry:GlyphStability1");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
switch (meta) {
case 0:
return stability1;
default:
return this.blockIcon;
}
}
@Override
@@ -4,6 +4,7 @@ import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.BlockMobSpawner;
import net.minecraft.block.BlockPortal;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
@@ -15,19 +16,18 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.event.TeleposeEvent;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.demonVillage.tileEntity.TEDemonPortal;
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
import codechicken.multipart.MultipartHelper;
import codechicken.multipart.TileMultipart;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -37,7 +37,10 @@ public class BlockTeleposer extends BlockContainer {
private IIcon topIcon;
@SideOnly(Side.CLIENT)
private IIcon sideIcon;
private IIcon sideIcon2;
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
public BlockTeleposer() {
super(Material.rock);
@@ -51,14 +54,21 @@ public class BlockTeleposer extends BlockContainer {
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.topIcon = iconRegister.registerIcon("AlchemicalWizardry:Teleposer_Top");
this.sideIcon = iconRegister.registerIcon("AlchemicalWizardry:Teleposer_Side");
this.sideIcon2 = iconRegister.registerIcon("AlchemicalWizardry:Teleposer_Side");
this.bottomIcon = iconRegister.registerIcon("AlchemicalWizardry:Teleposer_Side");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
if (side == 1) return topIcon;
return sideIcon;
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -66,18 +76,23 @@ public class BlockTeleposer extends BlockContainer {
float these, float are) {
ItemStack playerItem = player.getCurrentEquippedItem();
if (playerItem == null || !(playerItem.getItem() instanceof TelepositionFocus)) {
player.openGui(AlchemicalWizardry.instance, 1, world, x, y, z);
return true;
if (playerItem != null) {
if (playerItem.getItem() instanceof TelepositionFocus) {
SoulNetworkHandler.checkAndSetItemPlayer(playerItem, player);
if (playerItem.getTagCompound() == null) {
playerItem.setTagCompound(new NBTTagCompound());
}
NBTTagCompound itemTag = playerItem.getTagCompound();
itemTag.setInteger("xCoord", x);
itemTag.setInteger("yCoord", y);
itemTag.setInteger("zCoord", z);
itemTag.setInteger("dimensionId", world.provider.dimensionId);
return true;
}
}
SoulNetworkHandler.checkAndSetItemPlayer(playerItem, player);
NBTTagCompound itemTag = IBindable.getTag(playerItem);
itemTag.setInteger("xCoord", x);
itemTag.setInteger("yCoord", y);
itemTag.setInteger("zCoord", z);
itemTag.setInteger("dimensionId", world.provider.dimensionId);
player.openGui(AlchemicalWizardry.instance, 1, world, x, y, z);
return true;
}
@@ -91,36 +106,38 @@ public class BlockTeleposer extends BlockContainer {
Random rand = new Random();
TileEntity tileEntity = world.getTileEntity(x, y, z);
if (!(tileEntity instanceof IInventory inventory)) {
if (!(tileEntity instanceof IInventory)) {
return;
}
ItemStack item = inventory.getStackInSlot(0);
IInventory inventory = (IInventory) tileEntity;
if (item == null || item.stackSize <= 0) {
return;
for (int i = 0; i < inventory.getSizeInventory(); i++) {
ItemStack item = inventory.getStackInSlot(i);
if (item != null && item.stackSize > 0) {
float rx = rand.nextFloat() * 0.8F + 0.1F;
float ry = rand.nextFloat() * 0.8F + 0.1F;
float rz = rand.nextFloat() * 0.8F + 0.1F;
EntityItem entityItem = new EntityItem(
world,
x + rx,
y + ry,
z + rz,
new ItemStack(item.getItem(), item.stackSize, item.getItemDamage()));
if (item.hasTagCompound()) {
entityItem.getEntityItem().setTagCompound((NBTTagCompound) item.getTagCompound().copy());
}
float factor = 0.05F;
entityItem.motionX = rand.nextGaussian() * factor;
entityItem.motionY = rand.nextGaussian() * factor + 0.2F;
entityItem.motionZ = rand.nextGaussian() * factor;
world.spawnEntityInWorld(entityItem);
item.stackSize = 0;
}
}
float rx = rand.nextFloat() * 0.8F + 0.1F;
float ry = rand.nextFloat() * 0.8F + 0.1F;
float rz = rand.nextFloat() * 0.8F + 0.1F;
EntityItem entityItem = new EntityItem(
world,
x + rx,
y + ry,
z + rz,
new ItemStack(item.getItem(), item.stackSize, item.getItemDamage()));
if (item.hasTagCompound()) {
entityItem.getEntityItem().setTagCompound((NBTTagCompound) item.getTagCompound().copy());
}
float factor = 0.05F;
entityItem.motionX = rand.nextGaussian() * factor;
entityItem.motionY = rand.nextGaussian() * factor + 0.2F;
entityItem.motionZ = rand.nextGaussian() * factor;
world.spawnEntityInWorld(entityItem);
item.stackSize = 0;
}
@Override
@@ -128,98 +145,126 @@ public class BlockTeleposer extends BlockContainer {
return new TETeleposer();
}
public static boolean swapBlocks(Object caller, World worldA, World worldB, int xA, int yA, int zA, int xB, int yB,
int zB) {
return swapBlocks(caller, worldA, worldB, xA, yA, zA, xB, yB, zB, true, 3);
public static boolean swapBlocks(Object caller, World worldI, World worldF, int xi, int yi, int zi, int xf, int yf,
int zf) {
return swapBlocks(caller, worldI, worldF, xi, yi, zi, xf, yf, zf, true, 3);
}
public static boolean swapBlocksWithoutSound(Object caller, World worldA, World worldB, int xA, int yA, int zA,
int xB, int yB, int zB) {
return swapBlocks(caller, worldA, worldB, xA, yA, zA, xB, yB, zB, false, 3);
public static boolean swapBlocksWithoutSound(Object caller, World worldI, World worldF, int xi, int yi, int zi,
int xf, int yf, int zf) {
return swapBlocks(caller, worldI, worldF, xi, yi, zi, xf, yf, zf, false, 3);
}
public static boolean swapBlocks(Object caller, World worldA, World worldB, int xA, int yA, int zA, int xB, int yB,
int zB, boolean doSound, int flag) {
TileEntity tileA = worldA.getTileEntity(xA, yA, zA);
TileEntity tileB = worldB.getTileEntity(xB, yB, zB);
public static boolean swapBlocks(Object caller, World worldI, World worldF, int xi, int yi, int zi, int xf, int yf,
int zf, boolean doSound, int flag) {
TileEntity tileEntityI = worldI.getTileEntity(xi, yi, zi);
TileEntity tileEntityF = worldF.getTileEntity(xf, yf, zf);
NBTTagCompound nbtA = new NBTTagCompound();
NBTTagCompound nbtB = new NBTTagCompound();
NBTTagCompound nbttag1 = new NBTTagCompound();
NBTTagCompound nbttag2 = new NBTTagCompound();
if (tileA != null) tileA.writeToNBT(nbtA);
if (tileB != null) tileB.writeToNBT(nbtB);
if (tileEntityI != null) {
tileEntityI.writeToNBT(nbttag1);
}
Block blockA = worldA.getBlock(xA, yA, zA);
Block blockB = worldB.getBlock(xB, yB, zB);
if (tileEntityF != null) {
tileEntityF.writeToNBT(nbttag2);
}
if (blockA.equals(Blocks.air) && blockB.equals(Blocks.air)) return false;
Block blockI = worldI.getBlock(xi, yi, zi);
Block blockF = worldF.getBlock(xf, yf, zf);
if (!(caller instanceof TEDemonPortal) && (blockA instanceof BlockPortal || blockB instanceof BlockPortal))
if (blockI.equals(Blocks.air) && blockF.equals(Blocks.air)) {
return false;
}
int metaA = worldA.getBlockMetadata(xA, yA, zA);
int metaB = worldB.getBlockMetadata(xB, yB, zB);
if (blockI instanceof BlockMobSpawner || blockF instanceof BlockMobSpawner || caller instanceof TEDemonPortal
? false
: blockI instanceof BlockPortal || blockF instanceof BlockPortal) {
return false;
}
TeleposeEvent evt = new TeleposeEvent(worldA, xA, yA, zA, blockA, metaA, worldB, xB, yB, zB, blockB, metaB);
int metaI = worldI.getBlockMetadata(xi, yi, zi);
int metaF = worldF.getBlockMetadata(xf, yf, zf);
TeleposeEvent evt = new TeleposeEvent(worldI, xi, yi, zi, blockI, metaI, worldF, xf, yf, zf, blockF, metaF);
if (MinecraftForge.EVENT_BUS.post(evt)) return false;
if (doSound) {
String sound = "mob.endermen.portal";
worldA.playSoundEffect(xA, yA, zA, sound, 1.0F, 1.0F);
worldB.playSoundEffect(xB, yB, zB, sound, 1.0F, 1.0F);
worldI.playSoundEffect(xi, yi, zi, "mob.endermen.portal", 1.0F, 1.0F);
worldF.playSoundEffect(xf, yf, zf, "mob.endermen.portal", 1.0F, 1.0F);
}
// Clear current tile entities
worldB.setTileEntity(xB, yB, zB, blockB.createTileEntity(worldB, metaB));
worldA.setTileEntity(xA, yA, zA, blockA.createTileEntity(worldA, metaA));
// CLEAR TILES
Block finalBlock = blockF;
// Swap blocks
worldB.setBlock(xB, yB, zB, blockA, metaA, flag);
worldA.setBlock(xA, yA, zA, blockB, metaB, flag);
if (finalBlock != null) {
TileEntity tileToSet = finalBlock.createTileEntity(worldF, metaF);
// Restore tile entities
swapTile(worldB, xB, yB, zB, tileA, nbtA);
swapTile(worldA, xA, yA, zA, tileB, nbtB);
worldF.setTileEntity(xf, yf, zf, tileToSet);
}
if (blockI != null) {
TileEntity tileToSet = blockI.createTileEntity(worldI, metaI);
worldI.setTileEntity(xi, yi, zi, tileToSet);
}
// TILES CLEARED
worldF.setBlock(xf, yf, zf, blockI, metaI, flag);
if (tileEntityI != null) {
TileEntity newTileEntityI = TileEntity.createAndLoadEntity(nbttag1);
if (AlchemicalWizardry.isFMPLoaded && isMultipart(tileEntityI)) {
newTileEntityI = createMultipartFromNBT(worldF, nbttag1);
}
worldF.setTileEntity(xf, yf, zf, newTileEntityI);
newTileEntityI.xCoord = xf;
newTileEntityI.yCoord = yf;
newTileEntityI.zCoord = zf;
if (AlchemicalWizardry.isFMPLoaded && isMultipart(tileEntityI)) {
sendDescriptorOfTile(worldF, newTileEntityI);
}
}
worldI.setBlock(xi, yi, zi, finalBlock, metaF, flag);
if (tileEntityF != null) {
TileEntity newTileEntityF = TileEntity.createAndLoadEntity(nbttag2);
if (AlchemicalWizardry.isFMPLoaded && isMultipart(tileEntityF)) {
newTileEntityF = createMultipartFromNBT(worldI, nbttag2);
}
worldI.setTileEntity(xi, yi, zi, newTileEntityF);
newTileEntityF.xCoord = xi;
newTileEntityF.yCoord = yi;
newTileEntityF.zCoord = zi;
if (AlchemicalWizardry.isFMPLoaded && isMultipart(tileEntityF)) {
sendDescriptorOfTile(worldI, newTileEntityF);
}
}
return true;
}
private static void swapTile(World world, int x, int y, int z, TileEntity oldTile, NBTTagCompound nbt) {
if (oldTile == null) return;
TileEntity newTile;
boolean multipart = AlchemicalWizardry.isFMPLoaded && oldTile instanceof TileMultipart;
if (multipart) {
newTile = MultipartHelper.createTileFromNBT(world, nbt);
} else {
newTile = TileEntity.createAndLoadEntity(nbt);
}
world.setTileEntity(x, y, z, newTile);
newTile.xCoord = x;
newTile.yCoord = y;
newTile.zCoord = z;
if (multipart) MultipartHelper.sendDescPacket(world, newTile);
@Optional.Method(modid = "ForgeMultipart")
public static boolean isMultipart(TileEntity tile) {
return tile instanceof TileMultipart;
}
@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbor) {
if (!(world.getTileEntity(x, y, z) instanceof TETeleposer teleposer)) return;
// was it a low->high pulse
boolean isPowered = world.isBlockIndirectlyGettingPowered(x, y, z);
if (!teleposer.hasRedstone && isPowered) {
teleposer.hasRedstone = true;
teleposer.activate();
} else {
teleposer.hasRedstone = isPowered;
}
@Optional.Method(modid = "ForgeMultipart")
public static TileEntity createMultipartFromNBT(World world, NBTTagCompound tag) {
return MultipartHelper.createTileFromNBT(world, tag);
}
@Override
public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side) {
return true;
@Optional.Method(modid = "ForgeMultipart")
public static void sendDescriptorOfTile(World world, TileEntity tile) {
MultipartHelper.sendDescPacket(world, tile);
}
}
@@ -15,6 +15,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
@@ -24,6 +25,15 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockWritingTable extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon topIcon;
@SideOnly(Side.CLIENT)
private IIcon sideIcon2;
@SideOnly(Side.CLIENT)
private IIcon bottomIcon;
public BlockWritingTable() {
super(Material.wood);
setHardness(2.0F);
@@ -35,7 +45,22 @@ public class BlockWritingTable extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("AlchemicalWizardry:AlchemicChemistrySet");
this.topIcon = iconRegister.registerIcon("AlchemicalWizardry:AlchemicChemistrySet");
this.sideIcon2 = iconRegister.registerIcon("AlchemicalWizardry:BloodAltar_SideType2");
this.bottomIcon = iconRegister.registerIcon("AlchemicalWizardry:BloodAltar_Bottom");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
switch (side) {
case 0:
return bottomIcon;
case 1:
return topIcon;
default:
return sideIcon2;
}
}
@Override
@@ -105,15 +105,31 @@ public class BloodRune extends Block {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return switch (meta) {
case 1 -> altarCapacityRuneIcon;
case 2 -> dislocationRuneIcon;
case 3 -> this.orbCapacityRuneIcon;
case 4 -> this.betterCapacityRuneIcon;
case 5 -> this.accelerationRuneIcon;
case 6 -> this.quicknessRuneIcon;
default -> blockIcon;
};
switch (meta) {
case 0:
return blockIcon;
case 1:
return altarCapacityRuneIcon;
case 2:
return dislocationRuneIcon;
case 3:
return this.orbCapacityRuneIcon;
case 4:
return this.betterCapacityRuneIcon;
case 5:
return this.accelerationRuneIcon;
case 6:
return this.quicknessRuneIcon;
default:
return blockIcon;
}
}
@Override
@@ -4,6 +4,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
@@ -58,28 +59,36 @@ public class RitualStone extends Block implements IRitualStone {
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float subX,
float subY, float subZ) {
ItemStack stack = player.getCurrentEquippedItem();
if (stack == null || !(stack.getItem() instanceof ScribeTool scribe)) {
public int damageDropped(int metadata) {
return 0;
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what,
float these, float are) {
ItemStack playerItem = player.getCurrentEquippedItem();
if (playerItem == null) {
return false;
}
int toolType = scribe.getType();
Item item = playerItem.getItem();
if (toolType == world.getBlockMetadata(x, y, z)) {
if (!(item instanceof ScribeTool)) {
return false;
}
if (stack.getMaxDamage() != 0 && stack.getItemDamage() >= stack.getMaxDamage()) {
if (playerItem.getMaxDamage() <= playerItem.getItemDamage() && !(playerItem.getMaxDamage() == 0)) {
return false;
}
ScribeTool scribeTool = (ScribeTool) item;
if (!player.capabilities.isCreativeMode) {
stack.setItemDamage(stack.getItemDamage() + 1);
playerItem.setItemDamage(playerItem.getItemDamage() + 1);
}
world.setBlockMetadataWithNotify(x, y, z, toolType, 3);
world.setBlockMetadataWithNotify(x, y, z, scribeTool.getType(), 3);
world.markBlockForUpdate(x, y, z);
return true;
}
@@ -87,15 +96,31 @@ public class RitualStone extends Block implements IRitualStone {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int metadata) {
return switch (metadata) {
case 1 -> waterStoneIcon;
case 2 -> fireStoneIcon;
case 3 -> earthStoneIcon;
case 4 -> airStoneIcon;
case 5 -> duskStoneIcon;
case 6 -> dawnStoneIcon;
default -> blankIcon;
};
switch (metadata) {
case 0:
return blankIcon;
case 1:
return waterStoneIcon;
case 2:
return fireStoneIcon;
case 3:
return earthStoneIcon;
case 4:
return airStoneIcon;
case 5:
return duskStoneIcon;
case 6:
return dawnStoneIcon;
default:
return blankIcon;
}
}
@Override
@@ -0,0 +1,19 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class AirScribeTool extends ScribeTool {
public AirScribeTool() {
super(4);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:AirScribeTool");
}
}
@@ -0,0 +1,19 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class DawnScribeTool extends ScribeTool {
public DawnScribeTool() {
super(6);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DawnScribeTool");
}
}
@@ -0,0 +1,19 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class DuskScribeTool extends ScribeTool {
public DuskScribeTool() {
super(5);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DuskScribeTool");
}
}
@@ -0,0 +1,19 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class EarthScribeTool extends ScribeTool {
public EarthScribeTool() {
super(3);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:EarthScribeTool");
}
}
@@ -43,7 +43,6 @@ public class EnergyBattery extends Item implements ArmourUpgrade, IBindable, IBl
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.energybattery.desc"));
par3List.add(StatCollector.translateToLocalFormatted("tooltip.energybattery.capacity", this.getMaxEssence()));
addBindingInformation(par1ItemStack, par3List);
}
@@ -71,11 +71,15 @@ public class EnergyBlast extends EnergyItems {
@SideOnly(Side.CLIENT)
public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) {
if (IBindable.isActive(stack)) {
return switch (this.tier) {
case 2 -> this.activeIconTier2;
case 3 -> this.activeIconTier3;
default -> this.activeIcon;
};
switch (this.tier) {
case 1:
return this.activeIcon;
case 2:
return this.activeIconTier2;
case 3:
return this.activeIconTier3;
}
return this.activeIcon;
} else {
return this.passiveIcon;
}
@@ -133,26 +133,25 @@ public class EnergyItems extends Item implements IBindable {
}
public static boolean canSyphonInContainer(ItemStack ist, int damageToBeDone) {
if (!(ist.getItem() instanceof IBindable)) {
return false;
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").equals(""))) {
String ownerName = ist.getTagCompound().getString("ownerName");
if (MinecraftServer.getServer() == null) {
return false;
}
World world = MinecraftServer.getServer().worldServers[0];
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
if (data == null) {
data = new LifeEssenceNetwork(ownerName);
world.setItemData(ownerName, data);
}
return data.currentEssence >= damageToBeDone;
}
String ownerName = IBindable.getOwnerName(ist);
MinecraftServer server = MinecraftServer.getServer();
if (ownerName.isEmpty() || server == null) {
return false;
}
World world = server.worldServers[0];
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
if (data == null) {
data = new LifeEssenceNetwork(ownerName);
world.setItemData(ownerName, data);
}
return data.currentEssence >= damageToBeDone;
return false;
}
public static void hurtPlayer(EntityPlayer user, int energySyphoned) {
@@ -0,0 +1,19 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class FireScribeTool extends ScribeTool {
public FireScribeTool() {
super(2);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:FireScribeTool");
}
}
@@ -142,9 +142,6 @@ public class ItemIncense extends Item implements IIncense {
ItemStack quartzStack = new ItemStack(Items.quartz, 1, WILDCARD);
ItemStack blazePowderStack = new ItemStack(Items.blaze_powder);
ItemStack netherwartStack = new ItemStack(Items.nether_wart);
ItemStack blankSlateStack = new ItemStack(ModItems.blankSlate);
ItemStack reinforcedSlateStack = new ItemStack(ModItems.reinforcedSlate);
ItemStack fracturedBoneStack = new ItemStack(ModItems.baseAlchemyItems, 1, 5);
ItemStack woodashStack = new ItemStack(ModItems.itemIncense, 1, 0);
@@ -159,7 +156,7 @@ public class ItemIncense extends Item implements IIncense {
new ItemStack(Items.redstone),
leavesStack,
leavesStack,
new ItemStack(ModItems.weakBloodOrb)));
new ItemStack(ModItems.apprenticeBloodOrb)));
GameRegistry.addRecipe(
new ShapelessBloodOrbRecipe(
new ItemStack(ModItems.itemIncense, 1, 2),
@@ -171,7 +168,7 @@ public class ItemIncense extends Item implements IIncense {
glowstoneStack,
stringStack,
stringStack,
new ItemStack(ModItems.apprenticeBloodOrb)));
new ItemStack(ModItems.magicianBloodOrb)));
GameRegistry.addRecipe(
new ShapelessBloodOrbRecipe(
new ItemStack(ModItems.itemIncense, 1, 3),
@@ -181,8 +178,7 @@ public class ItemIncense extends Item implements IIncense {
soulSandStack,
gunpowderStack,
fermentedEyeStack,
blankSlateStack,
new ItemStack(ModItems.apprenticeBloodOrb)));
new ItemStack(ModItems.masterBloodOrb)));
GameRegistry.addRecipe(
new ShapelessBloodOrbRecipe(
new ItemStack(ModItems.itemIncense, 1, 4),
@@ -193,17 +189,17 @@ public class ItemIncense extends Item implements IIncense {
netherwartStack,
blazePowderStack,
fracturedBoneStack,
reinforcedSlateStack,
new ItemStack(ModItems.magicianBloodOrb)));
goldNuggetStack,
new ItemStack(ModItems.archmageBloodOrb)));
}
public enum EnumIncense {
WOODASH(0, 400, 1.0f, 2000, 0.937f, 0.898f, 0.820f),
RED(400, 800, 1.5f, 2000, 1.0f, 0, 0),
BLUE(800, 1500, 3.0f, 2000, 0, 0, 1.0f),
GREEN(1500, 2400, 4.0f, 2000, 0, 1.0f, 0),
PURPLE(2400, 3500, 5.0f, 2000, 1.0f, 0, 1.0f);
WOODASH(0, 200, 1.0f, 1000, 0.937f, 0.898f, 0.820f),
RED(200, 600, 1.5f, 1000, 1.0f, 0, 0),
BLUE(600, 1200, 3.0f, 1000, 0, 0, 1.0f),
GREEN(1200, 2000, 4.0f, 1000, 0, 1.0f, 0),
PURPLE(2000, 3000, 5.0f, 1000, 1.0f, 0, 1.0f);
public final int minValue;
public final int maxValue;
@@ -2,68 +2,44 @@ package WayofTime.alchemicalWizardry.common.items;
import java.util.List;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ScribeTool extends EnergyItems {
private final int meta;
private final String iconName;
@SideOnly(Side.CLIENT)
private IIcon icon;
private int meta;
public ScribeTool(int inkType) {
this(inkType, "unknown");
}
public ScribeTool(int inkType, String iconName) {
super();
this.meta = inkType;
this.iconName = iconName;
setMaxStackSize(1);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
setMaxDamage(10);
setEnergyUsed(10);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
this.meta = inkType;
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.scribetool.desc"));
addBindingInformation(par1ItemStack, par3List);
}
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if (IBindable.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer)) {
if (par1ItemStack.getItemDamage() > 0) {
par1ItemStack.setItemDamage(par1ItemStack.getItemDamage() - 1);
}
}
return par1ItemStack;
}
public int getType() {
return this.meta;
}
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean sneaking) {
list.add(StatCollector.translateToLocal("tooltip.scribetool.desc"));
addBindingInformation(stack, list);
}
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if (IBindable.checkAndSetItemOwner(stack, player) && stack.getItemDamage() > 0
&& EnergyItems.syphonBatteries(stack, player, getEnergyUsed())) {
stack.setItemDamage(stack.getItemDamage() - 1);
}
return stack;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister register) {
this.icon = register.registerIcon("AlchemicalWizardry:" + iconName);
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIconFromDamage(int damage) {
return this.icon;
}
}
@@ -17,7 +17,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class TelepositionFocus extends EnergyItems {
private final int focusLevel;
private int focusLevel;
public TelepositionFocus(int focusLevel) {
super();
@@ -33,8 +33,7 @@ public class TelepositionFocus extends EnergyItems {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.telepositionfocus.desc"));
addBindingInformation(par1ItemStack, par3List);
@@ -51,12 +50,20 @@ public class TelepositionFocus extends EnergyItems {
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
IBindable.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer);
if (IBindable.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer)) {
if (par3EntityPlayer.isSneaking()) {
return par1ItemStack;
}
}
return par1ItemStack;
}
public int getDimensionID(ItemStack itemStack) {
return IBindable.getTag(itemStack).getInteger("dimensionId");
if (itemStack.getTagCompound() == null) {
itemStack.setTagCompound(new NBTTagCompound());
}
return itemStack.getTagCompound().getInteger("dimensionId");
}
public World getWorld(ItemStack itemStack) {
@@ -65,15 +72,27 @@ public class TelepositionFocus extends EnergyItems {
}
public int xCoord(ItemStack itemStack) {
return IBindable.getTag(itemStack).getInteger("xCoord");
if (!(itemStack.getTagCompound() == null)) {
return itemStack.getTagCompound().getInteger("xCoord");
} else {
return 0;
}
}
public int yCoord(ItemStack itemStack) {
return IBindable.getTag(itemStack).getInteger("yCoord");
if (!(itemStack.getTagCompound() == null)) {
return itemStack.getTagCompound().getInteger("yCoord");
} else {
return 0;
}
}
public int zCoord(ItemStack itemStack) {
return IBindable.getTag(itemStack).getInteger("zCoord");
if (!(itemStack.getTagCompound() == null)) {
return itemStack.getTagCompound().getInteger("zCoord");
} else {
return 0;
}
}
public int getFocusLevel() {
@@ -0,0 +1,21 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class WaterScribeTool extends ScribeTool {
public WaterScribeTool() {
super(1);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:WaterScribeTool");
}
}
@@ -124,11 +124,13 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(ItemStack stack, int pass) {
return switch (pass) {
case 0 -> this.crystalBody;
case 1 -> this.crystalLabel;
default -> this.itemIcon;
};
switch (pass) {
case 0:
return this.crystalBody;
case 1:
return this.crystalLabel;
}
return this.itemIcon;
}
@Override
@@ -104,11 +104,13 @@ public class ItemTankSegmenter extends Item implements IReagentManipulator {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(ItemStack stack, int pass) {
return switch (pass) {
case 0 -> this.crystalBody;
case 1 -> this.crystalLabel;
default -> this.itemIcon;
};
switch (pass) {
case 0:
return this.crystalBody;
case 1:
return this.crystalLabel;
}
return this.itemIcon;
}
@Override
@@ -1,7 +1,5 @@
package WayofTime.alchemicalWizardry.common.items.potion;
import static WayofTime.alchemicalWizardry.AlchemicalWizardry.allowPotionRepair;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -349,10 +347,4 @@ public class AlchemyFlask extends Item {
potionStack.getTagCompound().setTag("CustomPotionEffects", nbttaglist);
return new EntityPotion(worldObj, entityLivingBase, potionStack);
}
@Override
public boolean isRepairable() {
if (allowPotionRepair) return super.isRepairable();
return false;
}
}
@@ -32,11 +32,8 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
if (!(par1ItemStack.getItem() instanceof OutputRoutingFocus focus)) return;
par3List.addAll(focus.getLogic(par1ItemStack).getDescription());
if (!(par1ItemStack.getTagCompound() == null)) {
int limit = this.getRoutingFocusLimit(par1ItemStack);
@@ -58,18 +55,49 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
@SideOnly(Side.CLIENT)
public IIcon getIconFromDamage(int damage) {
return switch (damage) {
case 1 -> this.modItemIcon;
case 2 -> this.ignMetaIcon;
case 3 -> this.matchNBTIcon;
case 4 -> this.globalIcon;
default -> this.itemIcon;
};
switch (damage) {
case 0:
return this.itemIcon;
case 1:
return this.modItemIcon;
case 2:
return this.ignMetaIcon;
case 3:
return this.matchNBTIcon;
case 4:
return this.globalIcon;
}
return this.itemIcon;
}
@Override
public String getUnlocalizedName(ItemStack itemStack) {
String addedString = "";
switch (itemStack.getItemDamage()) {
case 0:
addedString = "default";
break;
case 1:
addedString = "modItem";
break;
case 2:
addedString = "ignMeta";
break;
case 3:
addedString = "matchNBT";
break;
case 4:
addedString = "global";
break;
}
return super.getUnlocalizedName() + "." + addedString;
}
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list) {
public void getSubItems(Item id, CreativeTabs creativeTab, List list) {
for (int meta = 0; meta < 5; ++meta) {
list.add(new ItemStack(id, 1, meta));
}
@@ -78,14 +106,18 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
@Override
public RoutingFocusLogic getLogic(ItemStack itemStack) {
if (itemStack != null) {
return switch (itemStack.getItemDamage()) {
case 0 -> new RoutingFocusLogicLimitDefault(itemStack);
case 1 -> new RoutingFocusLogicLimitModItems(itemStack);
case 2 -> new RoutingFocusLogicLimitIgnMeta(itemStack);
case 3 -> new RoutingFocusLogicLimitMatchNBT(itemStack);
case 4 -> new RoutingFocusLogicLimitGlobal(itemStack);
default -> new RoutingFocusLogic();
};
switch (itemStack.getItemDamage()) {
case 0:
return new RoutingFocusLogicLimitDefault(itemStack);
case 1:
return new RoutingFocusLogicLimitModItems(itemStack);
case 2:
return new RoutingFocusLogicLimitIgnMeta(itemStack);
case 3:
return new RoutingFocusLogicLimitMatchNBT(itemStack);
case 4:
return new RoutingFocusLogicLimitGlobal(itemStack);
}
}
return new RoutingFocusLogic();
@@ -74,8 +74,7 @@ public class RoutingFocus extends Item {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal(this.getFocusDescription()));
if (!(par1ItemStack.getTagCompound() == null)) {
@@ -90,9 +89,7 @@ public class RoutingFocus extends Item {
+ itemTag.getInteger("zCoord"));
par3List.add(
StatCollector.translateToLocal("tooltip.alchemy.direction") + " "
+ StatCollector.translateToLocal(
"message.ritual.side."
+ this.getSetDirection(par1ItemStack).toString().toLowerCase()));
+ this.getSetDirection(par1ItemStack));
}
}
@@ -171,17 +168,4 @@ public class RoutingFocus extends Item {
public RoutingFocusLogic getLogic(ItemStack itemStack) {
return new RoutingFocusLogic();
}
public String getName(ItemStack stack) {
if (stack.hasTagCompound()) {
NBTTagCompound tag = stack.getTagCompound();
if (tag.hasKey("display", 10)) {
NBTTagCompound display = tag.getCompoundTag("display");
if (display.hasKey("Name", 8)) {
return display.getString("Name");
}
}
}
return "";
}
}
@@ -8,7 +8,6 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
@@ -89,27 +88,49 @@ public class ItemSanguineArmour extends ItemArmor
if (this == ModItems.sanguinePants) {
return "alchemicalwizardry:models/armor/sanguineArmour_layer_2.png";
}
return null;
}
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean adv) {
if (this.armorType == 0) {
list.add(StatCollector.translateToLocal("tooltip.sanguinearmor.desc1"));
} else {
list.add(StatCollector.translateToLocal("tooltip.sanguinearmor.desc2"));
return null;
}
list.add(
EnumChatFormatting.DARK_PURPLE + StatCollector.translateToLocalFormatted(
"tooltip.sanguinearmor.visdisc",
getVisDiscount(stack, player, null)));
}
@Override
public void onArmourUpdate(World world, EntityPlayer player, ItemStack thisItemStack) {}
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
int discount = 0;
switch (this.armorType) {
case 0:
discount = 6;
break;
case 1:
discount = 3;
break;
case 2:
discount = 3;
break;
case 3:
discount = 2;
break;
}
switch (this.armorType) {
case 0:
par3List.add(StatCollector.translateToLocal("tooltip.sanguinearmor.desc1"));
break;
case 1:
case 2:
case 3:
par3List.add(StatCollector.translateToLocal("tooltip.sanguinearmor.desc2"));
}
par3List.add(StatCollector.translateToLocal("tooltip.sanguinearmor.visdisc") + " " + discount + "%");
}
@Override
public void onArmourUpdate(World world, EntityPlayer player, ItemStack thisItemStack) {
return;
}
@Override
public boolean isUpgrade() {
@@ -128,12 +149,17 @@ public class ItemSanguineArmour extends ItemArmor
@Override
public int getVisDiscount(ItemStack stack, EntityPlayer player, Aspect aspect) {
return switch (this.armorType) {
case 0 -> 7;
case 1 -> 3;
case 2, 3 -> 2;
default -> 0;
};
switch (this.armorType) {
case 0:
return 7;
case 1:
return 3;
case 2:
return 2;
case 3:
return 2;
}
return 0;
}
@Override
@@ -1,7 +1,10 @@
package WayofTime.alchemicalWizardry.common.rituals;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory;
@@ -17,142 +20,226 @@ import WayofTime.alchemicalWizardry.api.RoutingFocusPosAndFacing;
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.items.routing.InputRoutingFocus;
import WayofTime.alchemicalWizardry.common.items.routing.OutputRoutingFocus;
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
public class RitualEffectItemRouting extends RitualEffect {
private static final Int3[] INPUT_BUFFER_LOCATIONS = { new Int3(1, 0, 0), new Int3(-1, 0, 0), new Int3(0, 0, 1),
new Int3(0, 0, -1) };
private static final Int3[] OUTPUT_BUFFER_LOCATIONS = { new Int3(2, 0, 2), new Int3(-2, 0, 2), new Int3(2, 0, -2),
new Int3(-2, 0, -2) };
Random rand = new Random();
@Override
public void performEffect(IMasterRitualStone ritualStone) {
String owner = ritualStone.getOwner();
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
World world = ritualStone.getWorld();
int x = ritualStone.getXCoord();
int y = ritualStone.getYCoord();
int z = ritualStone.getZCoord();
if (world.getTotalWorldTime() % 20 != 0) return;
List<IInventory> outputFocusChests = findBufferChests(world, x, y, z, OUTPUT_BUFFER_LOCATIONS);
if (outputFocusChests.isEmpty()) return;
List<IInventory> inputFocusChests = findBufferChests(world, x, y, z, INPUT_BUFFER_LOCATIONS);
if (inputFocusChests.isEmpty()) return;
for (IInventory outputFoci : outputFocusChests) {
processOutputFoci(world, outputFoci, inputFocusChests);
if (world.getTotalWorldTime() % 20 != 0) {
return;
}
}
private void processOutputFoci(World world, IInventory outputFoci, List<IInventory> inputFocusChests) {
RoutingFocusParadigm paradigm = new RoutingFocusParadigm();
boolean lastItemWasFocus = true;
Map<Int3, IInventory> tileMap = new HashMap();
for (int i = 0; i < outputFoci.getSizeInventory(); i++) {
ItemStack keyStack = outputFoci.getStackInSlot(i);
if (keyStack == null) continue;
if (keyStack.getItem() instanceof OutputRoutingFocus outputFocus) {
if (!lastItemWasFocus) paradigm.clear();
paradigm.addRoutingFocusPosAndFacing(outputFocus.getPosAndFacing(keyStack));
paradigm.addLogic(outputFocus.getLogic(keyStack));
paradigm.addName(outputFocus.getName(keyStack));
lastItemWasFocus = true;
continue;
List<IInventory> outputList = new ArrayList();
for (int i = 0; i < 4; i++) // Check output foci chests, return if none available
{
Int3 outputFocusChest = this.getOutputBufferChestLocation(i);
TileEntity outputFocusInv = world.getTileEntity(
x + outputFocusChest.xCoord,
y + outputFocusChest.yCoord,
z + outputFocusChest.zCoord);
if (outputFocusInv instanceof IInventory) {
outputList.add((IInventory) outputFocusInv);
}
lastItemWasFocus = false;
}
for (RoutingFocusPosAndFacing posAndFacing : paradigm.locationList) {
if (posAndFacing == null) continue;
ForgeDirection inputDirection = posAndFacing.facing;
TileEntity outputTarget = world.getTileEntity(
posAndFacing.location.xCoord,
posAndFacing.location.yCoord,
posAndFacing.location.zCoord);
if (outputList.isEmpty()) {
return;
}
if (!(outputTarget instanceof IInventory outputInventory)) continue;
for (IInventory outputFocusInventory : outputList) {
{
OutputRoutingFocus outputFocus;;
for (IInventory inputFoci : inputFocusChests) {
processInputFoci(world, inputFoci, keyStack, paradigm, outputInventory, inputDirection);
RoutingFocusParadigm parad = new RoutingFocusParadigm();
TileEntity outputChest = null; // Destination
ForgeDirection inputDirection;
{
IInventory outputChestInventory = null;
boolean lastItemWasFocus = true;
for (int j = 0; j < outputFocusInventory.getSizeInventory(); j++) {
ItemStack keyStack = outputFocusInventory.getStackInSlot(j);
if (keyStack == null) {
continue;
}
if (keyStack.getItem() instanceof OutputRoutingFocus) {
if (!lastItemWasFocus) {
parad.clear();
}
outputFocus = (OutputRoutingFocus) keyStack.getItem();
parad.addRoutingFocusPosAndFacing(outputFocus.getPosAndFacing(keyStack));
parad.addLogic(outputFocus.getLogic(keyStack));
lastItemWasFocus = true;
continue;
} else {
lastItemWasFocus = false;
}
for (RoutingFocusPosAndFacing posAndFacing : parad.locationList) {
if (posAndFacing == null) {
continue;
}
inputDirection = posAndFacing.facing;
if (outputChest == null || !posAndFacing.location
.equals(new Int3(outputChest.xCoord, outputChest.yCoord, outputChest.zCoord))) {
outputChest = world.getTileEntity(
posAndFacing.location.xCoord,
posAndFacing.location.yCoord,
posAndFacing.location.zCoord);
if (outputChest instanceof IInventory) {
outputChestInventory = (IInventory) outputChest;
} else {
continue;
}
}
for (int i = 0; i < 4; i++) {
Int3 inputFocusChest = this.getInputBufferChestLocation(i);
TileEntity inputFocusInv = world.getTileEntity(
x + inputFocusChest.xCoord,
y + inputFocusChest.yCoord,
z + inputFocusChest.zCoord);
if (inputFocusInv instanceof IInventory) {
for (int ji = 0; ji < ((IInventory) inputFocusInv).getSizeInventory(); ji++) // Iterate
// through
// foci
// inventory
{
ItemStack inputFocusStack = ((IInventory) inputFocusInv).getStackInSlot(ji);
if (inputFocusStack != null
&& inputFocusStack.getItem() instanceof InputRoutingFocus) {
InputRoutingFocus inputFocus = (InputRoutingFocus) inputFocusStack
.getItem();
TileEntity inputChest = world.getTileEntity(
inputFocus.xCoord(inputFocusStack),
inputFocus.yCoord(inputFocusStack),
inputFocus.zCoord(inputFocusStack));
if (inputChest instanceof IInventory) {
IInventory inputChestInventory = (IInventory) inputChest;
ForgeDirection syphonDirection = inputFocus
.getSetDirection(inputFocusStack);
boolean[] canSyphonList = new boolean[inputChestInventory
.getSizeInventory()];
if (inputChest instanceof ISidedInventory) {
int[] validSlots = ((ISidedInventory) inputChest)
.getAccessibleSlotsFromSide(syphonDirection.ordinal());
for (int in : validSlots) {
canSyphonList[in] = true;
}
} else {
for (int ni = 0; ni
< inputChestInventory.getSizeInventory(); ni++) {
canSyphonList[ni] = true;
}
}
for (int ni = 0; ni < inputChestInventory.getSizeInventory(); ni++) {
if (canSyphonList[ni]) {
ItemStack syphonedStack = inputChestInventory
.getStackInSlot(ni); // Has a syphoned item linked, next
// need to find a
// destination
if (syphonedStack == null
|| (inputChestInventory instanceof ISidedInventory
&& !((ISidedInventory) inputChestInventory)
.canExtractItem(
ni,
syphonedStack,
syphonDirection.ordinal()))) {
continue;
}
int size = syphonedStack.stackSize;
if (parad.doesItemMatch(keyStack, syphonedStack)) {
ItemStack newStack = null;
if (parad.maximumAmount <= 0) {
newStack = SpellHelper.insertStackIntoInventory(
syphonedStack,
outputChestInventory,
inputDirection);
} else {
newStack = SpellHelper.insertStackIntoInventory(
syphonedStack,
outputChestInventory,
inputDirection,
parad.maximumAmount);
}
if (size == newStack.stackSize) {
continue;
}
int numberSyphoned = size - newStack.stackSize;
if (newStack != null && newStack.stackSize <= 0) {
size = newStack.stackSize;
newStack = null;
}
inputChestInventory.setInventorySlotContents(ni, newStack);
// break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
private void processInputFoci(World world, IInventory inputFoci, ItemStack keyStack, RoutingFocusParadigm paradigm,
IInventory outputInventory, ForgeDirection inputDirection) {
for (int i = 0; i < inputFoci.getSizeInventory(); i++) {
ItemStack inputFocusStack = inputFoci.getStackInSlot(i);
if (inputFocusStack == null || !(inputFocusStack.getItem() instanceof InputRoutingFocus inputFocus))
continue;
if (!paradigm.doesNameMatch(inputFocus.getName(inputFocusStack))) continue;
TileEntity inputTarget = world.getTileEntity(
inputFocus.xCoord(inputFocusStack),
inputFocus.yCoord(inputFocusStack),
inputFocus.zCoord(inputFocusStack));
if (!(inputTarget instanceof IInventory inputChest)) continue;
boolean[] slotList = checkSlots(inputChest, inputFocus.getSetDirection(inputFocusStack));
for (int j = 0; j < inputChest.getSizeInventory(); j++) {
if (!slotList[j]) continue;
ItemStack syphonedStack = inputChest.getStackInSlot(j);
if (!canExtractItem(inputChest, j, syphonedStack, inputFocus.getSetDirection(inputFocusStack)))
continue;
if (paradigm.doesItemMatch(keyStack, syphonedStack)) {
ItemStack newStack = insertStackWithLimit(
syphonedStack,
outputInventory,
inputDirection,
paradigm.maximumAmount);
inputChest.setInventorySlotContents(
j,
(newStack != null && newStack.stackSize > 0) ? newStack : null);
}
}
public Int3 getInputBufferChestLocation(int number) {
switch (number) {
case 0:
return new Int3(1, 0, 0);
case 1:
return new Int3(-1, 0, 0);
case 2:
return new Int3(0, 0, 1);
case 3:
return new Int3(0, 0, -1);
}
return new Int3(0, 0, 0);
}
private boolean[] checkSlots(IInventory inventory, ForgeDirection direction) {
boolean[] result = new boolean[inventory.getSizeInventory()];
if (inventory instanceof ISidedInventory sidedInv) {
int[] validSlots = sidedInv.getAccessibleSlotsFromSide(direction.ordinal());
for (int slot : validSlots) result[slot] = true;
} else {
for (int i = 0; i < inventory.getSizeInventory(); i++) result[i] = true;
public Int3 getOutputBufferChestLocation(int number) {
switch (number) {
case 0:
return new Int3(2, 0, 2);
case 1:
return new Int3(-2, 0, 2);
case 2:
return new Int3(2, 0, -2);
case 3:
return new Int3(-2, 0, -2);
}
return result;
}
private boolean canExtractItem(IInventory inventory, int slot, ItemStack stack, ForgeDirection direction) {
return stack != null && (!(inventory instanceof ISidedInventory)
|| ((ISidedInventory) inventory).canExtractItem(slot, stack, direction.ordinal()));
}
private ItemStack insertStackWithLimit(ItemStack stack, IInventory inventory, ForgeDirection direction,
int maxAmount) {
return maxAmount <= 0 ? SpellHelper.insertStackIntoInventory(stack, inventory, direction)
: SpellHelper.insertStackIntoInventory(stack, inventory, direction, maxAmount);
}
private List<IInventory> findBufferChests(World world, int x, int y, int z, Int3[] locations) {
List<IInventory> chestList = new ArrayList<>();
for (Int3 chestLocation : locations) {
TileEntity tileEntity = world
.getTileEntity(x + chestLocation.xCoord, y + chestLocation.yCoord, z + chestLocation.zCoord);
if (tileEntity instanceof IInventory inv) {
chestList.add(inv);
}
}
return chestList;
return new Int3(0, 0, 0);
}
@Override
@@ -162,14 +249,14 @@ public class RitualEffectItemRouting extends RitualEffect {
@Override
public List<RitualComponent> getRitualComponentList() {
ArrayList<RitualComponent> itemRoutingRitual = new ArrayList<>();
ArrayList<RitualComponent> omegaRitual = new ArrayList();
this.addCornerRunes(itemRoutingRitual, 1, 0, RitualComponent.BLANK);
this.addOffsetRunes(itemRoutingRitual, 2, 1, 0, RitualComponent.FIRE);
this.addParallelRunes(itemRoutingRitual, 4, 0, RitualComponent.WATER);
this.addParallelRunes(itemRoutingRitual, 5, 0, RitualComponent.EARTH);
this.addCornerRunes(itemRoutingRitual, 4, 0, RitualComponent.WATER);
this.addCornerRunes(omegaRitual, 1, 0, RitualComponent.BLANK);
this.addOffsetRunes(omegaRitual, 2, 1, 0, RitualComponent.FIRE);
this.addParallelRunes(omegaRitual, 4, 0, RitualComponent.WATER);
this.addParallelRunes(omegaRitual, 5, 0, RitualComponent.EARTH);
this.addCornerRunes(omegaRitual, 4, 0, RitualComponent.WATER);
return itemRoutingRitual;
return omegaRitual;
}
}
@@ -1,11 +1,6 @@
package WayofTime.alchemicalWizardry.common.routing;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
@@ -13,14 +8,6 @@ public class RoutingFocusLogicIgnMeta extends RoutingFocusLogic {
@Override
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
return (keyStack != null && checkedStack != null && keyStack.getItem() == checkedStack.getItem());
}
@Override
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.ignMeta.logic")));
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem() : false);
}
}
@@ -11,6 +11,8 @@ public class RoutingFocusLogicLimitDefault extends RoutingFocusLogicLimit {
public RoutingFocusLogicLimitDefault(ItemStack stack) {
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
} else {
limit = 0;
}
}
@@ -1,11 +1,6 @@
package WayofTime.alchemicalWizardry.common.routing;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import WayofTime.alchemicalWizardry.common.items.routing.ILimitedRoutingFocus;
@@ -16,6 +11,8 @@ public class RoutingFocusLogicLimitGlobal extends RoutingFocusLogicLimit {
public RoutingFocusLogicLimitGlobal(ItemStack stack) {
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
} else {
limit = 0;
}
}
@@ -28,12 +25,4 @@ public class RoutingFocusLogicLimitGlobal extends RoutingFocusLogicLimit {
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
return true;
}
@Override
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.global.logic")));
}
}
@@ -12,6 +12,8 @@ public class RoutingFocusLogicLimitIgnMeta extends RoutingFocusLogicIgnMeta impl
public RoutingFocusLogicLimitIgnMeta(ItemStack stack) {
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
} else {
limit = 0;
}
}
@@ -12,6 +12,8 @@ public class RoutingFocusLogicLimitMatchNBT extends RoutingFocusLogicMatchNBT im
public RoutingFocusLogicLimitMatchNBT(ItemStack stack) {
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
} else {
limit = 0;
}
}
@@ -12,6 +12,8 @@ public class RoutingFocusLogicLimitModItems extends RoutingFocusLogicModItems im
public RoutingFocusLogicLimitModItems(ItemStack stack) {
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
} else {
limit = 0;
}
}
@@ -1,34 +1,20 @@
package WayofTime.alchemicalWizardry.common.routing;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
public class RoutingFocusLogicMatchNBT extends RoutingFocusLogic {
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
return (keyStack != null && keyStack.getItem() != null
&& checkedStack != null
&& keyStack.getItem() == checkedStack.getItem()
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage())
&& ItemStack.areItemStackTagsEqual(keyStack, checkedStack));
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem()
&& (keyStack.getItem().getHasSubtypes() ? keyStack.getItemDamage() == checkedStack.getItemDamage()
: true)
&& keyStack.areItemStackTagsEqual(keyStack, checkedStack) : false);
}
@Override
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
return previous && this.getDefaultMatch(keyStack, checkedStack);
}
@Override
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.matchNBT.logic")));
}
}
@@ -1,12 +1,7 @@
package WayofTime.alchemicalWizardry.common.routing;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
import cpw.mods.fml.common.registry.GameData;
@@ -28,19 +23,11 @@ public class RoutingFocusLogicModItems extends RoutingFocusLogic {
String str = GameData.getItemRegistry().getNameForObject(itm);
if (!str.isEmpty()) {
String[] strs = str.split(":");
if (strs.length >= 1) {
if (strs != null && strs.length >= 1) {
return strs[0];
}
}
return "";
}
@Override
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.modItem.logic")));
}
}
@@ -1,6 +1,7 @@
package WayofTime.alchemicalWizardry.common.spell.complex.effect;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.regex.Pattern;
@@ -25,15 +26,17 @@ import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.play.server.S06PacketUpdateHealth;
import net.minecraft.network.play.server.S07PacketRespawn;
import net.minecraft.network.play.server.S1DPacketEntityEffect;
import net.minecraft.network.play.server.S1FPacketSetExperience;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.management.ServerConfigurationManager;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.Teleporter;
import net.minecraft.world.World;
import net.minecraft.world.WorldServer;
import net.minecraftforge.common.util.FakePlayer;
@@ -49,6 +52,7 @@ import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
import WayofTime.alchemicalWizardry.common.items.sigil.SigilDivination;
import cpw.mods.fml.common.FMLCommonHandler;
public class SpellHelper {
@@ -752,64 +756,89 @@ public class SpellHelper {
return null;
}
public static void teleportEntityToDim(World oldWorld, int newWorldID, double x, double y, double z,
// Adapated from Enhanced Portals 3 code
public static Entity teleportEntityToDim(World oldWorld, int newWorldID, double d, double e, double f,
Entity entity) {
if (entity == null || entity.timeUntilPortal > 0) return;
MinecraftServer server = MinecraftServer.getServer();
WorldServer oldWorldServer = server.worldServerForDimension(entity.dimension);
WorldServer newWorldServer = server.worldServerForDimension(newWorldID);
oldWorld.playSoundEffect(entity.posX, entity.posY, entity.posZ, "mob.endermen.portal", 1.0F, 1.0F);
if (entity instanceof EntityPlayerMP player) {
teleportPlayer(player, newWorldServer, x, y, z);
} else {
teleportNonPlayer(entity, oldWorldServer, newWorldServer, x, y, z);
if (entity != null) {
if (entity.timeUntilPortal <= 0) {
WorldServer oldWorldServer = MinecraftServer.getServer().worldServerForDimension(entity.dimension);
WorldServer newWorldServer = MinecraftServer.getServer().worldServerForDimension(newWorldID);
if (entity instanceof EntityPlayer) {
EntityPlayerMP player = (EntityPlayerMP) entity;
if (!player.worldObj.isRemote) {
player.worldObj.theProfiler.startSection("portal");
player.worldObj.theProfiler.startSection("changeDimension");
ServerConfigurationManager config = player.mcServer.getConfigurationManager();
oldWorld.playSoundEffect(
player.posX,
player.posY,
player.posZ,
"mob.endermen.portal",
1.0F,
1.0F);
player.closeScreen();
player.dimension = newWorldServer.provider.dimensionId;
player.playerNetServerHandler.sendPacket(
new S07PacketRespawn(
player.dimension,
player.worldObj.difficultySetting,
newWorldServer.getWorldInfo().getTerrainType(),
player.theItemInWorldManager.getGameType()));
oldWorldServer.removeEntity(player);
player.isDead = false;
player.setLocationAndAngles(d, e, f, player.rotationYaw, player.rotationPitch);
newWorldServer.spawnEntityInWorld(player);
player.setWorld(newWorldServer);
config.func_72375_a(player, oldWorldServer);
player.playerNetServerHandler
.setPlayerLocation(d, e, f, entity.rotationYaw, entity.rotationPitch);
player.theItemInWorldManager.setWorld(newWorldServer);
config.updateTimeAndWeatherForPlayer(player, newWorldServer);
config.syncPlayerInventory(player);
player.worldObj.theProfiler.endSection();
oldWorldServer.resetUpdateEntityTick();
newWorldServer.resetUpdateEntityTick();
player.worldObj.theProfiler.endSection();
for (Iterator<PotionEffect> potion = player.getActivePotionEffects().iterator(); potion
.hasNext();) {
player.playerNetServerHandler
.sendPacket(new S1DPacketEntityEffect(player.getEntityId(), potion.next()));
}
player.playerNetServerHandler.sendPacket(
new S1FPacketSetExperience(
player.experience,
player.experienceTotal,
player.experienceLevel));
FMLCommonHandler.instance().firePlayerChangedDimensionEvent(
player,
oldWorldServer.provider.dimensionId,
player.dimension);
player.timeUntilPortal = 150;
}
player.worldObj.theProfiler.endSection();
newWorldServer.playSoundEffect(d, e, f, "mob.endermen.portal", 1.0F, 1.0F);
return player;
} else {
NBTTagCompound tag = new NBTTagCompound();
entity.writeToNBTOptional(tag);
entity.setDead();
oldWorld.playSoundEffect(entity.posX, entity.posY, entity.posZ, "mob.endermen.portal", 1.0F, 1.0F);
Entity teleportedEntity = EntityList.createEntityFromNBT(tag, newWorldServer);
if (teleportedEntity != null) {
teleportedEntity.setLocationAndAngles(d, e, f, entity.rotationYaw, entity.rotationPitch);
teleportedEntity.forceSpawn = true;
newWorldServer.spawnEntityInWorld(teleportedEntity);
teleportedEntity.setWorld(newWorldServer);
teleportedEntity.timeUntilPortal = 150;
}
oldWorldServer.resetUpdateEntityTick();
newWorldServer.resetUpdateEntityTick();
newWorldServer.playSoundEffect(d, e, f, "mob.endermen.portal", 1.0F, 1.0F);
return teleportedEntity;
}
}
}
newWorldServer.playSoundEffect(x, y, z, "mob.endermen.portal", 1.0F, 1.0F);
}
private static void teleportPlayer(EntityPlayerMP player, WorldServer newWorldServer, double x, double y,
double z) {
if (player.worldObj.isRemote) return;
// Teleporting to the Spirit World from Witchery causes the player to get stuck until exiting the world.
// Blocks and mobs are fine, so only player TPs need to be canceled.
// TODO: Figure out a better fix for this instead of just preventing it.
if (newWorldServer.provider.getDimensionName().equals("Spirit World")) {
player.addChatComponentMessage(new ChatComponentTranslation("message.warn.spiritWorld"));
return;
}
player.mcServer.getConfigurationManager().transferPlayerToDimension(
player,
newWorldServer.provider.dimensionId,
new BMTeleporter(newWorldServer, x, y, z));
player.timeUntilPortal = 20;
player.playerNetServerHandler.sendPacket(
new S1FPacketSetExperience(player.experience, player.experienceTotal, player.experienceLevel));
}
private static void teleportNonPlayer(Entity entity, WorldServer oldWorldServer, WorldServer newWorldServer,
double x, double y, double z) {
NBTTagCompound tag = new NBTTagCompound();
entity.writeToNBTOptional(tag);
entity.setDead();
Entity newEntity = EntityList.createEntityFromNBT(tag, newWorldServer);
if (newEntity != null) {
newEntity.setLocationAndAngles(x, y, z, entity.rotationYaw, entity.rotationPitch);
newEntity.forceSpawn = true;
newWorldServer.spawnEntityInWorld(newEntity);
newEntity.setWorld(newWorldServer);
newEntity.timeUntilPortal = 20;
}
oldWorldServer.resetUpdateEntityTick();
newWorldServer.resetUpdateEntityTick();
return null;
}
public static boolean areItemStacksEqual(ItemStack stack, ItemStack compressedStack) {
@@ -897,34 +926,4 @@ public class SpellHelper {
return damage;
}
private static class BMTeleporter extends Teleporter {
private final double x;
private final double y;
private final double z;
public BMTeleporter(WorldServer worldServer, double x, double y, double z) {
super(worldServer);
this.x = x;
this.y = y;
this.z = z;
}
@Override
public void placeInPortal(Entity entity, double x, double y, double z, float rotationYaw) {
entity.setLocationAndAngles(this.x, this.y, this.z, entity.rotationYaw, entity.rotationPitch);
entity.motionX = entity.motionY = entity.motionZ = 0.0D;
}
@Override
public boolean placeInExistingPortal(Entity entity, double x, double y, double z, float rotationYaw) {
return false;
}
@Override
public boolean makePortal(Entity entity) {
return false;
}
}
}
@@ -629,30 +629,6 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
return;
}
if (item.isFilledForFree()) {
// Fill owner's network to the maximum, affected by altar runes.
SoulNetworkHandler.addCurrentEssenceToMaximum(
ownerName,
Integer.MAX_VALUE,
(int) Math.min(Integer.MAX_VALUE, (long) item.getMaxEssence() * this.orbCapacityMultiplier));
if (totalWorldTime % 4 == 0) {
SpellHelper.sendIndexedParticleToAllAround(
worldObj,
xCoord,
yCoord,
zCoord,
20,
worldObj.provider.dimensionId,
3,
xCoord,
yCoord,
zCoord);
}
return;
}
if (fluid != null && fluid.amount >= 1) {
int liquidDrained = Math.min(
(int) (upgradeLevel >= 2 ? consumptionRate * (1 + consumptionMultiplier) : consumptionRate),
@@ -1,17 +1,18 @@
package WayofTime.alchemicalWizardry.common.tileEntity;
import java.util.Iterator;
import java.util.List;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.Packet;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
import WayofTime.alchemicalWizardry.common.block.BlockTeleposer;
@@ -29,14 +30,16 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
private int resultID;
private int resultDamage;
private int previousInput;
public boolean hasRedstone;
private boolean isActive;
public TETeleposer() {
super(sizeInv);
resultID = 0;
resultDamage = 0;
hasRedstone = false;
isActive = false;
previousInput = 0;
}
@Override
@@ -45,7 +48,8 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
resultID = par1NBTTagCompound.getInteger("resultID");
resultDamage = par1NBTTagCompound.getInteger("resultDamage");
hasRedstone = par1NBTTagCompound.getBoolean("hasRedstone");
isActive = par1NBTTagCompound.getBoolean("isActive");
previousInput = par1NBTTagCompound.getInteger("previousInput");
}
@Override
@@ -54,7 +58,8 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
par1NBTTagCompound.setInteger("resultID", resultID);
par1NBTTagCompound.setInteger("resultDamage", resultDamage);
par1NBTTagCompound.setBoolean("hasRedstone", hasRedstone);
par1NBTTagCompound.setBoolean("isActive", isActive);
par1NBTTagCompound.setInteger("previousInput", previousInput);
}
@Override
@@ -67,131 +72,167 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
return 1;
}
public void activate() {
if (worldObj.isRemote) return;
// Logic for the actual block is under here
@Override
public void updateEntity() {
super.updateEntity();
ItemStack focus = this.getStackInSlot(0);
if (focus == null || !(focus.getItem() instanceof TelepositionFocus focusItem)) {
if (worldObj.isRemote) {
return;
}
World targetWorld = focusItem.getWorld(focus);
if (targetWorld == null) return;
int currentInput = worldObj.getBlockPowerInput(xCoord, yCoord, zCoord);
int x = focusItem.xCoord(focus);
int y = focusItem.yCoord(focus);
int z = focusItem.zCoord(focus);
if (previousInput == 0 && currentInput != 0) {
ItemStack focus = this.getStackInSlot(0);
if (!(targetWorld.getTileEntity(x, y, z) instanceof TETeleposer target) || target == this) {
return;
}
if (focus != null && focus.getItem() instanceof TelepositionFocus) {
TelepositionFocus focusItem = (TelepositionFocus) (focus.getItem());
int xf = focusItem.xCoord(focus);
int yf = focusItem.yCoord(focus);
int zf = focusItem.zCoord(focus);
World worldF = focusItem.getWorld(focus);
int damage = (int) (0.5f * Math.sqrt(
(xCoord - xf) * (xCoord - xf) + (yCoord - yf + 1) * (yCoord - yf + 1)
+ (zCoord - zf) * (zCoord - zf)));
int focusLevel = focusItem.getFocusLevel();
int transportCount = 0;
int entityCount = 0;
int damage = (int) (0.5f
* Math.sqrt(Math.pow(xCoord - x, 2) + Math.pow(yCoord - y + 1, 2) + Math.pow(zCoord - z, 2)));
if (worldF != null && worldF.getTileEntity(xf, yf, zf) instanceof TETeleposer
&& !worldF.getTileEntity(xf, yf, zf).equals(this)) {
// Prime the teleportation
int d0 = focusLevel - 1;
AxisAlignedBB axisalignedbb1 = AxisAlignedBB.getBoundingBox(
(double) this.xCoord - 0.5,
(double) this.yCoord + d0 + 0.5,
(double) this.zCoord - 0.5,
(double) (this.xCoord + 0.5),
(double) (this.yCoord + 1.5 + d0),
(double) (this.zCoord + 0.5)).expand(d0, d0, d0);
axisalignedbb1.maxY = Math.min((double) this.worldObj.getHeight(), this.yCoord + 2 + d0 + d0);
List list1 = this.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb1);
Iterator iterator1 = list1.iterator();
EntityLivingBase entityplayer1;
int size = focusItem.getFocusLevel();
while (iterator1.hasNext()) {
entityplayer1 = (EntityLivingBase) iterator1.next();
entityCount++;
}
List<EntityLivingBase> localEntities = getEntitiesInArea(worldObj, xCoord, yCoord, zCoord, size);
List<EntityLivingBase> targetEntities = getEntitiesInArea(targetWorld, x, y, z, size);
AxisAlignedBB axisalignedbb2 = AxisAlignedBB
.getBoundingBox(xf - 0.5, yf + d0 + 0.5, zf - 0.5, xf + 0.5, yf + 1.5 + d0, zf + 0.5)
.expand(d0, d0, d0);
List list2 = worldF.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb2);
Iterator iterator2 = list2.iterator();
EntityLivingBase entityplayer2;
int entityCount = localEntities.size() + targetEntities.size();
while (iterator2.hasNext()) {
entityplayer2 = (EntityLivingBase) iterator2.next();
entityCount++;
}
if (!EnergyItems.canSyphonInContainer(focus, damage * entityCount)) return;
if (EnergyItems.canSyphonInContainer(
focus,
damage * (focusLevel * 2 - 1) * (focusLevel * 2 - 1) * (focusLevel * 2 - 1)
+ damage * entityCount)) {
for (int k = 0; k <= (focusLevel * 2 - 2); k++)
for (int i = -(focusLevel - 1); i <= (focusLevel - 1); i++) {
for (int j = -(focusLevel - 1); j <= (focusLevel - 1); j++) {
{
if (BlockTeleposer.swapBlocks(
this,
worldObj,
worldF,
xCoord + i,
yCoord + 1 + k,
zCoord + j,
xf + i,
yf + 1 + k,
zf + j)) {
transportCount++;
}
}
}
}
int movedBlocks = moveBlocks(size, targetWorld, x, y, z);
if (!worldF.equals(worldObj)) {
entityCount = 0;
}
int cost = Math.max(damage * movedBlocks + damage * entityCount, 2000);
// Teleport with minimum cost of 2000 LP.
int cost = Math.max(damage * transportCount + damage * entityCount, 2000);
SoulNetworkHandler.syphonFromNetwork(focus, cost);
SoulNetworkHandler.syphonFromNetwork(focus, cost);
if (worldF.equals(worldObj)) {
iterator1 = list1.iterator();
iterator2 = list2.iterator();
if (targetWorld.equals(worldObj)) {
teleportEntitiesSameWorld(localEntities, this.xCoord, this.yCoord, this.zCoord, x, y, z);
teleportEntitiesSameWorld(targetEntities, x, y, z, this.xCoord, this.yCoord, this.zCoord);
} else {
teleportEntitiesToOtherWorld(
localEntities,
worldObj,
this.xCoord,
this.yCoord,
this.zCoord,
targetWorld,
x,
y,
z);
teleportEntitiesToOtherWorld(
targetEntities,
targetWorld,
x,
y,
z,
worldObj,
this.xCoord,
this.yCoord,
this.zCoord);
while (iterator1.hasNext()) {
entityplayer1 = (EntityLivingBase) iterator1.next();
entityplayer1.worldObj = worldF;
entityplayer1.setPositionAndUpdate(
entityplayer1.posX - this.xCoord + xf,
entityplayer1.posY - this.yCoord + yf,
entityplayer1.posZ - this.zCoord + zf);
}
}
}
while (iterator2.hasNext()) {
entityplayer2 = (EntityLivingBase) iterator2.next();
entityplayer2.worldObj = worldF;
entityplayer2.setPositionAndUpdate(
entityplayer2.posX + this.xCoord - xf,
entityplayer2.posY + this.yCoord - yf,
entityplayer2.posZ + this.zCoord - zf);
}
} else {
iterator1 = list1.iterator();
iterator2 = list2.iterator();
private List<EntityLivingBase> getEntitiesInArea(World world, int x, int y, int z, int size) {
double half = (size * 2 - 1) / 2.0;
while (iterator1.hasNext()) {
entityplayer1 = (EntityLivingBase) iterator1.next();
SpellHelper.teleportEntityToDim(
worldObj,
worldF.provider.dimensionId,
entityplayer1.posX - this.xCoord + xf,
entityplayer1.posY - this.yCoord + yf,
entityplayer1.posZ - this.zCoord + zf,
entityplayer1);
// entityplayer1.worldObj = worldF;
// entityplayer1.setPositionAndUpdate(entityplayer1.posX
// - this.xCoord + xf, entityplayer1.posY - this.yCoord + yf, entityplayer1.posZ -
// this.zCoord + zf);
}
AxisAlignedBB box = AxisAlignedBB.getBoundingBox(
x + 0.5 - half,
y + 1,
z + 0.5 - half,
x + 0.5 + half,
y + 1 + (size * 2 - 1),
z + 0.5 + half);
return world.getEntitiesWithinAABB(EntityLivingBase.class, box);
}
private int moveBlocks(int focusLevel, World targetWorld, int x, int y, int z) {
int transportCount = 0;
int range = focusLevel - 1;
for (int k = 0; k <= (focusLevel * 2 - 2); k++) {
for (int i = -range; i <= range; i++) {
for (int j = -range; j <= range; j++) {
if (BlockTeleposer.swapBlocks(
this,
worldObj,
targetWorld,
xCoord + i,
yCoord + 1 + k,
zCoord + j,
x + i,
y + 1 + k,
z + j)) {
transportCount++;
while (iterator2.hasNext()) {
entityplayer2 = (EntityLivingBase) iterator2.next();
SpellHelper.teleportEntityToDim(
worldF,
worldObj.provider.dimensionId,
entityplayer2.posX + this.xCoord - xf,
entityplayer2.posY + this.yCoord - yf,
entityplayer2.posZ + this.zCoord - zf,
entityplayer2);
// entityplayer2.worldObj = worldF;
// entityplayer2.setPositionAndUpdate(entityplayer2.posX
// + this.xCoord - xf, entityplayer2.posY + this.yCoord - yf, entityplayer2.posZ +
// this.zCoord - zf);
}
}
}
}
}
}
return transportCount;
previousInput = currentInput;
}
private void teleportEntitiesSameWorld(List<EntityLivingBase> list, int sourceX, int sourceY, int sourceZ,
int destX, int destY, int destZ) {
String sound = "mob.endermen.portal";
for (EntityLivingBase e : list) {
e.setPositionAndUpdate(e.posX - sourceX + destX, e.posY - sourceY + destY, e.posZ - sourceZ + destZ);
e.worldObj.playSoundEffect(e.posX, e.posY, e.posZ, sound, 1.0F, 1.0F);
}
public void setActive() {
isActive = false;
}
private void teleportEntitiesToOtherWorld(List<EntityLivingBase> list, World sourceWorld, int sourceX, int sourceY,
int sourceZ, World destWorld, int destX, int destY, int destZ) {
for (EntityLivingBase e : list) {
SpellHelper.teleportEntityToDim(
sourceWorld,
destWorld.provider.dimensionId,
e.posX - sourceX + destX,
e.posY - sourceY + destY,
e.posZ - sourceZ + destZ,
e);
}
public boolean isActive() {
return isActive;
}
@Override
@@ -206,8 +247,11 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
if (intData.length == 3) {
for (int i = 0; i < 1; i++) {
if (intData[2] != 0) {
ItemStack is = new ItemStack(Item.getItemById(intData[i * 3]), intData[2], intData[1]);
if (intData[i * 3 + 2] != 0) {
ItemStack is = new ItemStack(
Item.getItemById(intData[i * 3]),
intData[i * 3 + 2],
intData[i * 3 + 1]);
inv[i] = is;
} else {
inv[i] = null;
@@ -217,17 +261,18 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
}
public int[] buildIntDataList() {
int[] sortList = new int[3];
int[] sortList = new int[3]; // 1 * 3
int pos = 0;
for (ItemStack is : inv) {
if (is != null) {
sortList[0] = Item.getIdFromItem(is.getItem());
sortList[1] = is.getItemDamage();
sortList[2] = is.stackSize;
sortList[pos++] = Item.getIdFromItem(is.getItem());
sortList[pos++] = is.getItemDamage();
sortList[pos++] = is.stackSize;
} else {
for (int i = 0; i < 3; i++) {
sortList[i] = 0;
}
sortList[pos++] = 0;
sortList[pos++] = 0;
sortList[pos++] = 0;
}
}
@@ -244,20 +289,12 @@ public class TETeleposer extends TEInventory implements IBloodMagicWailaProvider
IWailaConfigHandler config) {
if (!config.getConfig(BloodMagicWailaPlugin.WAILA_CONFIG_TELEPOSER)) return;
final ItemStack contained = getStackInSlot(0);
if (contained.getItem() instanceof TelepositionFocus focus) {
if (contained != null) {
currenttip.add(contained.getDisplayName());
NBTTagCompound itemTag = IBindable.getTag(contained);
currenttip.add(
StatCollector.translateToLocal("tooltip.alchemy.coords") + " "
+ itemTag.getInteger("xCoord")
+ ", "
+ itemTag.getInteger("yCoord")
+ ", "
+ itemTag.getInteger("zCoord"));
currenttip.add(
StatCollector.translateToLocal("tooltip.alchemy.dimension") + " "
+ focus.getDimensionID(contained));
}
}
@Override
public void getWailaNBTData(final EntityPlayerMP player, final TileEntity tile, final NBTTagCompound tag,
final World world, int x, int y, int z) {}
}
@@ -1,207 +0,0 @@
/*
* Original class by https://github.com/Superfrogman98, copied with permission Original PR:
* https://github.com/GTNewHorizons/StructureCompat/pull/6 Link to message giving permission (GT: New Horizons Discord
* server): https://discord.com/channels/181078474394566657/603348502637969419/1367345532376453130
*/
package WayofTime.alchemicalWizardry.compat.structurelib;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlockAnyMeta;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose;
import java.util.ArrayList;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import com.google.common.base.Joiner;
import com.gtnewhorizon.structurelib.alignment.constructable.IMultiblockInfoContainer;
import com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing;
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
import com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment;
import com.gtnewhorizon.structurelib.structure.StructureDefinition;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.ModBlocks;
import WayofTime.alchemicalWizardry.api.BlockStack;
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
public class AltarStructure {
private static final String STRUCTURE_ALTAR = "tier1";
private static final String STRUCTURE_TIER_2 = "tier2";
private static final String STRUCTURE_TIER_3 = "tier3";
private static final String STRUCTURE_TIER_4 = "tier4";
private static final String STRUCTURE_TIER_5 = "tier5";
private static final String STRUCTURE_TIER_6 = "tier6";
@SuppressWarnings("rawtypes")
private static final AnyBlock ANY_BLOCK = new AnyBlock();
public static final int[][] TIER_OFFSET = { { 0, 0, 0 }, { 1, -1, 1 }, { 3, 1, 3 }, { 5, 2, 5 }, { 8, -3, 8 },
{ 11, 3, 11 } };
@SuppressWarnings("unchecked")
public static void registerAltarStructureInfo() {
StructureDefinition.Builder<TEAltar> altarBuilder = IStructureDefinition.builder();
String T6_S = " ";
String T6_SR = "r r";
// region Structure
// spotless:off
altarBuilder
.addShape(STRUCTURE_ALTAR, new String[][] {{"a"}})
.addShape(STRUCTURE_TIER_2, transpose(new String[][] {{"rrr","r r","rrr"}}))
.addShape(STRUCTURE_TIER_3, transpose(new String[][] {{"g g"," "," "," "," "," ","g g"},
{"t t"," "," "," "," "," ","t t"},
{"t t"," "," "," "," "," ","t t"},
{" rrrrr ","r r","r r","r r","r r","r r"," rrrrr "}}))
.addShape(STRUCTURE_TIER_4, transpose(new String[][]
{{"b b"," "," "," "," "," "," "," "," "," ","b b"},
{"v v"," "," "," "," "," "," "," "," "," ","v v"},
{"v v"," "," "," "," "," "," "," "," "," ","v v"},
{"v v"," "," "," "," "," "," "," "," "," ","v v"},
{"v v"," "," "," "," "," "," "," "," "," ","v v"},
{" rrrrrrr "," ","r r","r r","r r","r r","r r","r r","r r"," "," rrrrrrr "}}))
.addShape(STRUCTURE_TIER_5, transpose(new String[][] {{"e e"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","e e"},
{" rrrrrrrrrrrrr "," ","r r","r r","r r","r r","r r","r r","r r","r r","r r","r r","r r","r r","r r"," "," rrrrrrrrrrrrr "}}))
.addShape(STRUCTURE_TIER_6, transpose(new String[][]
{
{"c c",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"c c"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{"i i",T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,T6_S,"i i"},
{" rrrrrrrrrrrrrrrrrrr ",T6_S,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_SR,T6_S, " rrrrrrrrrrrrrrrrrrr "},
}))
.addElement('a',ofBlock(ModBlocks.blockAltar,0))
.addElement('r',ofChain(ofBlockAnyMeta(ModBlocks.bloodRune),ofBlockAnyMeta(ModBlocks.speedRune),ofBlockAnyMeta(ModBlocks.runeOfSelfSacrifice),ofBlockAnyMeta(ModBlocks.runeOfSacrifice),ofBlockAnyMeta(ModBlocks.efficiencyRune)));
char[] keys = {'t', 'g', 'v', 'b', 'e', 'i', 'c'};
for (int i = 0; i < keys.length; i++) {
BlockStack stack = AlchemicalWizardry.specialAltarBlock[i];
if (stack != null && stack.getBlock() != Blocks.air) {
altarBuilder.addElement(keys[i], ofBlock(stack.getBlock(), stack.getMeta()));
} else {
altarBuilder.addElement(keys[i], ANY_BLOCK);
}
}
IMultiblockInfoContainer.registerTileClass(TEAltar.class,
new AltarStructure.AltarMultiblockInfoContainer(altarBuilder.build()));
// spotless:on
}
private static class AltarMultiblockInfoContainer implements IMultiblockInfoContainer<TEAltar> {
private final IStructureDefinition<TEAltar> structureAltar;
public AltarMultiblockInfoContainer(IStructureDefinition<TEAltar> structureAltar) {
this.structureAltar = structureAltar;
}
@Override
public void construct(ItemStack triggerStack, boolean hintsOnly, TEAltar ctx, ExtendedFacing aSide) {
int tier = triggerStack.stackSize;
if (tier > 6) {
tier = 6;
}
for (int i = 1; i <= tier; i++) {
this.structureAltar.buildOrHints(
ctx,
triggerStack,
"tier" + i,
ctx.getWorldObj(),
ExtendedFacing.DEFAULT,
ctx.xCoord,
ctx.yCoord,
ctx.zCoord,
TIER_OFFSET[i - 1][0],
TIER_OFFSET[i - 1][1],
TIER_OFFSET[i - 1][2],
hintsOnly);
}
}
@Override
public int survivalConstruct(ItemStack triggerStack, int elementBudge, ISurvivalBuildEnvironment env,
TEAltar altar, ExtendedFacing aSide) {
int built = 0;
int tier = triggerStack.stackSize;
if (tier > 6) {
tier = 6;
}
if (altar.getTier() >= tier) return -1;
for (int i = 1; i <= tier; i++) {
built += this.structureAltar.survivalBuild(
altar,
triggerStack,
"tier" + i,
altar.getWorldObj(),
ExtendedFacing.DEFAULT,
altar.xCoord,
altar.yCoord,
altar.zCoord,
TIER_OFFSET[i - 1][0],
TIER_OFFSET[i - 1][1],
TIER_OFFSET[i - 1][2],
elementBudge,
env,
false);
}
return built;
}
@Override
public String[] getDescription(ItemStack stackSize) {
ArrayList<String> out = new ArrayList<>();
out.add(StatCollector.translateToLocal("structurelib.bloodmagic.altar.1"));
out.add(StatCollector.translateToLocal("structurelib.bloodmagic.altar.2"));
int[] pillarIndices = { 0, 2, 5 };
int[] pillarTiers = { 3, 4, 6 };
ArrayList<Integer> pillars = new ArrayList<>();
for (int i = 0; i < pillarIndices.length; i++) {
if (AlchemicalWizardry.specialAltarBlock[pillarIndices[i]].getBlock() == Blocks.air) {
pillars.add(pillarTiers[i]);
}
}
if (!pillars.isEmpty()) {
out.add(
StatCollector.translateToLocalFormatted(
"structurelib.bloodmagic.altar.3",
Joiner.on(", ").join(pillars)));
}
int[] capIndices = { 1, 3, 6 };
int[] capTiers = { 3, 4, 6 };
ArrayList<Integer> caps = new ArrayList<>();
for (int i = 0; i < capIndices.length; i++) {
if (AlchemicalWizardry.specialAltarBlock[capIndices[i]].getBlock() == Blocks.air) {
caps.add(capTiers[i]);
}
}
if (!caps.isEmpty()) {
out.add(
StatCollector.translateToLocalFormatted(
"structurelib.bloodmagic.altar.4",
Joiner.on(", ").join(caps)));
}
if (AlchemicalWizardry.specialAltarBlock[4].getBlock() == Blocks.air) { // T5 Beacon
out.add(StatCollector.translateToLocal("structurelib.bloodmagic.altar.5"));
}
return out.toArray(new String[0]);
}
}
}
@@ -1,50 +0,0 @@
package WayofTime.alchemicalWizardry.compat.structurelib;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import com.gtnewhorizon.structurelib.StructureLibAPI;
import com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment;
import com.gtnewhorizon.structurelib.structure.IStructureElement;
public class AnyBlock<T> implements IStructureElement<T> {
@Override
public boolean check(Object t, World world, int x, int y, int z) {
return !world.isAirBlock(x, y, z);
}
@Override
public boolean couldBeValid(Object t, World world, int x, int y, int z, ItemStack trigger) {
return check(t, world, x, y, z);
}
@Override
public boolean spawnHint(Object o, World world, int x, int y, int z, ItemStack trigger) {
StructureLibAPI.hintParticle(world, x, y, z, StructureLibAPI.getBlockHint(), 14);
return true;
}
@Override
public boolean placeBlock(Object o, World world, int x, int y, int z, ItemStack trigger) {
world.setBlock(x, y, z, Blocks.stonebrick, 0, 2);
return true;
}
@Override
public BlocksToPlace getBlocksToPlace(Object o, World world, int x, int y, int z, ItemStack trigger,
AutoPlaceEnvironment env) {
return BlocksToPlace.create(Blocks.stonebrick, 0);
}
@Override
public PlaceResult survivalPlaceBlock(Object o, World world, int x, int y, int z, ItemStack trigger,
AutoPlaceEnvironment env) {
if (world.provider.dimensionId == Integer.MAX_VALUE) { // Required for the NEI preview to work
world.setBlock(x, y, z, Blocks.stonebrick, 0, 2);
return PlaceResult.ACCEPT;
}
return PlaceResult.SKIP;
}
}
@@ -1,8 +0,0 @@
package WayofTime.alchemicalWizardry.compat.structurelib;
public class CompatStructureLib {
public static void init() {
AltarStructure.registerAltarStructureInfo();
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

@@ -1,7 +0,0 @@
#Block Localization
tile.armourForge.name=Soul Armour Forge
item.armourInhibitor.name=Armour Inhibitor
#Achievements
achievement.alchemicalwizardry:blankRunes=Stepping Towards Tier 2
achievement.alchemicalwizardry:boundArmor.desc=Craft Bound Armour with the Soul Armour Forge
@@ -16,7 +16,7 @@ tile.ritualStone.name=Ritual Stone
tile.blockMasterStone.name=Master Ritual Stone
tile.bloodSocket.name=Filled Socket
tile.imperfectRitualStone.name=Imperfect Ritual Stone
tile.armourForge.name=Soul Armor Forge
tile.armourForge.name=Soul Armour Forge
tile.emptySocket.name=Empty Socket
tile.bloodStoneBrick.name=Bloodstone Brick
tile.largeBloodStoneBrick.name=Large Bloodstone Brick
@@ -81,9 +81,9 @@ tile.blockCrucible.name=Incense Crucible
#Item Localization
item.weakBloodOrb.name=Weak Blood Orb
item.apprenticeBloodOrb.name=Apprentice Blood Orb
item.magicianBloodOrb.name=Magician Blood Orb
item.magicianBloodOrb.name=Magician's Blood Orb
item.masterBloodOrb.name=Master Blood Orb
item.archmageBloodOrb.name=Archmage Blood Orb
item.archmageBloodOrb.name=Archmage's Blood Orb
item.energyBlast.name=Energy Blaster
item.energyBlastSecondTier.name=Energy Blaster II
item.energyBlastThirdTier.name=Energy Blaster III
@@ -147,7 +147,7 @@ item.demonicTelepositionFocus.name=Demonic Teleposition Focus
item.imbuedSlate.name=Imbued Slate
item.demonicSlate.name=Demonic Slate
item.sigilOfTheBridge.name=Sigil of the Phantom Bridge
item.armourInhibitor.name=Armor Inhibitor
item.armourInhibitor.name=Armour Inhibitor
item.cheatyItem.name=Orb of Testing
item.weakFillingAgent.name=Weak Filling Agent
item.standardFillingAgent.name=Standard Filling Agent
@@ -162,7 +162,7 @@ item.energyBazookaSecondTier.name=Energy Bazooka II
item.energyBazookaThirdTier.name=Energy Bazooka III
item.bloodLightSigil.name=Sigil of the Blood Lamp
item.itemComplexSpellCrystal.name=Complex Spell Crystal
item.itemSigilOfSupression.name=Sigil of Suppression
item.itemSigilOfSupression.name=Sigil of Supression
item.itemSigilOfEnderSeverance.name=Sigil of Ender Severance
item.bucketLife.name=Bucket of Life
item.baseItems.name=Base Item
@@ -210,7 +210,7 @@ item.bloodMagicAlchemyItem.Reductus.name=Reductus
item.bloodMagicAlchemyItem.Potentia.name=Potentia
item.sanguineHelmet.name=Sanguine Helmet
item.itemSeerSigil.name=Sigil of Sight
item.itemFluidSigil.name=Fluid Sigil [Unimplemented]
item.itemFluidSigil.name=
item.multiTool.name=Dynamic Mace
item.itemCombinationalCatalyst.name=Combinational Catalyst
item.sanguineRobe.name=Sanguine Robes
@@ -224,17 +224,17 @@ item.creativeDagger.name=Creative Sacrificial Knife
item.itemBloodPack.name=Blood Letter's Pack
item.itemHarvestSigil.name=Harvest Goddess Sigil
item.itemCompressionSigil.name=Sigil of Compression
item.itemAssassinSigil.name=Sigil of the Assassin [Unimplemented]
item.itemAssassinSigil.name=Sigil of the Assassin
item.transcendentBloodOrb.name=Transcendent Blood Orb
item.itemMailCatalogue.name=Mail Order Catalogue
item.inputRoutingFocus.name=Input Routing Focus
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
item.outputRoutingFocus.name=Output Routing Focus
item.outputRoutingFocus.default.logic=Match Item & Meta
item.outputRoutingFocus.modItem.logic=Match Mod
item.outputRoutingFocus.ignMeta.logic=Match Item, Ignore Meta
item.outputRoutingFocus.matchNBT.logic=Match Item, Meta, & NBT
item.outputRoutingFocus.global.logic=Move Everything
item.outputRoutingFocus.default.name=Default Output Routing Focus
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
item.outputRoutingFocus.matchNBT.name=Output Routing Focus (MatchNBT)
item.outputRoutingFocus.global.name=Output Routing Focus (Global)
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
item.boundHelmetEarth.name=Earth Omega Helmet
item.boundPlateEarth.name=Earth Omega Plate
@@ -269,7 +269,7 @@ bm.string.drain=Drain
bm.string.tier=Tier
bm.string.crafting.orb.shaped=Shaped Orb Crafting
bm.string.crafting.orb.shapeless=Shapeless Orb Crafting
bm.string.ritualDiviner=Ritual: %s
bm.string.ritualDiviner=Radius: %s
text.recipe.altar=Blood Altar
text.recipe.altar.tier=Tier: %s
text.recipe.altar.bloodRequired=LP: %s
@@ -316,7 +316,7 @@ ritual.AW018Condor.name=Reverence of the Condor
ritual.AW019FallingTower.name=Mark of the Falling Tower
ritual.AW020BalladOfAlchemy.name=Ballad of Alchemy
ritual.AW021Expulsion.name=Aura of Expulsion
ritual.AW022Supression.name=Dome of Suppression
ritual.AW022Supression.name=Dome of Supression
ritual.AW023Zephyr.name=Call of the Zephyr
ritual.AW024Harvest.name=Reap of the Harvest Moon
ritual.AW025Conduit.name=Cry of the Eternal Soul
@@ -437,7 +437,7 @@ tooltip.attunedcrystal.desc1=A tool to tune alchemy
tooltip.attunedcrystal.desc2=reagent transmission
tooltip.blankspell.desc=Crystal of infinite possibilities.
tooltip.bloodframe.desc=Stirs bees into a frenzy.
tooltip.bloodletterpack.desc=This pack really chafes...
tooltip.bloodletterpack.desc=This pack really chaffs...
tooltip.bloodlightsigil.desc=I see a light!
tooltip.boundarmor.devprotect=Devilish Protection
tooltip.boundaxe.desc=Axe me about my puns!
@@ -447,7 +447,7 @@ tooltip.boundshovel.desc=No, not that type of spade.
tooltip.caution.desc1=Caution: may cause
tooltip.caution.desc2=a bad day...
tooltip.cheatyitem.desc1=Right-click to fill network,
tooltip.cheatyitem.desc2=shift-right-click to empty.
tooltip.cheatyitem.desc2=shift-right to empty.
tooltip.complexspellcrystal.desc=Crystal of unimaginable power
tooltip.crystalbelljar.contents=Current Contents:
tooltip.crystalbelljar.empty=- Empty
@@ -461,7 +461,6 @@ tooltip.divinationsigil.desc1=Peer into the soul to
tooltip.divinationsigil.desc2=get the current essence
tooltip.energybazooka.desc=Boom.
tooltip.energybattery.desc=Stores raw Life Essence
tooltip.energybattery.capacity=Capacity: %,d LP
tooltip.energyblast.desc1=Used to fire devastating
tooltip.energyblast.desc2=projectiles.
tooltip.enhancedtelepfocus.desc=A focus further enhanced in an altar
@@ -509,7 +508,7 @@ tooltip.sacrificialdagger.desc2=Just a prick of the
tooltip.sacrificialdagger.desc3=finger will suffice...
tooltip.sanguinearmor.desc1=A pair of goggles imbued with power
tooltip.sanguinearmor.desc2=Robes imbued with forbidden power
tooltip.sanguinearmor.visdisc=Vis discount: %d%%
tooltip.sanguinearmor.visdisc=Vis discount:
tooltip.scribetool.desc=The writing is on the wall...
tooltip.seersigil.desc=When seeing all is not enough
tooltip.sigilofelementalaffinity.desc1=Perfect for a fire-breathing fish
@@ -530,11 +529,10 @@ tooltip.sigil.state.activated=Activated
tooltip.sigil.state.deactivated=Deactivated
tooltip.tanksegmenter.desc1=Used to designate which
tooltip.tanksegmenter.desc2=reagents can go into a container
tooltip.telepositionfocus.desc=An Ender Pearl imbued with blood
tooltip.telepositionfocus.desc=An Enderpearl imbued with blood
tooltip.voidsigil.desc=Better than a Swiffer!
tooltip.watersigil.desc=Infinite water, anyone?
tooltip.routingFocus.limit=Limit:
tooltip.routingFocus.logic=Logic:
tooltip.routingFocus.desc=A focus used to route items
tooltip.alchemy.usedinincense=Purifying incense used in a crucible
@@ -568,8 +566,6 @@ message.masterstone.ritualresistyou=The ritual appears to actively resist you!
message.masterstone.somethingstoppedyou=Something stopped you in your tracks...
message.masterstone.youfeelapull=You feel a pull, but you are too weak to push any further.
message.ritual.currentritual=Current Ritual:
message.ritual.side.up=UP
message.ritual.side.down=DOWN
message.ritual.side.east=EAST
message.ritual.side.north=NORTH
message.ritual.side.south=SOUTH
@@ -579,57 +575,56 @@ message.tanksegmenter.nowhas=Tank now has
message.tanksegmenter.setto=Tank Segmenter now set to:
message.tanksegmenter.tankssetto=tank(s) set to:
message.routerfocus.limit=Focus' Item Limit set to:
message.warn.spiritWorld=Teleporting to Witchery's Spirit World causes problems and is temporarily disabled.
#Achievements
achievement.alchemicalwizardry:firstPrick=Your First Prick!
achievement.alchemicalwizardry:firstPrick.desc=Craft a Sacrificial Knife/Orb
achievement.alchemicalwizardry:weakOrb=Faintly Glowing Red
achievement.alchemicalwizardry:weakOrb.desc=Pick up a Weak Blood Orb
achievement.alchemicalwizardry:weakOrb.desc=Pickup a Weak Blood Orb
achievement.alchemicalwizardry:bloodLettersPack=Gathering More Blood
achievement.alchemicalwizardry:bloodLettersPack.desc=Create a Blood Letter's Pack
achievement.alchemicalwizardry:waterSigil=Infinite Water!
achievement.alchemicalwizardry:waterSigil.desc=Make a Water Sigil with your Weak Blood Orb
achievement.alchemicalwizardry:blankRunes=Stepping Toward Tier 2
achievement.alchemicalwizardry:blankRunes.desc=Make a couple of blank Blood Runes
achievement.alchemicalwizardry:blankRunes=Stepping Towards Tier 2
achievement.alchemicalwizardry:blankRunes.desc=Make a couple of Blank Runes
achievement.alchemicalwizardry:apprenticeOrb=Getting Stronger
achievement.alchemicalwizardry:apprenticeOrb.desc=Pick up an Apprentice Blood Orb
achievement.alchemicalwizardry:apprenticeOrb.desc=Pickup an Apprentice Orb
achievement.alchemicalwizardry:airSigil=Whoosh!
achievement.alchemicalwizardry:airSigil.desc=Craft an Air Sigil
achievement.alchemicalwizardry:daggerSacrifice=Sacrificing Others
achievement.alchemicalwizardry:daggerSacrifice.desc=Pick up a Dagger of Sacrifice
achievement.alchemicalwizardry:brewingPotions=Alchemic Chemistry
achievement.alchemicalwizardry:brewingPotions.desc=Craft an Alchemic Chemistry set
achievement.alchemicalwizardry:magicianOrb=Getting Even Stronger
achievement.alchemicalwizardry:magicianOrb.desc=Pick up a Magician Blood Orb
achievement.alchemicalwizardry:daggerSacrifice.desc=Pickup a Dagger of Sacrifice
achievement.alchemicalwizardry:brewingPotions=Alchemical Chemistry
achievement.alchemicalwizardry:brewingPotions.desc=Craft an Alchemical Chemistry set
achievement.alchemicalwizardry:magicianOrb=Even Stronger
achievement.alchemicalwizardry:magicianOrb.desc=Pickup a Magician's Orb
achievement.alchemicalwizardry:sigilHolding=Hold All The Sigils!
achievement.alchemicalwizardry:sigilHolding.desc=Make a Sigil of Holding
achievement.alchemicalwizardry:boundBlade=More Pain
achievement.alchemicalwizardry:boundBlade.desc=Create a Bound Blade with the Ritual of Binding
achievement.alchemicalwizardry:boundBlade.desc=Create a Bound Blade from a Ritual of Binding
achievement.alchemicalwizardry:boundArmor=Uncrackable
achievement.alchemicalwizardry:boundArmor.desc=Craft Bound Armor with the Soul Armor Forge
achievement.alchemicalwizardry:boundArmor.desc=Craft Bound Armor from the Armor Forge
achievement.alchemicalwizardry:complexSpells=Not Quite Hemomancy
achievement.alchemicalwizardry:complexSpells.desc=Pick up a Complex Spell Crystal
achievement.alchemicalwizardry:complexSpells.desc=Pickup a Complex Spell Crystal
achievement.alchemicalwizardry:ritualDiviner=Ritual Making
achievement.alchemicalwizardry:ritualDiviner.desc=Craft a Ritual Diviner
achievement.alchemicalwizardry:masterOrb=Getting Very Strong
achievement.alchemicalwizardry:masterOrb.desc=Pick up a Master Blood Orb
achievement.alchemicalwizardry:masterOrb.desc=Pickup a Master Orb
achievement.alchemicalwizardry:demonSpawn=Demon Spawn
achievement.alchemicalwizardry:demonSpawn.desc=Summon and slay a demon or elemental
achievement.alchemicalwizardry:phantomBridgeSigil=Walking on Air
achievement.alchemicalwizardry:demonSpawn.desc=Summon and slay a demon/elemental
achievement.alchemicalwizardry:phantomBridgeSigil=Walking In Mid-Air
achievement.alchemicalwizardry:phantomBridgeSigil.desc=Make the Sigil of the Phantom Bridge
achievement.alchemicalwizardry:teleposer=Teleposed!
achievement.alchemicalwizardry:teleposer.desc=Craft a Teleposer
achievement.alchemicalwizardry:suppressionSigil=Suppress!
achievement.alchemicalwizardry:suppressionSigil.desc=Create a Suppression Sigil
achievement.alchemicalwizardry:archmageOrb=Getting Too Strong...
achievement.alchemicalwizardry:archmageOrb.desc=Pick up an Archmage Blood Orb
achievement.alchemicalwizardry:archmageOrb=Too Strong
achievement.alchemicalwizardry:archmageOrb.desc=Pickup an Archmage Orb
achievement.alchemicalwizardry:energyBazooka=BOOM!!!
achievement.alchemicalwizardry:energyBazooka.desc=Create the all-powerful Energy Bazooka!!
achievement.alchemicalwizardry:energyBazooka.desc=Create the all powerful, Energy Bazooka!!
achievement.alchemicalwizardry:demons=Demon Hunter
achievement.alchemicalwizardry:demons.desc=Kill a demon summoned by the Convocation of the Damned
achievement.alchemicalwizardry:demons.desc=Kill a Demon
achievement.alchemicalwizardry:trancsendentOrb=OVERPOWERED
achievement.alchemicalwizardry:trancsendentOrb.desc=Pick up a Transcendent Blood Orb
achievement.alchemicalwizardry:trancsendentOrb.desc=Pickup a Transcendent Blood Orb
#G-API Downloading
bm.versioning.getGAPI=["[BM] You don't have Guide-API installed! Install it to get it to unlock the book! [",{"text":"Download","color":"red","hoverEvent":{"action":"show_text","value":{"text":"Click this to auto-magically download the latest version","color":"red"}},"clickEvent":{"action":"run_command","value":"/bloodmagic-download-g-api"}},"]"]
@@ -640,7 +635,7 @@ bm.versioning.downloadedAlready=You have the latest version already, reload your
bm.versioning.downloadingAlready=It's downloading! Be patient!
bm.versioning.disabled=This feature is disabled.
# WAILA localizations
# Waila localizations
tooltip.waila.currentFluid=Life Essence: %,d
tooltip.waila.noFluid=There is no Life Essence in the altar
tooltip.waila.tier=Altar Tier: %d
@@ -656,11 +651,4 @@ tooltip.waila.notActive=Ritual Not Active
option.bm.bloodAltar=Blood Altar
option.bm.ritualController=Ritual Stones
option.bm.teleposer=Teleposer
option.bm.chemistrySet=Alchemic Chemistry Set
# StructureLib
structurelib.bloodmagic.altar.1=Blood Altar
structurelib.bloodmagic.altar.2=Hold 1-6 Hologram Projectors to determine the tier
structurelib.bloodmagic.altar.3=Tier %s pillars accept any block
structurelib.bloodmagic.altar.4=Tier %s caps accept any block
structurelib.bloodmagic.altar.5=Tier 5 beacons accept any block
option.bm.chemistrySet=Alchemical Chemistry Set
@@ -1,19 +1,19 @@
#Block Localization
tile.bloodAltar.name=Altare del Sangue
tile.bloodRune.blank.name=Runa del Sangue
tile.bloodRune.fill.name=Runa di Capacità Aumentata
tile.bloodRune.fill.name=Runa di Capacità Aumentata
tile.bloodRune.empty.name=Runa di Dislocazione
tile.bloodRune.test.name=Runa del Globo
tile.speedRune.name=Runa di Velocità
tile.speedRune.name=Runa di Velocità
tile.efficiencyRune.name=Runa di Efficienza
tile.runeOfSacrifice.name=Runa del Sacrificio
tile.runeOfSelfSacrifice.name=Runa di Auto-Sacrificio
tile.ritualStone.name=Pietra del Rituale
tile.blockMasterStone.name=Pietra Maestra del Rituale
tile.bloodSocket.name=Cavità Piena
tile.bloodSocket.name=Cavità Piena
tile.imperfectRitualStone.name=Pietra del Rituale Imperfetta
tile.armourForge.name=Forgia delle Armature dell'Anima
tile.emptySocket.name=Cavità Vuota
tile.emptySocket.name=Cavità Vuota
tile.bloodStoneBrick.name=Mattone di Pietra del Sangue
tile.largeBloodStoneBrick.name=Gran Mattone di Pietra del Sangue
tile.blockWritingTable.name=Set da Alchimista
@@ -67,8 +67,8 @@ item.sacrificialDagger.name=Pugnale Sacrificale
item.daggerOfSacrifice.name=Daga Sacrificale
item.airSigil.name=Sigillo dell'Aria
item.sigilOfTheFastMiner.name=Sigillo del Rapido Minatore
item.sigilOfElementalAffinity.name=Sigillo di Affinità Elementale
item.sigilOfHaste.name=Sigillo di Rapidità
item.sigilOfElementalAffinity.name=Sigillo di Affinità Elementale
item.sigilOfHaste.name=Sigillo di Rapidità
item.sigilOfHolding.name=Sigillo della Tenacia Egoista
item.divinationSigil.name=Sigillo di Divinatione
item.waterScribeTool.name=Utensile d'Iscrizione Elementale: Acqua
@@ -212,7 +212,11 @@ item.transcendentBloodOrb.name=Трансцендентальный кровав
item.itemMailCatalogue.name=Mail Order Catalogue
item.inputRoutingFocus.name=Фокус направления входа
item.bloodMagicBaseItem.EnderShard.name=Осколок Края
item.outputRoutingFocus.name=фокус направления выхода
item.outputRoutingFocus.default.name=Обычный фокус направления выхода
item.outputRoutingFocus.modItem.name=Фокус направления выхода (ModItem)
item.outputRoutingFocus.ignMeta.name=Фокус направления выхода (Ignore Meta)
item.outputRoutingFocus.matchNBT.name=Фокус направления выхода (MatchNBT)
item.outputRoutingFocus.global.name=Фокус направления выхода (Global)
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
item.boundHelmetEarth.name=Земляной омега шлем
item.boundPlateEarth.name=Земляная омега кираса
@@ -384,7 +388,7 @@ tooltip.sacrificialdagger.desc2=Простого укольчика
tooltip.sacrificialdagger.desc3=будет достаточно...
tooltip.sanguinearmor.desc1=Пара очков проникнутых силой
tooltip.sanguinearmor.desc2=Одеяния проникнутые запретной силой
tooltip.sanguinearmor.visdisc=Уменьшение затрат Вис: %d%%
tooltip.sanguinearmor.visdisc=Уменьшение затрат Вис:
tooltip.scribetool.desc=Росписи на стене...
tooltip.seersigil.desc=Когда видеть всё, недостаточно.
tooltip.sigilofelementalaffinity.desc1=Идеально подходит для огнедышащей рыбы,
@@ -440,8 +444,6 @@ message.masterstone.ritualresistyou=Ритуал, кажется, защищае
message.masterstone.somethingstoppedyou=Что-то останавливает Вас...
message.masterstone.youfeelapull=Вы чувствуете втягивание, но Вы слишком слабы, чтобы толкать дальше.
message.ritual.currentritual=Текущий ритуал:
message.ritual.side.up=ВВЕРХ
message.ritual.side.down=ВНИЗ
message.ritual.side.east=ВОСТОК
message.ritual.side.north=СЕВЕР
message.ritual.side.south=ЮГ
@@ -218,11 +218,11 @@ item.transcendentBloodOrb.name=卓越气血宝珠
item.itemMailCatalogue.name=邮购目录
item.inputRoutingFocus.name=输入路由核心
item.bloodMagicBaseItem.EnderShard.name=末影碎片
item.outputRoutingFocus.name=输出路由核心
item.outputRoutingFocus.default.logic=默认
item.outputRoutingFocus.modItem.logic=模组物品
item.outputRoutingFocus.ignMeta.logic=数据值忽视
item.outputRoutingFocus.matchNBT.logic=NBT匹配
item.outputRoutingFocus.default.name=输出路由核心(默认)
item.outputRoutingFocus.modItem.name=输出路由核心(模组物品)
item.outputRoutingFocus.ignMeta.name=输出路由核心(数据值忽视)
item.outputRoutingFocus.matchNBT.name=输出路由核心(NBT匹配)
item.outputRoutingFocus.global.name=输出路由核心(Global)
item.dawnScribeTool.name=元素铭文:破晓
item.boundHelmetEarth.name=土`欧米伽头盔
item.boundPlateEarth.name=土`欧米伽胸甲
@@ -434,7 +434,6 @@ tooltip.divinationsigil.desc1=凝视着灵魂
tooltip.divinationsigil.desc2=获取当前生命本质的情况
tooltip.energybazooka.desc=Boom.
tooltip.energybattery.desc=存储原始的生命本质
tooltip.energybattery.capacity=容量: %,d LP
tooltip.energyblast.desc1=用于发射
tooltip.energyblast.desc2=毁灭性的炮弹.
tooltip.enhancedtelepfocus.desc=一个核心在祭坛中进一步加强
@@ -482,7 +481,7 @@ tooltip.sacrificialdagger.desc2=只是刺一下手指
tooltip.sacrificialdagger.desc3=你就能获得力量...
tooltip.sanguinearmor.desc1=一双充满力量的护目镜
tooltip.sanguinearmor.desc2=灌入被禁止的力量的长袍
tooltip.sanguinearmor.visdisc=魔力减免: %d%%
tooltip.sanguinearmor.visdisc=魔力减免:
tooltip.scribetool.desc=书写是在墙壁上的...
tooltip.seersigil.desc=看到更多总会有所不足
tooltip.sigilofelementalaffinity.desc1=在火中呼吸的鱼
@@ -540,8 +539,6 @@ message.masterstone.ritualresistyou=仪式似乎在积极的抵抗你!
message.masterstone.somethingstoppedyou=有什么东西使你的路径堵塞...
message.masterstone.youfeelapull=你感到一股拉力,但没有足够的能量促进其发生.
message.ritual.currentritual=目前仪式:
message.ritual.side.up=上
message.ritual.side.down=下
message.ritual.side.east=东
message.ritual.side.north=北
message.ritual.side.south=南
@@ -213,12 +213,11 @@ item.transcendentBloodOrb.name=卓越氣血寶珠
item.itemMailCatalogue.name=Mail Order Catalogue
item.inputRoutingFocus.name=Input Routing Focus
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
item.outputRoutingFocus.name=Default Output Routing Focus
item.outputRoutingFocus.default.logic=Match Item & Meta
item.outputRoutingFocus.modItem.logic=Match Mod
item.outputRoutingFocus.ignMeta.logic=Match Item, Ignore Meta
item.outputRoutingFocus.matchNBT.logic=Match Item, Meta, & NBT
item.outputRoutingFocus.global.logic=Move Everything
item.outputRoutingFocus.default.name=Default Output Routing Focus
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
item.outputRoutingFocus.matchNBT.name=Output Routing Focus (MatchNBT)
item.outputRoutingFocus.global.name=Output Routing Focus (Global)
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
item.boundHelmetEarth.name=Earth Omega Helmet
item.boundPlateEarth.name=Earth Omega Plate
@@ -396,7 +395,7 @@ tooltip.sacrificialdagger.desc2=Just a prick of the
tooltip.sacrificialdagger.desc3=finger will suffice...
tooltip.sanguinearmor.desc1=A pair of goggles imbued with power
tooltip.sanguinearmor.desc2=Robes imbued with forbidden power
tooltip.sanguinearmor.visdisc=Vis discount: %d%%
tooltip.sanguinearmor.visdisc=Vis discount:
tooltip.scribetool.desc=The writing is on the wall...
tooltip.seersigil.desc=When seeing all is not enough
tooltip.sigilofelementalaffinity.desc1=Perfect for a fire-breathing fish
@@ -453,8 +452,6 @@ message.masterstone.ritualresistyou=The ritual appears to actively resist you!
message.masterstone.somethingstoppedyou=Something stopped you in your tracks...
message.masterstone.youfeelapull=You feel a pull, but you are too weak to push any further.
message.ritual.currentritual=Current Ritual:
message.ritual.side.up=上
message.ritual.side.down=下
message.ritual.side.east=東
message.ritual.side.north=北
message.ritual.side.south=南
Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 394 B

@@ -1,9 +0,0 @@
aw.entries.architect.hellHarvest=Finally, the day that I have been waiting for the past 7 months has come. The "Hell's Harvest Festival" is a day that the village celebrates the creation of the first portal to the Nether a century ago. It's funny that when I ask the villagers why it is that we celebrate the formation of a portal to Hell, they simply laugh and say that I'll see when I finally go in. The portal was located in a vast stone cathedral, a three day's walk from the village on foot. Magus said that he'd meet us there, because he had a few things that he needed to prepare before actually going over to the Nether, but I was curious as to how he'd make it there in time - knowing Master Magus, he'd spend a day or two reading up on a new theory for a ritual and forget himself in his works. When we entered the hall, however, Master Magus was there already talking to one of the guards of the unlit portal, stowing away a gem into his pocket. I knew something was up, because I could see a strand connecting the gem in his pocket to both himself and one that trailed off back to the village. Not wanting to be distracted, I pulled out my wand (Master Magus insists on all of his apprentices learning of another field of magic, and Thaumaturgy has proved itself useful) and set alight the portal as was the custom of the newest member to the harvest. It seems that the harvest, however, was not exactly a trade. I saw giant stone walls and vast pumps throughout the land, grabbing all of the lava from the great pool below. A large collection of bound pigmen walked by, led away by someone in a full set of shining steel armor. Huge machines that processed the lava were emblazoned by the brands of industrialization: Thermal Expansion, BuildCraft, Greg Tech, and many other labels dotted throughout the base of operations. So much for a festival - it seemed that the Conglomeration, the governing body that oversaw all of the villages in the land, saw it fit to turn a civilization into a circus.
aw.entries.architect.moreThanHuman=Magus and I have been looking into the oddity I noticed with the demon crystal and bound armour, and what we have reaped from it was far beyond what I had expected. I has assumed at first this would simply allow more sigils or other things slotted into our armour, but that was far from the truth. As it turns out, the demon soul in the armour was reacting to the crystals and was becoming more... Active? Present? Detached? All of these are accurate, but none of them are quite right. Regardless, strands of the demon's soul become... Loose? In my head this is makes sense, but on paper it just sounds odd. Let's start that again, no matter how odd it sounds. The strands of the demon soul became loose from the armour in some places, and I noticed them interacting with my own soul strands leading to the armour, twisting and tangling the strands. And as they touched my soul strands, I felt... Something. I can't put it into words, but I knew it is something to look into. Mentioning it to Magus, he made reference to tales of old arch mages making pacts with demons for a bit of the demon's power. With this train of thought in mind, we started the road that lead to what has recently born fruit: Project Omega. The concept was simple: Fuse the soul of the user and the demon in the armour, then see what results from it. The stories of what demonic power can do vary widely, so we honestly had no idea what to expect. What we got was the Omega state. Long story of testing short, we found that reagents made the perfect medium to hold our souls and that of a demon together, with as few repercussions as possible. What was interesting is that the reagent used seemed to... Colour(?) the demon soul, attuning it like those of the Demon invasion. Depending on the reagent used, the powers and abilities offered changed drastically. We gained power beyond anything expected, with the armour reshaping itself to suit it's new abilities. While there are too many to list by name, I'll cover a few general features. First, we haven't reached a point where the Omega state lasts forever. We use reagent to power the fusion, and to maintain this fusion it slowly burns through the reagent. While Magus has made a ritual to offset this, the range and the cost mean it is far from an ideal option. In order to ensure we aren't caught of guard by reagent running out mid battle without warning, I've managed to create a visual display in the helm(Located on the left side of the screen, next to the LP bar, or at least would be if you have a divination sigil slotted into your bound armour). We also found that the demonic power gave our armour it's own buffer of extra health, taking damage that normally would have pierced through armour and hurt us. I added another bar to represent this, underneath the other two bars. I should note that this "Reagent health" needs reagent to form, so the more damage it takes in for you the less Omega time you have. Depending on the reagent used for the process, we discovered that the area around us had an impact on us. We gained boons from each armour, with extra health and stronger strikes being common place among all of them. However, this weapon can cut both ways: While we gain boons in favourable areas, in hostile areas we would suffer debuffs and weaknesses. Water armour is great in an Ocean biome, not so hot in the Nether however. This is something to keep in mind before starting Omega: Don't pick one based on effects alone, but where you expect to be fighting. I should end this entry here for now, as we are still working on Project Omega. As of this time of writing, we have only managed to enter Omega using Terrea, Aquasallus, Incendium, and Aether. Any other reagent we've tried will need some fine tuning to have working, as we needed to customise the ritual for each of the four we have. We have also noted some odd behaviour from the armour when in use, trying to expend energy in odd ways. I plan on looking into this at a later date.
aw.entries.rituals.phantomHandsRitual=My first task was to create a ritual to help deal with all these chests we have laying around, as it is getting to be a nightmare finding things after the fledgling thaumaturge Soaryn paid a visit. Having a ritual take instruction, however, was a little harder then expected. After several experiments, I have discovered a relatively simple method to achieve this using chests(Same rules as most inventories with rituals. Doesn't care what it is, from a chest to a furnace. I will be using chests as an example, as that is easiest.) To begin, I need to cover the logistic foci that allow you to give instruction to the demonic force behind the ritual(Only thing smart enough to handle this task). Adjacent to the master ritual stone can be up to four chests, and these hold the "Input focuses" the ritual checks to know what to pull from and how to pull from it. In laymen terms, you right click on the side of whatever you want the ritual to pull out of and it will follow all the normal rules for extraction for whatever side you clicked on. The output foci need to be placed in chests located at the four nooks in the V's of ritual stones and roughly two blocks away from the master ritual stone. They follow the same rules for marking, right clicking on the side you want the ritual to send items to and following item input rules for the block. However, there is one addition: If you shift click on an inventory, it will not only mark it as a destination but save the item total of the inventory. If the focus has a saved total, it will keep the bound location stacked with that amount for each of it's set items. Note: You don't need the final destination to hold all the items for total binding, you can use a second inventory as a middle man to set the total and then bind the focus to the new inventory without changing the total(Make sure you don't shift right click on the new inventory with the focus as that would reset the amount). Should you wish to remove the item limit, shift right click on an inventory without anything inside. There are a few variations of the output focus, each with subtle differences that impact operation. The red "Default" focus is the standard focus, has no special properties to it. It will ignore the NBT of items, and will check the "Metadata". The blue "ModID" focus instead of checking exact items will instead check the origin and classification of the item and will send anything that matches this. For "Origins and Classifications", I mean anything made my the Industrial craft corporation will be sent to the same location but anything made by their splinter corporations like nuclear control or advanced solar panels will be sent to different locations. The rules behind what belongs to what are archaic at best, but the scribes and scholars at NEI and WAILA keep exact records of these things so seeking their help may be needed if you don't want to rely on trial and error. The dark green "Metadata" focus isn't as exact with metadata, allowing items such as dye and colored glass to have all the subtypes and variations sent to the same location without needed to specify every single one. This also applies to damaged armour, weapons, and tools. The Yellow "NBT" focus is very exact with what it sends, keeping track of the tiny hidden differences such as how much Vis a wand has, what setting a ritual diviner is on, where a spell crystal is bound, ext... It also checks meta data, so keep that in mind. Finally, the purple "Global" focus needs you to set any item to send(What it is doesn't matter), and afterword when the ritual reaches this task it will send anything it possibly can. This is useful as a last resort location for anything you don't want to have sit in a source location but you have not set anything for the ritual to do with it and don't want it to clog up the system. Now then, the ritual itself. As I stated, it will check the adjacent for where to pull items out, what are the source locations. The output foci set where to send any items from the sources, what is the limit on what to send, and all the rules on what it should be sending. To specify this, you need to place one or more output foci in one of the chests to tell it where to send it and how to look at the items, then one or more items after it to specify what it is to be looking for. If the ritual finds another routing focus after the last item in a "Command chain", it will create a now chain following all the same creation rules as the first and acting independently of it. I should note that the ritual will work sequentially, sending all possible items to the first focus location it can while still following all the set rules, then move on to the next focus and doing the same. Additional quirks of using more then one output foci in the same chain: If more then one of the foci have a item limit set, the limits will add together so having four foci with sixteen set as the limit as sixty four. AlsoLine truncated
aw.entries.rituals.symmetryRitual=After a few weeks of design and testing, we have finished the ritual Tiberius wanted in order to achieve what he and the others have dubbed "The Omega state". I'll cover the ritual side of the process, and allow the others to go over the details of it's functions. For this ritual to function, it needs a sealed space in order to fill with reagent like a gas cloud. This reagent is then absorbed by the armour as the ritual merges the souls of the activator and the demon inside the activators bound armour. The problem is containing and controlling this gaseous reagent, as it likes to leak out of the chamber and the ritual can have difficulty "Pushing" the reagent into the armour. To address this, we created Glyphs. But I'm getting ahead of myself. First, I should cover how the ritual determines what is a "Sealed" chamber as it has safe guards to prevent reagent loss. The reagent gas is let lose above the master ritual stone, so the ritual starts checking there. It then starts expanding from there, searching for ways out in every direction, and if it can't get five blocks away from the master ritual stone(This isn't random, beyond five blocks away in any direction and the ritual has difficulty moving all the reagent. Think of it like compressing a gas, it always tries to move down the path of least resistance. To compress it, you need prevent it from being able to escape.) I have also noticed that the reagent, after being released into the chamber, collects on the walls of the chamber instead of staying in the air like tiny low hanging fog. The more surface area, the thinner the fog becomes and the more stable it is, and more stable fog means better value the ritual gets on the conversion process between reagent in the jars and the reagent in the armour, so the more time you have in the Omega state. No matter how you cut it, this chamber is meant to contain reagent for long stretches of time. The more stable the reagent fog is, the more time the ritual has to work and the less reagent wasted. Now then, I mentioned Glyphs earlier. After seeing the chamber in action, Tiberius created a few blocks called "Glyphs" to optimise and add to the champers use. First, the Glyph of Rigid stability was created to further stabilise the reagent fog, being worth roughly double the amount per square meter of space then a normal block. But that's not all he made with the Glyphs, as he discovered an interesting way to bolster the power of the demon using two new Glyphs for a system that resulted in something like enchanting. He mentioned two values, and had created Glyphs for each of them. First was "Enchantability", and it's is buffed by Glyph of the Adept Enchanter. The second value was "Arcane power" with Glyph of Arcane Potential, and functioned like the levels used in normal enchanting. To put how the two values work in layman's terms, Arcane power effects what enchantments are possible to receive, while Enchantability effects the odds of getting a good result. Since this process doesn't use normal enchanting(As the demons in our bound armour react negatively to such methods normally. This process circumvents this limitation by being more demonic in nature and this more... Tolerable to the demons.), it doesn't follow all the normal enchanting rules. For example, after much testing we were able to achieve the equivalent of protection six, fire protection four, and blast protection seven on a single piece of armour so some independent enchants can coexist. And normal power restriction also don't hold ground here, as seen by getting blast protection seven... More testing must be done, but you can see how this has potential. However, I should mention that a chamber can't be entirely enchantment blocks, as the Reagent reacts negatively to the magic used in them. While the reagent must touch the blocks to activate them, any fog that forms on them will destabilise severely causing less time in Omega. I have put in a safety to make sure it can not trigger the process if the stability is below zero, as that would be closer to a bomb then a fog at that point. I believe all the information you need to know before starting has been covered, so we will cover the actual ritual activation. The ritual is a flat platform with four holes, and in these holes you place the belljars of reagent to be used. This ritual doesn't use reagent in the normal fashion, so you don't need to route them into the master ritual stone like normal. With your awakened crystal, activate the ritual with your awakened crystal like normal. After the fifteen million LP fee is paid, it will look for belljars in the four holes for the thirty two thousand reagent cost. Once both are ready, it will check for the activator wearing bound armour and if present it will kick start the process. Within seconds, the transformation happens and you will enter the Omega state.
guide.BloodMagic.entryName.architect.boundArmour=Bound Armour
@@ -8,7 +8,7 @@ aw.entries.architect.divination=The first thing I did was to arrange the blank s
aw.entries.architect.waterSigil.1=I've been training my body, lately. Master Magus told me that in order to extract most of my power, I have to get my mind, soul, and body into as perfect shape as possible. Even though my mind takes time to hone, and my soul requires methods I have yet mastered to strengthen, my body is something I can actively manage. No more cookies for me, apparently, since they have horrible saturation for the work I do. And it's hard to grow cocoa right now, anyways. The temperature is ridiculously high, and with it the humidity is pretty freaking low. Some bright spark of a thaumaturge got it into their head that it would be good to open up the Obelisk to the far north of the village, and because of it a large influx of taint spewed forth from the eldritch tomb. It looks like someone wasn't focusing enough on their sanity training! Thankfully Master Magus decided to head out to the site up north with a few stones and a new vat of ink, saying over his shoulder that he had a new ritual that he'd like to test to fix the problem.
aw.entries.architect.waterSigil.2=In the meantime, I was tasked to create something to fix our water problem. I thought about perhaps cooling the environment around the village in order to condense the water in the air, or perhaps find a way to create rain - neither of which I would be able to accomplish, because I'm sure that either task would take more than the 5 kLP capacity I currently have with my blood orb. So, I had to think small. At my desk, I mixed some dirt into the spare water I had for experimentation and started to paint on one of the blank slates I recently created to layer a bit of a base. Once I was satisfied, I took a bunch of buckets (to be safe in case that what I did would fail) and arranged them around the damp slate and then took my orb from the chest nearby. I then tapped the orb onto the slate, and the water started to boil and swirl out of the surrounding buckets, rushing into the slate! After a quick, bright flash, the new sigil lay steaming on the table in a puddle of water. Thankfully the sigil was what I needed. I could link it to my network and place water wherever I wanted by simply tapping it on the ground. The water was pricy, requiring a full 100 LP for each bucket's worth that I created in the world, but for an infinite supply of water, creeping upwards to 50 full buckets for my puny network was something that I desperately needed. It's just a shame that it started to rain an hour after I created the sigil.
aw.entries.architect.lavaCrystal=There was an explosion in the lab today as I was trying to work out a few more artifacts. When I tried to infuse a few buckets of lava with my power, and used some glass to contain the effect, the assembly simply burst into flames and flew me across the workshop. I wasn't really hurt, and thankfully my water sigil was used promptly to put out the fires, however it seemed that my experiment failed rather heartily. Apparently I needed just a little bit more time, however, since I got it to work a week after. By combining some glass and obsidian together with a few buckets of lava, and throwing in my blood orb and a diamond to hold it all together, the diamond was transmuted into a fiery crystal that seemed to... do nothing at all. I peeked out from behind the blast shield, since by then I learned that playing with lava was not the safest of hobbies, and gingerly linked the crystal to my network. As soon as the pact was completed, I felt a wave of heat emanate from the crystal, and promptly tossed it into a furnace before it could burn my fingers. I was unsuccessful on that front. The furnace immediately kindled, and the pork that was sitting in the top slot began to cook quickly. Quickly feeling a wave of nausea, I checked my network out and found that I had nothing left to offer. Once I pulled the blasted thing out of the furnace and stuffed it into a chest, the nausea subsided. So this Lava Crystal could work in any sort of furnace and feed off of the owner's network, but if the network was dry it would instead cause the owner to feel a hearty blast of nausea unless removed from the solid fuel-burning machine. Good to know, since now I know of a way to trade my services with the blacksmiths in the village.
aw.entries.architect.hellHarvest=Finally, the day that I have been waiting for the past 7 months has come. The "Hell's Harvest Festival" is a day that the village celebrates the creation of the first portal to the Nether a century ago. It's funny that when I ask the villagers why it is that we celebrate the formation of a portal to Hell, they simply laugh and say that I'll see when I finally go in. The portal was located in a vast stone cathedral, a three day's walk from the village on foot. Magus said that he'd meet us there, because he had a few things that he needed to prepare before actually going over to the Nether, but I was curious as to how he'd make it there in time - knowing Master Magus, he'd spend a day or two reading up on a new theory for a ritual and forget himself in his works. When we entered the hall, however, Master Magus was there already talking to one of the guards of the unlit portal, stowing away a gem into his pocket. I knew something was up, because I could see a strand connecting the gem in his pocket to both himself and one that trailed off back to the village. Not wanting to be distracted, I pulled out my wand (Master Magus insists on all of his apprentices learning of another field of magic, and Thaumaturgy has proved itself useful) and set alight the portal as was the custom of the newest member to the harvest. It seems that the harvest, however, was not exactly a trade. I saw giant stone walls and vast pumps throughout the land, grabbing all of the lava from the great pool below. A large collection of bound pigmen walked by, led away by someone in a full set of shining steel armor. Huge machines that processed the lava were emblazoned by the brands of industrialization: Thermal Expansion, BuildCraft, Greg Tech, and many other labels dotted throughout the base of operations. So much for a festival - it seemed that the Conglomeration, the governing body that oversaw all of the villages in the land, saw it fit to turn a civilization into a circus.
aw.entries.architect.hellHarvest=Finally, the day that I have been waiting for the past 7 months has come. The "Hell's Harvest Festival" is a day that the village celebrates the creation of the first portal to the Nether a century ago. It's funny that when I ask the villagers why it is that we celebrate the formation of a portal to Hell, they simply laugh and say that I'll see when I finally go in. The portal was located in a vast stone cathedral, a three day's walk from the village on foot. Magus said that he'd meet us there, because he had a few things that he needed to prepare before actually going over to the Nether, but I was curious as to how he'd make it there in time - knowing Master Magus, he'd spend a day or two reading up on a new theory for a ritual and forget himself in his works. When we entered the hall, however, Master Magus was there already talking to one of the guards of the unlit portal, stowing away a gem into his pocket. I knew something was up, because I could see a strand connecting the gem in his pocket to both himself and one that trailed off back to the village. Not wanting to be distracted, I pulled out my wand (Master Magus insists on all of his apprentices learning of another field of magic, and Thaumaturgy has proved itself useful) and set alight the portal as was the custom of the newest member to the harvest. It seems that the harvest, however, was not exactly a trade. I saw giant stone walls and vast pumps throughout the land, grabbing all of the lava from the great pool below. A large collection of bound pigmen walked by, led away by someone in a full set of shining steel armour. Huge machines that processed the lava were emblazoned by the brands of industrialization: Thermal Expansion, BuildCraft, Greg Tech, and many other labels dotted throughout the base of operations. So much for a festival - it seemed that the Conglomeration, the governing body that oversaw all of the villages in the land, saw it fit to turn a civilization into a circus.
aw.entries.architect.lavaSigil=After accepting a few supplies from the farce, I walked back home by myself two days early. There were some things that I wanted to create, but wasting my time there would have been fruitless. Clearing my desk of debris charts of alchemical constructs, I set to work with a vat of magma cream that I brought with me, attempting to combine it with another slate. Casting my orb aside, I fished the lava crystal from my chest and combined it with the cream and some fresh buckets of lava - thankfully not from the Nether. Once the light faded, I picked up the new Lava Sigil that lay in front of me. What this sigil does is it siphons energy and uses the properties of the lava crystal to super heat rock, creating a source of lava wherever the wielder touches the ground. So, infinite lava, and infinite fire hazards. Unfortunately, it takes about 1 kLP per single use, which is a lot for my network as it stands currently. It looks like I need more power, but seeing that Master Magus is currently enjoying himself at the festival, I'm going to have to find a way to boost the blood altar myself.
aw.entries.architect.blankRunes.1=Of course! Runes! Why didn't I think of this earlier? The power of the altar itself comes from the structure of the components used to create it. The force of the diamond alone is not enough to create stronger materials through transmutation. What I need to do is construct several runes to extend the altar, and thus the altar's power. The only thing that I could do on such short notice is to take several blank slates (I have about 16 left) and quite a bit more stone and combine them with my Weak Blood orb.
aw.entries.architect.blankRunes.2=What came next was the hard part. After I made 8 runes for myself, I sat puzzling over the altar. "How could I extend this thing?" I asked myself. It took a few hours, but when I placed the 8 runes in the ground around the altar in a ring, I felt a strange reverberation in the air. Something felt like it awoke, as if the power in the surrounding environment doubled. Quickly, I grabbed my Divination Sigil and slapped it onto the altar, and focused into it to view the power of the altar. I was pleased to find out that the altar was finally at its second tier, which should open up many more transmutation recipes. The problem now, as I sank slowly into my bed to sleep after the long day, was to find out what I could now do. Although Magus was pleased with the upgraded altar, I was caught in a bind. I couldn't seem to do anything with it that the previous altar could not do. The first thing I did was I placed one of my leftover blank slates into the basin, and it promptly consumed 2 kLP worth of essence as it reinforced the structure. Although this Reinforced Slate was much more durable, this process appeared to make the slate no longer work with creating both the lava and water sigils, as well as making it a waste to use in additional rune creation.
@@ -34,7 +34,7 @@ aw.entries.architect.magnetism=It's been a few weeks since I last made any headw
aw.entries.architect.phantomBridge=I've been asked to visit a small town to settle a few complaints that have been voiced lately by them, and am currently surprised that a closer bridge isn't one of them. I've had to walk three miles to cross this river, and now must walk another two tomorrow to reach them. If only I didn't need a bridge, or had thought to grab my air sigil(I still have a bruise from the last landing I had with it, so I wasn't keen on using it again so soon.) Wait... If if I had a bridge that went with me? Better yet, what if I had a bridge that formed under my feet as I walked? Yes, that would be amazing... I'm back home after dealing with a feud over who really owned a cow(Answer: Neither of them, it wondered into town and they both thought it was one of their own), and have set out my work station to try and capitalize on my idea. I'd want the sigil to place blocks that are phantasmal, only there temporarily before fading into nothing after I leave. For that I'd need a special material... Soul sand might work... Add in a little stone for structuring around an imbued state, then use the orb... Done! Now then, for a test run... Drat, I left the auto-writing quill running again. It works better then I hoped! The sigil creates a small five by five platform under me, staying at the same elevation as I walk through the air. Not only that, but I've tweaked it so that holding shift lowers the platform by one under you, and the blocks it makes can be easily broken for a quick decent. Not only that, but it will only spawn the blocks if you are on the ground, jumping or flying will not cause the bridge to reform until you touch solid ground, unless you hold shift forcing it to form under you. And for one final convenience touch, right clicking a phantom block with a block replaces it with that block, making roofs and platforms far easier to build. That should be enough for one night, I'll dub this sigil "The Phantom Bridge" and call it a night.
aw.entries.architect.holding=Vlad asked me to help him today, requesting my assistance learning the sigils. Part way through he asked if it was ever burdensome having so many on me at once... And I told him it was. Now with a little of his help I've created the sigil of holding, and it... Well, it holds other sigils. Shift right clicking with it will allow you to place up to 5 sigils into one sigil (no physics here) and you can switch between the sigils that it holds by using the scroll on the mouse while holding shift. If you ever want the sigils back you can simply take them out whenever you wish.
aw.entries.architect.elementalAffinity=Demir hurt himself again today with a fire spell that backfired(Well, it worked perfectly if setting the ground around him on fire was the intention). In hopes of stopping further injuries, I have infused the powers of the water, lava, and air sigil into an imbued slate. This seems let the sigil act as protective aura around the user, shielding them from drowning, burning, or falling damage at a high over time LP cost. Since I asked Demir to use it he hasn't burned or bruised himself, but did pass out once from a lack of LP to fuel it. Sometimes solving one problem only makes more... But he has been learning, and I've been amazed at what his spells could do. Recently he made a long range teleportation spell and a flight spell not unlike the air sigil, but far faster.
aw.entries.architect.ritualStones=After a few days of nothing, I turned my attention to the construction of Master Magus's ritual stones. Looking them over, I might be able to replicate their usage and features using reinforced slates and obsidian... Master stone, more complicated then the average ritual stone might be possible if I use my magician blood orb and four ritual stones to handle the complex nature of it, along with a little more obsidian... Yes, yes it should be possible to recreate them without sacrificing any usage of them. After asking him how he originally made the elemental scribing tools, I believe I can also replicate the manufacturing of them in the blood altar... But it looks like the dusk inks are too complex for this altar to handle, creating an ink closer to dark gray then midnight black... Perhaps I'll have the power to form them later, for now these four will work.
aw.entries.architect.ritualStones=After a few days of nothing, I turned my attention to the construction of Master Magus's ritual stones. Looking them over, I might be able to replicate their usage and features using reinforced slates and obsidian... Master stone, more complicated then the average ritual stone might be possible if I use my magician's blood orb and four ritual stones to handle the complex nature of it, along with a little more obsidian... Yes, yes it should be possible to recreate them without sacrificing any usage of them. After asking him how he originally made the elemental scribing tools, I believe I can also replicate the manufacturing of them in the blood altar... But it looks like the dusk inks are too complex for this altar to handle, creating an ink closer to dark gray then midnight black... Perhaps I'll have the power to form them later, for now these four will work.
aw.entries.architect.bloodLamp=I had a flash of inspiration today (Quite literally, as watching a few town guards light a replacement torch nearly blinded me from the sudden light). They spend so much on coal and charcoal to fuel those things... What if I had a simple replacement? A near invisible light source that never goes out, can be made almost endlessly, and can easily be carried on your person? Never again would you need to place a torch to light a room, and they can ruin a rooms look(Not to mention the fire hazard they pose, ruining the look even more. "Charred mess" is never in style.). Harnessing the power of glowstone by running a "Current" of LP through it, I can create a sigil that fires a projectile that upon landing forms a stable light source par with that of torch. The only sign of its existence is the light it gives off and faint red particles. While it uses a small amount of LP, the advantage over carrying stacks of torches is enough to justify it.
aw.entries.architect.boundArmour.1=Today Magus gave us a lecture on armors, going over the practical applications(Protection from large pointy sticks shoved in your direction and holding magic to improve the abilities of the wearer), typical construction of armor, and notable armors through the ages (And the very fatal flaws that their owners eventually discovered, much to their short lived dismay). Seeing and reading all this, I feel it is time I take my own try at this art using blood magic. Testing a wide array of materials and structures, I discovered a process to make an almost indestructible metal using a casing filled with life essence with glass hardened with diamonds and reinforced with bright red blood shards(More on their properties later) Magus showed me a while back (Making the prototypes of this armor took longer then you would believe). The process needs the soul of a demon bound to it, but this seems to be a small price to pay.
aw.entries.architect.boundArmour.2=To start, you need to make a "Soul armor forge". This block summons the demon soul and controls the transformation of the "Socket" blocks into proper armor. By placing the filled socket blocks around the soul armor forge in roughly the shape of the armor piece you want with the forge in a gap, you set what it makes. Right clicking the forge will then finish the process, creating the armor piece and binding the demon to the shards inside the armor. You will need to bind the armor to yourself, allowing the armor to drain your network to repair any damage it takes(Another benefit of using blood shards in the creation). After donning the armor(Making a few adjustments, still refining the creation process), I asked Magus to help test just how resistant this armor really is. Several nasty bruises later, we have decided this armor shields the wearer from ninety percent of damage from mundane damage sources. What is interesting is that it also blocks roughly eighty percent of magical damage, meaning many armor piercing methods are far weaker. The metal also doesn't seem to hold enchantments, and the demons inside reacts quite negatively to our attempts to do so. Using the ritual of unbinding, we are able to deconstruct the armor back into the component sockets and anything that was inside them. I mention this because we seem to be able to "Augment" the armor before creation by adding a combination of sigils, blood shard, and an orb. The sigil added to the armor piece(You can add anything to the socket by right clicking with the item in hand) determines the effect, and adds a passive cost to wearing the armor piece. The blood shard lets you add an upgrade, the weak shards we have at our disposal only allow one upgrade but in theory a stronger shard should allow more to be added. Finally, the orb seems to lower the cost of the upgrade. Every sigil seems to have something to do with the normal effect of the sigil, either giving you a passive bonus or having the effect of the sigil happen automatically around you. A few examples are a water sigil making you immune to drowning, the fast miner always active, and a green grove sigil acts around you.
@@ -62,7 +62,7 @@ aw.entries.architect.accelerationRune=Moving my attention on to runes for our wo
aw.entries.architect.harvest=Bella has dragged me with her to town so she can be sure I'm out of the lab for a while(I have noticed I'm a little pale, but I just assumed that was from all the sacrifices I've been making lately). As we ate two sandwiches at a bench on the edge of the village, I watched the farmers in the field slaving over the harvest while trying to outrun the storm just visible in the distance. Talking with Bella about ways to help them, I created the basic idea for the sigil now known as the "Harvest Goddess". It is to the "Reap of the Harvest Moon" what the "Sigil of the Green grove" is to the ritual of the green grove, performing a similar effect to the harvest moon around the user by summoning a little demonic imp(You can thank Bella for this part). As soon as we had a version ready, Bella ran out into the field with a green grove, haste, and magnetism sigil to quickly run through the field collecting the harvest behind her. Needless to say, the few farmers in the field were awe struck by this sight and a few of the newer ones thought she was a goddess sent to answer their prayers(And I liked the sound of it, so we now have a name for the sigil).
aw.entries.architect.demonProblem=A mage can never get a good rest without something happening... Magus has finally launched an operation to deal with the demon portal, and has asked Vlad, Demir, and myself to lead the siege team. He has cooked up some complicated plan that only he knows all the details, and in fact might be the only one who even has any idea if it might work (Quite a few of us felt lost when he gave the basic overview of the plan). One question asked at the meeting that felt quite memorable was "Wait, how are you able to replicate this portal?" Magus only smiled and asked him "At what point does science stop being science and starts being magic? It is the same principles and theories at work, just a different means of execution." For Magus, that seemed to answer everything. Gah, I need to focus on packing for the trip as we won't be back for a few weeks. I feel like I'm heading out for war, and I guess in a way we are... Alright, I did not expect to find a camp of demons when we warped to Venric's folly. I expected a hole in the fabric of space, I expected a few demons, but a little village... Not to mention the fact that I had to save a fairly inexperienced thaumaturge who hasn't dealt with demons before. He rushed in, thinking he would show off a bit. To his credit, he did manage to kill a few demons before the hoard took him down. I had to run in with a teleposer to save him, but we did discover something important: From the vanishing remains of the demons, I retreaved two crystals. One was a shiny red we have named a "Life shard". The other a brilliant blue we have dubbed a "Soul shard". What is odd is that my bound armor seemed to react when I touched them, and I saw a few stray strands of soul threads between the demons and these shards. But that isn't what was really odd. I was spotted by one of the demons when I went to save the fool, and noticed two things very quickly: The demon had a connection to the portal with a few soul stands. The second thing was that it seemed to be... Vibrating? Closest word that comes to mind when I think of it. Shortly after that, two things happened: The demons started running towards us from every part of the village, and for a few hours after we left the camp seemed to be under a lockdown. The demons had donned armor, and were patrolling the area instead of building. These guards seemed a little stronger then the others, but tomorrow I plan on mounting an operation to collect more of these shards for research...
aw.entries.architect.tier6Altar=From what we have learned so far, these crystals seem to be ordinary crystals (Well, ordinary as anything from Tartarous can be here) filled with demonic aura and... changed by the travel through the portal. These demons have been using them as a sort of personal anchor, an extension of the main portal's influence. I have discovered that mixing these crystals together in a five to four ratio of life to soul shards forms a purple block that is practically pulsating with demonic power. Since we may be here a while, I have started construction of a prototype blood altar that utilizes these new blocks for enough stability for a T6 to be possible. I have yet to try this, but if it works... Once again, a theory proved to work out. With the addition of four pillars capped in these crystal clusters, we are able to support another seventy six runes, nineteen on each side of the altar. I have also tried the clusters out for making a blood orb, and the "Transcendent orb" was the result with a cap of thirty million LP. Sadly, I haven't had a chance to experiment with this new altar or orb, so I haven't anything else to share yet.
aw.entries.architect.moreThanHuman=Magus and I have been looking into the oddity I noticed with the demon crystal and bound armor, and what we have reaped from it was far beyond what I had expected. I has assumed at first this would simply allow more sigils or other things slotted into our armor, but that was far from the truth. As it turns out, the demon soul in the armor was reacting to the crystals and was becoming more... Active? Present? Detached? All of these are accurate, but none of them are quite right. Regardless, strands of the demon's soul become... Loose? In my head this is makes sense, but on paper it just sounds odd. Let's start that again, no matter how odd it sounds. The strands of the demon soul became loose from the armor in some places, and I noticed them interacting with my own soul strands leading to the armor, twisting and tangling the strands. And as they touched my soul strands, I felt... Something. I can't put it into words, but I knew it is something to look into. Mentioning it to Magus, he made reference to tales of old arch mages making pacts with demons for a bit of the demon's power. With this train of thought in mind, we started the road that lead to what has recently born fruit: Project Omega. The concept was simple: Fuse the soul of the user and the demon in the armor, then see what results from it. The stories of what demonic power can do vary widely, so we honestly had no idea what to expect. What we got was the Omega state. Long story of testing short, we found that reagents made the perfect medium to hold our souls and that of a demon together, with as few repercussions as possible. What was interesting is that the reagent used seemed to... Colour(?) the demon soul, attuning it like those of the Demon invasion. Depending on the reagent used, the powers and abilities offered changed drastically. We gained power beyond anything expected, with the armor reshaping itself to suit it's new abilities. While there are too many to list by name, I'll cover a few general features. First, we haven't reached a point where the Omega state lasts forever. We use reagent to power the fusion, and to maintain this fusion it slowly burns through the reagent. While Magus has made a ritual to offset this, the range and the cost mean it is far from an ideal option. In order to ensure we aren't caught of guard by reagent running out mid battle without warning, I've managed to create a visual display in the helm(Located on the left side of the screen, next to the LP bar, or at least would be if you have a divination sigil slotted into your bound armor). We also found that the demonic power gave our armor it's own buffer of extra health, taking damage that normally would have pierced through armor and hurt us. I added another bar to represent this, underneath the other two bars. I should note that this "Reagent health" needs reagent to form, so the more damage it takes in for you the less Omega time you have. Depending on the reagent used for the process, we discovered that the area around us had an impact on us. We gained boons from each armor, with extra health and stronger strikes being common place among all of them. However, this weapon can cut both ways: While we gain boons in favourable areas, in hostile areas we would suffer debuffs and weaknesses. Water armor is great in an Ocean biome, not so hot in the Nether however. This is something to keep in mind before starting Omega: Don't pick one based on effects alone, but where you expect to be fighting. I should end this entry here for now, as we are still working on Project Omega. As of this time of writing, we have only managed to enter Omega using Terrea, Aquasallus, Incendium, and Aether. Any other reagent we've tried will need some fine tuning to have working, as we needed to customise the ritual for each of the four we have. We have also noted some odd behaviour from the armor when in use, trying to expend energy in odd ways. I plan on looking into this at a later date.
aw.entries.architect.moreThanHuman=Magus and I have been looking into the oddity I noticed with the demon crystal and bound armour, and what we have reaped from it was far beyond what I had expected. I has assumed at first this would simply allow more sigils or other things slotted into our armour, but that was far from the truth. As it turns out, the demon soul in the armour was reacting to the crystals and was becoming more... Active? Present? Detached? All of these are accurate, but none of them are quite right. Regardless, strands of the demon's soul become... Loose? In my head this is makes sense, but on paper it just sounds odd. Let's start that again, no matter how odd it sounds. The strands of the demon soul became loose from the armour in some places, and I noticed them interacting with my own soul strands leading to the armour, twisting and tangling the strands. And as they touched my soul strands, I felt... Something. I can't put it into words, but I knew it is something to look into. Mentioning it to Magus, he made reference to tales of old arch mages making pacts with demons for a bit of the demon's power. With this train of thought in mind, we started the road that lead to what has recently born fruit: Project Omega. The concept was simple: Fuse the soul of the user and the demon in the armour, then see what results from it. The stories of what demonic power can do vary widely, so we honestly had no idea what to expect. What we got was the Omega state. Long story of testing short, we found that reagents made the perfect medium to hold our souls and that of a demon together, with as few repercussions as possible. What was interesting is that the reagent used seemed to... Colour(?) the demon soul, attuning it like those of the Demon invasion. Depending on the reagent used, the powers and abilities offered changed drastically. We gained power beyond anything expected, with the armour reshaping itself to suit it's new abilities. While there are too many to list by name, I'll cover a few general features. First, we haven't reached a point where the Omega state lasts forever. We use reagent to power the fusion, and to maintain this fusion it slowly burns through the reagent. While Magus has made a ritual to offset this, the range and the cost mean it is far from an ideal option. In order to ensure we aren't caught of guard by reagent running out mid battle without warning, I've managed to create a visual display in the helm(Located on the left side of the screen, next to the LP bar, or at least would be if you have a divination sigil slotted into your bound armour). We also found that the demonic power gave our armour it's own buffer of extra health, taking damage that normally would have pierced through armour and hurt us. I added another bar to represent this, underneath the other two bars. I should note that this "Reagent health" needs reagent to form, so the more damage it takes in for you the less Omega time you have. Depending on the reagent used for the process, we discovered that the area around us had an impact on us. We gained boons from each armour, with extra health and stronger strikes being common place among all of them. However, this weapon can cut both ways: While we gain boons in favourable areas, in hostile areas we would suffer debuffs and weaknesses. Water armour is great in an Ocean biome, not so hot in the Nether however. This is something to keep in mind before starting Omega: Don't pick one based on effects alone, but where you expect to be fighting. I should end this entry here for now, as we are still working on Project Omega. As of this time of writing, we have only managed to enter Omega using Terrea, Aquasallus, Incendium, and Aether. Any other reagent we've tried will need some fine tuning to have working, as we needed to customise the ritual for each of the four we have. We have also noted some odd behaviour from the armour when in use, trying to expend energy in odd ways. I plan on looking into this at a later date.
aw.entries.rituals.intro=At the constant demands of my apprentices, I've started writing down my knowledge of blood magic. I've told them time and again that what we do is far too dangerous to write about, and in the wrong hands... I don't want to think of the consequences. But they have made one good point: if more people are going to learn blood magic, word of mouth is far too limited. But I'm getting sidetracked, back to what this is all about. Following their example, I will introduce myself. My name is Magus Arcana, and I am the founder of blood magic. I have lived a long life, studying more fields of magic then one could count. When I was younger I moved to the outskirts of a village to start my journeys into the arcane. After several decades of study, I realized there was one source of power few had ever touched: Blood. Many mages claimed that the use of blood in magic was taboo, yet gave no reason as to why. Eventually, my curiosity grew beyond my reluctance and I started experimenting with the art of blood magic.
aw.entries.rituals.weakRitual=My first breakthrough was with a simple device that used the power of whatever was above it as a template, along with a great deal of blood(25 hearts, or 5k LP if you go by the system one of my apprentices made years later) to perform small miracles. I must also note that at the start of each of the rituals lightning strikes the ritual stone setting it alight, as if the cost of activation wasn't deadly enough. After two weeks of meditation to strengthen my soul to the point where I could handle the strain of these rituals, I started experimenting with different templates to discover their effects. At that point, I only had the strength to test one template per day before I felt weak. I decided to start training my body and mind again like I did when I was younger, while using a few tricks I had learned over the years to help speed up the process.With some work I found that water creates a rainstorm with so much lightning that I couldn't sleep that night. A somewhat rare mineral block by the name of Lapis had the very interesting effect of turning day into night. Needless to say, everyone in the village was very confused when the sun suddenly vanished and they couldn't see anything. I was shocked when I found that a coal block summoned a zombie stronger than any other I've ever fought in the night. I also lost the coal block to fire from the lightning strike when I was dealing with said zombie. The final effect I found was with bedrock I found at the bottom of a local mine, hardening my skin temporarily. While I looked no different, I could shrug off a blow from an iron sword without a scratch. A bruise perhaps, but not a scratch.
@@ -96,7 +96,7 @@ aw.entries.rituals.condorRitual=After three month worth of work (Tiberius says I
aw.entries.rituals.meteorRitual=After reading an interesting book on where ores come from, I built "The Mark of the Falling Tower." It uses a process similar to the ritual of magnetism, but instead of pulling them out of the earth in drags a meteor out of space and pulls it toward the master ritual stone. (Note: The meteors summoned by the ritual often come in with a powerful blast. This is unavoidable, as we are dragging in huge chunks of rock at very high speeds.) This process is not cheap, needing 1M LP to activate, then a "Template" item sacrificed by dropping it on the master ritual stone to help the ritual find a meteor. The item dropped will influence the meteor it finds, but there will always be some randomness to the process. Here is what I have discovered with some experimentation (Note, this might differ from person to person. I can only give you a reference point for what you might get and tell you what they need.): A stone block summons a huge meteor filled with lots of stone, while also having ores often found close to the surface of the world scattered about. Common things to find are: Coal, apatite, and iron. An iron block summons a meteor filled with metals like iron, gold, copper, tin, lead and silver. It also has very little stone, and some lapis and redstone mixed in with the metals. A diamond calls down a meteor that is often filled with gems (diamond, emeralds, amber) and other rare items like cinnabar. Finally a nether star calls down a meteor filled with very rare or tricky to get ores like nether quarts, diamonds and emeralds (more than what the diamond summons), sunstone, moonstone, certus quartz, and the always rare iridium. (Gregtech has become a lot friendlier since I discovered this ritual, for some reason). I should repeat that your location in the universe influences what the meteors come with. The ore amounts, meteor size, and even what ores do spawn have been known to change, from some having metals I've never heard of to other iron block summons having only iron, gold, lapis and redstone. It is almost as if someone can tweak these factors to their heart's content... No, nothing more than my paranoia.
aw.entries.rituals.expulsionRitual=The next ritual I have created with my wonderful new activation crystal was one I'm rather proud of. Every few years someone gets it in their head I'm the incarnation of evil and then raise up a mob to try and kill me. Since I knew it was time for it to happen again (always just after the first harvest, when the farmers are planting more seeds. This is around the time it happens, like clockwork.), I created the aura of expulsion. What it does is simple: It creates a field in a square 25 block radius that will check for anyone who isn't the activator. If it finds someone who isn't the activator, it will "Expel" them by randomly teleporting them away. This ritual has an activation cost of 1M LP, with a 1K fee every time it expels someone. I should note that if someone lands inside the field of another aura of expulsion they will be teleported again and again until they land outside the field or the ritual owner's network becomes dry. You have no idea how entertaining it was to sit on my porch and watch as the mob suddenly realized that they were heading in the wrong direction when they started marching toward my home. It took them an hour, but they finally figured out that they couldn't get close to my home. Afterward I got to hear all the silly reasons why they wanted to kill me this time. Also, I have added a check to the ritual for an inventory above the master ritual stone. If it finds a blood orb bound to someone inside, then they become "Whitelisted" from the effect of the ritual.
aw.entries.rituals.costOfProgress.1=Well, I write this with both good news and bad news: The good news is that we now have a lead on what my students need for their next tier of blood altar. The bad news is that what they need is very hard to get: Beacons. Four, to be exact. Nether stars are an extremely rare resource that very few have access to, so building this seemed impossible to them. I told them that I might be able to pull a few strings, but it will take time. For now they are working on building the upgrade runes they will need, then I will tell them to try and perfect what they can do with their master blood orbs. Thankfully, the next Hell harvest is in less than a month so I can start the plan I have been thinking up soon. But it will take at least a year to accomplish, so we have time to kill... I have just returned from the Conglomeration meeting, and my plan is now in action. You see, the host for the next meeting is the Mage guild, and as the host I have the authority to make a request: That all the Conglomeration members show up, in person. It has been what, thirty years since I have met most of them? Regardless, I gave each of the representatives a letter to deliver to the Conglomeration board members that said "As the host of next year's meeting, I have two requests. The first is that we hold the meeting near my home instead of in the nether, as I really don't have anywhere large enough to host there. The second is that all Conglomeration members show up in person. Don't bother bringing servants, but you may bring friends (give those poor souls you send in your place all the time a thank you. They deserve one.), and family members. Room and board should not be a problem, as I will gladly provide both. Don't send people in your place like most of you do, as I will not allow any substitutions. "If you attend this meeting, guests or no guests, I have prepared little gifts for each of you as a thank you. Inside this envelope you will find a card with what I am offering. You may find my offer beyond believe, but I can assure you that I have everything offered and more. Consider this a little incentive to come, as I know most of you spend the Hell's harvest working instead of enjoying a small vacation. If you wish to attend, simply send a reply letter to me in whatever manner you see fit. I look forward to seeing you all again." The gift I offered depended on who got the letter. To Gregorius Tech IV (he doesn't trust anyone else to run his company, so every time he feels like he can't run the business anymore he makes a clone of himself, then moves all his memories to the clone.), I offered a stack of raw iridium ore. To Iza Lemming I offered a few resonant ender cells (fully charged, of course. I have more than magic tools in my basements.). I could list them all, but then this book will drag on longer than it already has. I told my apprentices that I should be getting a few letters soon, and a week later I started getting the letters in a wide variety of ways. Gregorius opened a hole in space to have an intern hand deliver it, Queen Muse sent a power armored messenger with her letter soaring over the tree tops. Lucas Jaguar sent one of his personal trains in, one that built a track as it went and removed it automatically. I could go on, but I think you get the idea. When Tiberius asked what was going on, I told him I would be having a few guest over in a few months and these were their answers to my invitation. All of the letters said yes, so I must have gotten their attention. For the nine months after the Hell's harvest festival, I learned all I could from my apprentices. I wanted to use Tiberius's artifacts, so he showed me every sigil he has made and helped me upgrade the bound armor he gave me. Vlad showed me the secrets (in exchange for a few secrets of my own) of his potions, and the power he could bring out of what used to be so simple. Demir gave me spell components, and showed me how to build a spell structures. Bella helped me summon and tame a demon similar to Sinferrius (the "Fallen Angel" breed), who was named Thanatos. We found that the two of us shared a thirst for knowledge, and he started helping me with research in my library. When there was only three months until the next Hell's harvest festival, I opened the "Conglomeration Hall."
aw.entries.rituals.costOfProgress.2=The Hall is where I have stored most of the Technology I acquired over the years, from trades with the other board members or deals with more shady groups. Every innovation and project that any of the world's companies have ever made can be found here, from redstone furnaces to industrial grinders, power armor upgrades to quantum armor, and coal coke ovens to mass fabricators. Most of the time I never use this place, but it works as a fine testing ground for applications of my magic. After doing the ritualistic "Dance of the Mage" to call up from the ground then open the gates to The Hall, I noticed that all of my apprentices were standing behind me slack jawed. "What... What did you just do?" Demir finally asked. "I opened the door to this old place. We need to do some cleaning if we're going to have guests here. Dust gets everywhere and... Well, what are you waiting for, come in and help me!" It took all of us the first two months to clean the place (all ninety-five floors), and we spent the final month taking care of all the last minute touches such as making a large order for food from the great meat and produce alliance (Queen Pam, Harvey Growth, and Larry Iguana are the main representative for the Conglomeration, but there are many smaller colonies that make up their territories). Shortly after making sure everything was in working order, all the dust was cleaned out of the place, all the beds had clean sheets, and many other tasks were done was it time for the Hell's harvest festival, I asked my apprentice's to watch the place while I lead the other members here, and to greet them when they arrive. I think at that point Demir still thought this was some sort of prank, as there isn't any mention of the mage guild having a representative in any history books (and I've made sure it stayed that way. Any who have tried find their books missing, pages torn out, and critique for believing some legend is fact.). We went through the normal procedure, a merchant that had just moved in to town lighting the portal. After milling about the place for an hour, I met all my guests at Fire Grove Park (tourist spot, if you can believe it) and set about escorting them to my home as orderly as possible (which wasn't very). Thankfully, almost everyone was in commoner clothing as I had requested so no one realized all of the leaders of the world were walking past them. After just half an hour, we were all in the carriages I rented (I told the merchant it was a family reunion. He never asked if it was my family.), and on our way to my home. In total there was a little over a hundred and fifty people here, so I'm glad they took up my offer for guests. Once all of the carriages arrived, and I had asked the drivers to return a few days later, I set about greeting everyone and showing them around. It took most of the day, but everyone started relaxing and enjoying a nice vacation. We all came together again for dinner, and as we enjoyed meals cooked by a local family run restaurant that I always hired for large meeting like this I moved from table to table, greeting guests personally and answering questions. As the hour grew late all the Conglomeration members joined me in a small room for the meeting. "Well Magus, I had no idea you owned a place like this!" Raylind Diyo said as he came in. "I might have paid you a visit sooner if I did." Raylind said as he took his seat, smile on his face. I saw he brought both his wife and daughter here, so that might be why he is in such a good mood. "This place is better than any hotel or amusement park I've even been in!" Carrin Calclavia, the fifteen year old owner, head of research for Modular Force Fields, and daughter of the former owner Count Calclavia said while spinning in her chair. "Seems like a waste of my time," Gregorius said. "Oh, don't be such a spoil sport Greg. Most of us have forgotten what not working every minute of our lives is like, and I for one remember why I liked not working when I was younger!" Jason Algorithm of Applied Energetics said as he took his seat next to Greg. Greg gave him a cold glare for a few seconds, then his expression broke as he said, "Alright, I'll admit I have enjoyed not worrying about paper work for the last few hours." "Now that Greg has almost smiled, let's go to Magus for more miracles," Carrin said, mischievous grin on her face. "Well, everyone is here, so we may start. Any news to share?" The news this year was a little more lively than normal, a few had started "Re-inventing the wheel" to use their technologies in new ways, while a few others had started work on new projects. Then we moved on to the normal trade requests and protocol stage, where it was business as usual. Until it was my turn. "Before we move on, I have to request a few wither summons and kills." I told them. "Ah, you need nether stars? I still have a few spare, so you can use them." Jason said. "No, I only need a few stars. It isLine truncated
aw.entries.rituals.costOfProgress.2=The Hall is where I have stored most of the Technology I acquired over the years, from trades with the other board members or deals with more shady groups. Every innovation and project that any of the world's companies have ever made can be found here, from redstone furnaces to industrial grinders, power armor upgrades to quantum armor, and coal coke ovens to mass fabricators. Most of the time I never use this place, but it works as a fine testing ground for applications of my magic. After doing the ritualistic "Dance of the Mage" to call up from the ground then open the gates to The Hall, I noticed that all of my apprentices were standing behind me slack jawed. "What... What did you just do?" Demir finally asked. "I opened the door to this old place. We need to do some cleaning if we're going to have guests here. Dust gets everywhere and... Well, what are you waiting for, come in and help me!" It took all of us the first two months to clean the place (all ninety-five floors), and we spent the final month taking care of all the last minute touches such as making a large order for food from the great meat and produce alliance (Queen Pam, Harvey Growth, and Larry Iguana are the main representative for the Conglomeration, but there are many smaller colonies that make up their territories). Shortly after making sure everything was in working order, all the dust was cleaned out of the place, all the beds had clean sheets, and many other tasks were done was it time for the Hell's harvest festival, I asked my apprentice's to watch the place while I lead the other members here, and to greet them when they arrive. I think at that point Demir still thought this was some sort of prank, as there isn't any mention of the mage guild having a representative in any history books (and I've made sure it stayed that way. Any who have tried find their books missing, pages torn out, and critique for believing some legend is fact.). We went through the normal procedure, a merchant that had just moved in to town lighting the portal. After milling about the place for an hour, I met all my guests at Fire Grove Park (tourist spot, if you can believe it) and set about escorting them to my home as orderly as possible (which wasn't very). Thankfully, almost everyone was in commoner clothing as I had requested so no one realized all of the leaders of the world were walking past them. After just half an hour, we were all in the carriages I rented (I told the merchant it was a family reunion. He never asked if it was my family.), and on our way to my home. In total there was a little over a hundred and fifty people here, so I'm glad they took up my offer for guests. Once all of the carriages arrived, and I had asked the drivers to return a few days later, I set about greeting everyone and showing them around. It took most of the day, but everyone started relaxing and enjoying a nice vacation. We all came together again for dinner, and as we enjoyed meals cooked by a local family run restaurant that I always hired for large meeting like this I moved from table to table, greeting guests personally and answering questions. As the hour grew late all the Conglomeration members joined me in a small room for the meeting. "Well Magus, I had no idea you owned a place like this!" Raylind Diyo said as he came in. "I might have paid you a visit sooner if I did." Raylind said as he took his seat, smile on his face. I saw he brought both his wife and daughter here, so that might be why he is in such a good mood. "This place is better than any hotel or amusement park I've even been in!" Carrin Calclavia, the fifteen year old owner, head of research for Modular Force Fields, and daughter of the former owner Count Calclavia said while spinning in her chair. "Seems like a waste of my time," Gregorius said. "Oh, don't be such a spoil sport Greg. Most of us have forgotten what not working every minute of our lives is like, and I for one remember why I liked not working when I was younger!" Jason Algorithm of Applied Energetics said as he took his seat next to Greg. Greg gave him a cold glare for a few seconds, then his expression broke as he said, "Alright, I'll admit I have enjoyed not worrying about paper work for the last few hours." "Now that Greg has almost smiled, let's go to Magus for more miracles," Carrin said, mischievous grin on her face. "Well, everyone is here, so we may start. Any news to share?" The news this year was a little more lively than normal, a few had started "Re-inventing the wheel" to use their technologies in new ways, while a few others had started work on new projects. Then we moved on to the normal trade requests and protocol stage, where it was business as usual. Until it was my turn. "Before we move on, I have to request a few wither summons and kills." I told them. "Ah, you need nether stars? I still have a few spare, so you can use them." Jason said. "No, I only need a few stars. It isLine truncated
aw.entries.rituals.zephyrRitual=I must admit I have become lax in my updating of this book. Since the last time I have managed to sit down and start documenting, I have been experimenting with the "Reagent system" my colleagues have created as well as forming new rituals. I have not yet finished the portal, but I believe I have come up with a plan on how to build it.... But that is something for later. Starting with the rituals, I have had a few interesting ideas... There was the Call of the Zephyr, a ritual with the purpose of retrieving items off the ground and depositing them into any inventory above the master ritual stone. It does not just call the items through three dimensional space, but use a few new tricks to transport the items quickly and even through solid matter.
aw.entries.rituals.harvestRitual=Next up was the reap of the harvest moon. What it does it quite simple: It can harvest plants within a 9x9 area centered on the master ritual stone. However, I have needed to configure the ritual for any plants I need it to harvest. A few plants, such as wheat and carrots, I have already adapted the ritual to but I know of several crops that it can't function with this ritual. Later on they might work, but for now if it doesn't work then it might never work.
aw.entries.rituals.eternalSoulRitual=I have tried to improve the feathered knife ritual, but managed to achieve a strange but useful result christened Cry of the Eternal Soul : A way to convert LP from the soul network into liquid LP. It was designed to be constructed underneath a blood altar, and will link to the first one it finds. Afterword, it will drain the soul network of the activator and only if he is in range to fill the altar. This does have a few nuances, however: While inside it's range, the activator is extremely weak to the point of being near death. The conversion rate is rather poor at a two LP spent for each point of liquid added(One is added to the altar, and one used to create it). The altar also seems to consider this the same as a pipe adding LP, so any input is throttled by the buffer. As a result, any altar used will need to be built with usage of the ritual in mind.
@@ -134,10 +134,10 @@ aw.entries.rituals.conclaveOfMages=With my experimentation into reagents, I thin
aw.entries.rituals.forbiddenParadise=It is the eve of Forbidden Paradise, as the other mages have started calling it. The ritual is built and ready, I simply await the final hour before beginning. To pass the time, I will document the theories in place behind... the ritual I have yet to name. We've been so busy the last few weeks I haven't had a chance to give it a proper name! Well then, that will need to be addressed... I feel Bella should christen it. The work is done here, so I shale hold a small ceremony for the naming before sending off the others to a safe distance away.
aw.entries.rituals.convocationRitual=Convocation of the Damned... As fitting a name as any. Well I promised theories, so I'd best get started. The basic construction of the ritual is an improvement on the ritual of binding utilizing dusk runes and requires a far larger footprint to build(Around a hundred and twenty eight ritual stones are needed, I recall). The ritual then needs three investments; Fifteen million LP to start the process, eight full belljars of assorted reagents must be routed into the master ritual stone in any order(The ritual is designed to have them on the pillars, and in fact does not like working without them. The reagents needed are Incendium(Fire), Aquasalus(Water), Terrae(Earth), Aether(Wind), Sanctus(Holy), Tennebrae(Shadow), Magicales(Arcane), and Potentia(Energy)). Since Vlad's reagents have proven successful in summoning demons with Bella's little setup, this applies more power from the raw reagent on a much larger scale from the ritual in addition to the jumpstart LP offers. The final part requires the portal to be "Set" from a sacrifice. Using a blood altar placed above the master ritual stone and a demon, you set the portal by sacrificing said demon with a dagger of sacrifice after all the reagent has been consumed. If all the steps have been completed correctly, then the portal should complete and a link to Tartarius forged. After that... Well, I have theories but only time will tell if they are more then that. It is time to get some sleep, we have a long day head of us tomorrow... It has been a long day, but all of space hasn't collapsed in on itself after our efforts today. Always a good start, at least. The siege team has returned from a successful mission. An interesting side effect of how the portals work cause all demons who have entered via that portal to vanish, returning to their home since the portal acted as their "Anchor" here. But that isn't the big news. What happened after we opened the portal was something none of us expected: The demons started colonizing. They have been building homes, gathering resources, laying down roads... They have been building a proper encampment. The others have a few tales of their own about the demons, as I was out of commission for most of the day(Activating the ritual took far more out of me then I thought. I will need to start organizing our future plans now that this... Invasion has begun.
aw.entries.rituals.longHaul=It has been a little over a week, we've managed to make several improvements to our equipment using some of the shards retreated from the demons, and said demons have shown no sign of leaving any time soon. Since it was my plan to open the portal, I have volunteered to stay here and watch over the invasion and make sure the demons don't get out of check. Already a teleposer link to my homestead has been created for myself and my apprentices to use, and we have started work an a new home here and Venric's folly. But if I must build a new home here, even a temporary one, I should work on getting a few basic amenities to help ease our lives here while we see how this invasion pans out.
aw.entries.rituals.phantomHandsRitual=My first task was to create a ritual to help deal with all these chests we have laying around, as it is getting to be a nightmare finding things after the fledgling thaumaturge Soaryn paid a visit. Having a ritual take instruction, however, was a little harder then expected. After several experiments, I have discovered a relatively simple method to achieve this using chests(Same rules as most inventories with rituals. Doesn't care what it is, from a chest to a furnace. I will be using chests as an example, as that is easiest.) To begin, I need to cover the logistic foci that allow you to give instruction to the demonic force behind the ritual(Only thing smart enough to handle this task). Adjacent to the master ritual stone can be up to four chests, and these hold the "Input focuses" the ritual checks to know what to pull from and how to pull from it. In laymen terms, you right click on the side of whatever you want the ritual to pull out of and it will follow all the normal rules for extraction for whatever side you clicked on. The output foci need to be placed in chests located at the four nooks in the V's of ritual stones and roughly two blocks away from the master ritual stone. They follow the same rules for marking, right clicking on the side you want the ritual to send items to and following item input rules for the block. However, there is one addition: If you shift click on an inventory, it will not only mark it as a destination but save the item total of the inventory. If the focus has a saved total, it will keep the bound location stacked with that amount for each of it's set items. Note: You don't need the final destination to hold all the items for total binding, you can use a second inventory as a middle man to set the total and then bind the focus to the new inventory without changing the total(Make sure you don't shift right click on the new inventory with the focus as that would reset the amount). Should you wish to remove the item limit, shift right click on an inventory without anything inside. There are a few variations of the output focus, each with subtle differences that impact operation. The red "Default" focus is the standard focus, has no special properties to it. It will ignore the NBT of items, and will check the "Metadata". The blue "ModID" focus instead of checking exact items will instead check the origin and classification of the item and will send anything that matches this. For "Origins and Classifications", I mean anything made my the Industrial craft corporation will be sent to the same location but anything made by their splinter corporations like nuclear control or advanced solar panels will be sent to different locations. The rules behind what belongs to what are archaic at best, but the scribes and scholars at NEI and WAILA keep exact records of these things so seeking their help may be needed if you don't want to rely on trial and error. The dark green "Metadata" focus isn't as exact with metadata, allowing items such as dye and colored glass to have all the subtypes and variations sent to the same location without needed to specify every single one. This also applies to damaged armor, weapons, and tools. The Yellow "NBT" focus is very exact with what it sends, keeping track of the tiny hidden differences such as how much Vis a wand has, what setting a ritual diviner is on, where a spell crystal is bound, ext... It also checks meta data, so keep that in mind. Finally, the purple "Global" focus needs you to set any item to send(What it is doesn't matter), and afterword when the ritual reaches this task it will send anything it possibly can. This is useful as a last resort location for anything you don't want to have sit in a source location but you have not set anything for the ritual to do with it and don't want it to clog up the system. Now then, the ritual itself. As I stated, it will check the adjacent for where to pull items out, what are the source locations. The output foci set where to send any items from the sources, what is the limit on what to send, and all the rules on what it should be sending. To specify this, you need to place one or more output foci in one of the chests to tell it where to send it and how to look at the items, then one or more items after it to specify what it is to be looking for. If the ritual finds another routing focus after the last item in a "Command chain", it will create a now chain following all the same creation rules as the first and acting independently of it. I should note that the ritual will work sequentially, sending all possible items to the first focus location it can while still following all the set rules, then move on to the next focus and doing the same. Additional quirks of using more then one output foci in the same chain: If more then one of the foci have a item limit set, the limits will add together so having four foci with sixteen set as the limit as sixty four. Also,Line truncated
aw.entries.rituals.phantomHandsRitual=My first task was to create a ritual to help deal with all these chests we have laying around, as it is getting to be a nightmare finding things after the fledgling thaumaturge Soaryn paid a visit. Having a ritual take instruction, however, was a little harder then expected. After several experiments, I have discovered a relatively simple method to achieve this using chests(Same rules as most inventories with rituals. Doesn't care what it is, from a chest to a furnace. I will be using chests as an example, as that is easiest.) To begin, I need to cover the logistic foci that allow you to give instruction to the demonic force behind the ritual(Only thing smart enough to handle this task). Adjacent to the master ritual stone can be up to four chests, and these hold the "Input focuses" the ritual checks to know what to pull from and how to pull from it. In laymen terms, you right click on the side of whatever you want the ritual to pull out of and it will follow all the normal rules for extraction for whatever side you clicked on. The output foci need to be placed in chests located at the four nooks in the V's of ritual stones and roughly two blocks away from the master ritual stone. They follow the same rules for marking, right clicking on the side you want the ritual to send items to and following item input rules for the block. However, there is one addition: If you shift click on an inventory, it will not only mark it as a destination but save the item total of the inventory. If the focus has a saved total, it will keep the bound location stacked with that amount for each of it's set items. Note: You don't need the final destination to hold all the items for total binding, you can use a second inventory as a middle man to set the total and then bind the focus to the new inventory without changing the total(Make sure you don't shift right click on the new inventory with the focus as that would reset the amount). Should you wish to remove the item limit, shift right click on an inventory without anything inside. There are a few variations of the output focus, each with subtle differences that impact operation. The red "Default" focus is the standard focus, has no special properties to it. It will ignore the NBT of items, and will check the "Metadata". The blue "ModID" focus instead of checking exact items will instead check the origin and classification of the item and will send anything that matches this. For "Origins and Classifications", I mean anything made my the Industrial craft corporation will be sent to the same location but anything made by their splinter corporations like nuclear control or advanced solar panels will be sent to different locations. The rules behind what belongs to what are archaic at best, but the scribes and scholars at NEI and WAILA keep exact records of these things so seeking their help may be needed if you don't want to rely on trial and error. The dark green "Metadata" focus isn't as exact with metadata, allowing items such as dye and colored glass to have all the subtypes and variations sent to the same location without needed to specify every single one. This also applies to damaged armour, weapons, and tools. The Yellow "NBT" focus is very exact with what it sends, keeping track of the tiny hidden differences such as how much Vis a wand has, what setting a ritual diviner is on, where a spell crystal is bound, ext... It also checks meta data, so keep that in mind. Finally, the purple "Global" focus needs you to set any item to send(What it is doesn't matter), and afterword when the ritual reaches this task it will send anything it possibly can. This is useful as a last resort location for anything you don't want to have sit in a source location but you have not set anything for the ritual to do with it and don't want it to clog up the system. Now then, the ritual itself. As I stated, it will check the adjacent for where to pull items out, what are the source locations. The output foci set where to send any items from the sources, what is the limit on what to send, and all the rules on what it should be sending. To specify this, you need to place one or more output foci in one of the chests to tell it where to send it and how to look at the items, then one or more items after it to specify what it is to be looking for. If the ritual finds another routing focus after the last item in a "Command chain", it will create a now chain following all the same creation rules as the first and acting independently of it. I should note that the ritual will work sequentially, sending all possible items to the first focus location it can while still following all the set rules, then move on to the next focus and doing the same. Additional quirks of using more then one output foci in the same chain: If more then one of the foci have a item limit set, the limits will add together so having four foci with sixteen set as the limit as sixty four. AlsoLine truncated
aw.entries.rituals.anvilRitual=With a way to move items around at hand, it is the next logical step to have a way to refine items automatically without needing to spend hours at a workbench crafting. Cue the creation of "Rhythm of the Beating Anvil", and I must say I'm rather proud of how it turned out. The ritual will look two blocks above the master ritual stone for up to nine inventories, and will use the items it finds in each inventory to try and form a recipe, then pull out of the three input inventories one block down and two out from the master ritual stone and next to the earth ritual stone to form the item and finally push the crafted item into the output chest(It's side is marked by a water ritual stone next to where the inventory goes). For shaped recipes, it will use the output location to determine where is the "Bottom" of the crafting grid is located, and will form recipes using that as a reference point. Now then, how you set a recipe is simple: In the first slot of each used inventory, place any item the recipe needs or leave it empty if the recipe doesn't need anything there(Like the middle for a furnace or chest). Place the used items in the inputs locations, and the ritual will craft up to a stack of the output before stopping. The ritual will then check the second inventory slot of each inventory for a recipe, try to craft it, then repeat for the third, then fourth, then fifth... You get the idea. The more inventory slots you have, the more recipes one ritual can handle. A tip for use: Normally chests don't like having more then one side by side, due to the parts used to merge to chests getting in the way. However, this does not apply if you alternate normal chests and trapped chests. While it will be added post script to the reagent effects, I should mention the effect of Virtus to this ritual as it is rather useful: It will allow the ritual to use the output chest as another input chest. While that doesn't sound useful, it actually allows for reciprocating crafting(An example of this is imputing logs, the ritual turning the logs into planks, planks into sticks, planks and sticks into signs, planks into chests, ect...).
aw.entries.rituals.dawnInk=This "Demon invasion" as we've come to call it has born some interesting fruit, one of which was a gift from Tiberius in the form of a new ink for my rituals. He has requested that I aid him in construction of a sort of "Chamber" and a ritual to power it, but is keeping some of the important details from me for what he says will be a "Big reveal" and would "Spoil the fun".
aw.entries.rituals.symmetryRitual=After a few weeks of design and testing, we have finished the ritual Tiberius wanted in order to achieve what he and the others have dubbed "The Omega state". I'll cover the ritual side of the process, and allow the others to go over the details of it's functions. For this ritual to function, it needs a sealed space in order to fill with reagent like a gas cloud. This reagent is then absorbed by the armor as the ritual merges the souls of the activator and the demon inside the activators bound armor. The problem is containing and controlling this gaseous reagent, as it likes to leak out of the chamber and the ritual can have difficulty "Pushing" the reagent into the armor. To address this, we created Glyphs. But I'm getting ahead of myself. First, I should cover how the ritual determines what is a "Sealed" chamber as it has safe guards to prevent reagent loss. The reagent gas is let lose above the master ritual stone, so the ritual starts checking there. It then starts expanding from there, searching for ways out in every direction, and if it can't get five blocks away from the master ritual stone(This isn't random, beyond five blocks away in any direction and the ritual has difficulty moving all the reagent. Think of it like compressing a gas, it always tries to move down the path of least resistance. To compress it, you need prevent it from being able to escape.) I have also noticed that the reagent, after being released into the chamber, collects on the walls of the chamber instead of staying in the air like tiny low hanging fog. The more surface area, the thinner the fog becomes and the more stable it is, and more stable fog means better value the ritual gets on the conversion process between reagent in the jars and the reagent in the armor, so the more time you have in the Omega state. No matter how you cut it, this chamber is meant to contain reagent for long stretches of time. The more stable the reagent fog is, the more time the ritual has to work and the less reagent wasted. Now then, I mentioned Glyphs earlier. After seeing the chamber in action, Tiberius created a few blocks called "Glyphs" to optimise and add to the champers use. First, the Glyph of Rigid stability was created to further stabilise the reagent fog, being worth roughly double the amount per square meter of space then a normal block. But that's not all he made with the Glyphs, as he discovered an interesting way to bolster the power of the demon using two new Glyphs for a system that resulted in something like enchanting. He mentioned two values, and had created Glyphs for each of them. First was "Enchantability", and it's is buffed by Glyph of the Adept Enchanter. The second value was "Arcane power" with Glyph of Arcane Potential, and functioned like the levels used in normal enchanting. To put how the two values work in layman's terms, Arcane power effects what enchantments are possible to receive, while Enchantability effects the odds of getting a good result. Since this process doesn't use normal enchanting(As the demons in our bound armor react negatively to such methods normally. This process circumvents this limitation by being more demonic in nature and this more... Tolerable to the demons.), it doesn't follow all the normal enchanting rules. For example, after much testing we were able to achieve the equivalent of protection six, fire protection four, and blast protection seven on a single piece of armor so some independent enchants can coexist. And normal power restriction also don't hold ground here, as seen by getting blast protection seven... More testing must be done, but you can see how this has potential. However, I should mention that a chamber can't be entirely enchantment blocks, as the Reagent reacts negatively to the magic used in them. While the reagent must touch the blocks to activate them, any fog that forms on them will destabilise severely causing less time in Omega. I have put in a safety to make sure it can not trigger the process if the stability is below zero, as that would be closer to a bomb then a fog at that point. I believe all the information you need to know before starting has been covered, so we will cover the actual ritual activation. The ritual is a flat platform with four holes, and in these holes you place the belljars of reagent to be used. This ritual doesn't use reagent in the normal fashion, so you don't need to route them into the master ritual stone like normal. With your awakened crystal, activate the ritual with your awakened crystal like normal. After the fifteen million LP fee is paid, it will look for belljars in the four holes for the thirty two thousand reagent cost. Once both are ready, it will check for the activator wearing bound armor and if present it will kick start the process. Within seconds, the transformation happens and you will enter the Omega state.
aw.entries.rituals.symmetryRitual=After a few weeks of design and testing, we have finished the ritual Tiberius wanted in order to achieve what he and the others have dubbed "The Omega state". I'll cover the ritual side of the process, and allow the others to go over the details of it's functions. For this ritual to function, it needs a sealed space in order to fill with reagent like a gas cloud. This reagent is then absorbed by the armour as the ritual merges the souls of the activator and the demon inside the activators bound armour. The problem is containing and controlling this gaseous reagent, as it likes to leak out of the chamber and the ritual can have difficulty "Pushing" the reagent into the armour. To address this, we created Glyphs. But I'm getting ahead of myself. First, I should cover how the ritual determines what is a "Sealed" chamber as it has safe guards to prevent reagent loss. The reagent gas is let lose above the master ritual stone, so the ritual starts checking there. It then starts expanding from there, searching for ways out in every direction, and if it can't get five blocks away from the master ritual stone(This isn't random, beyond five blocks away in any direction and the ritual has difficulty moving all the reagent. Think of it like compressing a gas, it always tries to move down the path of least resistance. To compress it, you need prevent it from being able to escape.) I have also noticed that the reagent, after being released into the chamber, collects on the walls of the chamber instead of staying in the air like tiny low hanging fog. The more surface area, the thinner the fog becomes and the more stable it is, and more stable fog means better value the ritual gets on the conversion process between reagent in the jars and the reagent in the armour, so the more time you have in the Omega state. No matter how you cut it, this chamber is meant to contain reagent for long stretches of time. The more stable the reagent fog is, the more time the ritual has to work and the less reagent wasted. Now then, I mentioned Glyphs earlier. After seeing the chamber in action, Tiberius created a few blocks called "Glyphs" to optimise and add to the champers use. First, the Glyph of Rigid stability was created to further stabilise the reagent fog, being worth roughly double the amount per square meter of space then a normal block. But that's not all he made with the Glyphs, as he discovered an interesting way to bolster the power of the demon using two new Glyphs for a system that resulted in something like enchanting. He mentioned two values, and had created Glyphs for each of them. First was "Enchantability", and it's is buffed by Glyph of the Adept Enchanter. The second value was "Arcane power" with Glyph of Arcane Potential, and functioned like the levels used in normal enchanting. To put how the two values work in layman's terms, Arcane power effects what enchantments are possible to receive, while Enchantability effects the odds of getting a good result. Since this process doesn't use normal enchanting(As the demons in our bound armour react negatively to such methods normally. This process circumvents this limitation by being more demonic in nature and this more... Tolerable to the demons.), it doesn't follow all the normal enchanting rules. For example, after much testing we were able to achieve the equivalent of protection six, fire protection four, and blast protection seven on a single piece of armour so some independent enchants can coexist. And normal power restriction also don't hold ground here, as seen by getting blast protection seven... More testing must be done, but you can see how this has potential. However, I should mention that a chamber can't be entirely enchantment blocks, as the Reagent reacts negatively to the magic used in them. While the reagent must touch the blocks to activate them, any fog that forms on them will destabilise severely causing less time in Omega. I have put in a safety to make sure it can not trigger the process if the stability is below zero, as that would be closer to a bomb then a fog at that point. I believe all the information you need to know before starting has been covered, so we will cover the actual ritual activation. The ritual is a flat platform with four holes, and in these holes you place the belljars of reagent to be used. This ritual doesn't use reagent in the normal fashion, so you don't need to route them into the master ritual stone like normal. With your awakened crystal, activate the ritual with your awakened crystal like normal. After the fifteen million LP fee is paid, it will look for belljars in the four holes for the thirty two thousand reagent cost. Once both are ready, it will check for the activator wearing bound armour and if present it will kick start the process. Within seconds, the transformation happens and you will enter the Omega state.
aw.entries.rituals.stallingRitual=After watching the others toy around with Omega, I realised how limiting the fact that Omega burns reagent to maintain the form can be. With this in mind, I have created a ritual to strengthen the bond between the two souls and remove the passive reagent cost of maintaining Omega. Named "Duet of the Fused Souls", it is able to replace the reagent cost with a high LP cost(Tiberius says it needs five thousand a second to run, far more then most setups can handle. At best, this ritual holds off the inevitable unless you have an extreme generation rate, and even then you will will have a crippled net gain.). You will still lose reagent to replenished your demonic resistance, so long term combat even in range of the ritual will eventually burn through your reagent supply. I should mention that this ritual doesn't have enough power on it's own it work, you need to build it around a tier four beacon. Once it is in place, the ritual can use it as a power source and will allow it to have an active range of roughly double that of the beacon.
aw.entries.rituals.newMoonRitual=Feeling unsatisfied with Focus of the Ellipsoid, I recently restructured the ritual to slightly change it's effect. In doing so, I found inspiration and created my new work "Blood of the new moon". In essence, it moves a small planetoid of blocks from an assigned distance below it to a mirrored distance above it. Magic behind it is slightly more complicated then that, but you aren't here for spell theory 101. To operate the ritual it is fairly simple: Above the master ritual stone needs to be an inventory to give the ritual instructions. The first slot sets the radius of the sphere, but is limited to a maximum thirty two. The second slot defines how far below it looks for blocks and above the sphere is created, with the distance defined being where the centre of the sphere is. As a bit of a safely precaution, the distance must be at least three blocks greater then the radius to prevent harm to the ritual. I should note that if there is an obstruction in the destination, instead of the two blocks being swapped the ritual will "Skip" that area. A final foot note: If this ritual is fed terra reagent, instead of leaving a hole where it pulls blocks it will instead create a block of dirt. A nice option to prevent clean up of a huge hole under a new sky base.
@@ -279,7 +279,7 @@ guide.BloodMagic.entryName.architect.sacrifice=Runes of Sacrifice
guide.BloodMagic.entryName.architect.bloodPack=The Blood Letter's Pack
guide.BloodMagic.entryName.architect.fivePeople=And Then there was Five
guide.BloodMagic.entryName.architect.tier3=The Next Step: Tier 3
guide.BloodMagic.entryName.architect.magicianOrb=The Magician Blood Orb
guide.BloodMagic.entryName.architect.magicianOrb=The Magician's Blood Orb
guide.BloodMagic.entryName.architect.newRune=New Runes
guide.BloodMagic.entryName.architect.magnetism=Sigil of Magnetism
guide.BloodMagic.entryName.architect.phantomBridge=The Phantom Bridge
@@ -287,7 +287,7 @@ guide.BloodMagic.entryName.architect.holding=Sigil of Holding
guide.BloodMagic.entryName.architect.elementalAffinity=Sigil of Elemental Affinity
guide.BloodMagic.entryName.architect.ritualStones=Recreating Ritual Stones
guide.BloodMagic.entryName.architect.bloodLamp=Shining a Blood Lamp
guide.BloodMagic.entryName.architect.boundArmour=Bound Armor
guide.BloodMagic.entryName.architect.boundArmour=Bound Armour
guide.BloodMagic.entryName.architect.sanguineArmour=Sanguine Robes
guide.BloodMagic.entryName.architect.soulSuppress=Suppressing the Soul
guide.BloodMagic.entryName.architect.ritualDiviner=The Ritual Diviner
@@ -305,7 +305,7 @@ guide.BloodMagic.entryName.architect.fieldTrip=A Field Trip
guide.BloodMagic.entryName.architect.bindingKey=The Key of Binding
guide.BloodMagic.entryName.architect.tier5Altar=The Trials of a Tier 5 Altar
guide.BloodMagic.entryName.architect.priceOfPower=The Price of Power
guide.BloodMagic.entryName.architect.demonicOrb=The Archmage Orb
guide.BloodMagic.entryName.architect.demonicOrb=The Archmage's Orb
guide.BloodMagic.entryName.architect.energyBazooka=Power of the Energy Bazooka
guide.BloodMagic.entryName.architect.accelerationRune=Acceleration Runes
guide.BloodMagic.entryName.architect.harvest=The Harvest Godess