mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e4e8abb57 | ||
|
|
0c361f2482 | ||
|
|
d299b0a1b0 | ||
|
|
927e531af8 | ||
|
|
395f258893 | ||
|
|
56a268bcda | ||
|
|
329016558a | ||
|
|
dc710016aa | ||
|
|
78e3ca73a5 | ||
|
|
1c2a3049b6 | ||
|
|
0f380724f9 | ||
|
|
749b205a26 | ||
|
|
e0505b0726 | ||
|
|
c9272dc1c5 | ||
|
|
a1e224cf53 | ||
|
|
63a294bd54 | ||
|
|
447e8f5831 | ||
|
|
43925d2a3a | ||
|
|
0e3fd9f00a | ||
|
|
e234b53bfc | ||
|
|
10a36f6413 | ||
|
|
951367919f | ||
|
|
7fee341e50 | ||
|
|
f686f6f827 | ||
|
|
77969bb205 | ||
|
|
00c9c9bf49 | ||
|
|
62efdaf29d | ||
|
|
6776676ef2 | ||
|
|
431bc8fb41 | ||
|
|
e40bde9c84 | ||
|
|
421478e6fa | ||
|
|
c99578e04d | ||
|
|
9b7b10e5c3 | ||
|
|
fc58f5346c | ||
|
|
aec32b9149 | ||
|
|
6f45c3efae | ||
|
|
acfbc0f8ff | ||
|
|
4f9e85d056 | ||
|
|
4ec1e7271a | ||
|
|
708bbb5512 | ||
|
|
981305290a | ||
|
|
b6284e20dc | ||
|
|
2026024920 | ||
|
|
fe7b382b6a | ||
|
|
9430a0a6dd | ||
|
|
22d703da79 | ||
|
|
306aa90a28 | ||
|
|
3b2b31f733 | ||
|
|
1544c1bf0d | ||
|
|
88002582b9 | ||
|
|
26580c10b3 | ||
|
|
f3e594ad7f | ||
|
|
8d891552e9 | ||
|
|
99aab04584 | ||
|
|
96886c1125 | ||
|
|
860c66e081 | ||
|
|
e2fef45a90 | ||
|
|
5446f097c5 | ||
|
|
2ba0beb8c9 | ||
|
|
a0e4894197 | ||
|
|
ee083ddf64 | ||
|
|
8e6d033785 | ||
|
|
8515558404 | ||
|
|
167d2104ed | ||
|
|
32666ac5ff | ||
|
|
49b1d051e8 | ||
|
|
65acf4c4b0 | ||
|
|
c89a320168 | ||
|
|
28d7b599f8 | ||
|
|
8bb7b1dd9b | ||
|
|
f6e054ccb0 | ||
|
|
7de1a553bc | ||
|
|
ba7de9e090 | ||
|
|
291218c2aa | ||
|
|
077af85b4b | ||
|
|
efdfec3945 | ||
|
|
6be1470620 | ||
|
|
df7a14a323 | ||
|
|
b6400fca87 | ||
|
|
71e82d0b6e | ||
|
|
72ba898f39 | ||
|
|
9d18a56cc1 | ||
|
|
2c71765a1b | ||
|
|
fc86b1449c | ||
|
|
548dc50ef5 | ||
|
|
a7f4a16763 | ||
|
|
503bb8f779 | ||
|
|
6acfde965a | ||
|
|
b7460516e8 | ||
|
|
782096f8eb | ||
|
|
b79692d27f | ||
|
|
73ae391e8a | ||
|
|
1f5a267be0 | ||
|
|
46de8cb05c | ||
|
|
8799a637f8 | ||
|
|
485e462a83 | ||
|
|
47f5e1e594 | ||
|
|
1546426f30 | ||
|
|
4acfe14b78 | ||
|
|
86d7ea0370 | ||
|
|
bbf0e2aeb2 | ||
|
|
22f1bd3846 | ||
|
|
84545955aa | ||
|
|
a6f1919f52 | ||
|
|
097c0c62e4 | ||
|
|
c04775398a | ||
|
|
62789ce20b | ||
|
|
8685e1fd72 | ||
|
|
6b016444ba | ||
|
|
1552b81459 | ||
|
|
5e6c4e848c | ||
|
|
9f2d0b5241 | ||
|
|
e75e9f778a | ||
|
|
6bd083125a | ||
|
|
09fbb5574b | ||
|
|
559e2439b2 | ||
|
|
ef17235ae5 | ||
|
|
efe1e6044a | ||
|
|
14a4825e33 | ||
|
|
f5791ff631 | ||
|
|
ead07b752b | ||
|
|
d821098d4e | ||
|
|
8762c24331 | ||
|
|
a1f62e0db6 | ||
|
|
242312bee5 | ||
|
|
c0b4b797c8 | ||
|
|
bd584c6d52 | ||
|
|
ac50cfc691 | ||
|
|
7e607b4c58 | ||
|
|
e629d04310 | ||
|
|
52b4415e8c | ||
|
|
3f9641b861 | ||
|
|
1fd6ac323b | ||
|
|
38f2dbb395 | ||
|
|
84e41cc920 | ||
|
|
5bfdabb5f6 | ||
|
|
2e95450cf0 | ||
|
|
8ff0421f55 | ||
|
|
ba0a0e3357 | ||
|
|
222ad1645e | ||
|
|
7b48d96988 | ||
|
|
baa2336b58 | ||
|
|
1341be8f49 | ||
|
|
89eaa78e51 | ||
|
|
a7d6f8e59b | ||
|
|
6c18cd1bee | ||
|
|
fcddb56254 | ||
|
|
4a185d64cb | ||
|
|
e14b1f23c9 | ||
|
|
0b70f3ed51 | ||
|
|
1c8ceacb7f | ||
|
|
3037e0f583 | ||
|
|
269eff14d3 | ||
|
|
ff2f889c76 | ||
|
|
3218730853 | ||
|
|
e5662ec707 | ||
|
|
6376f78aa5 |
No files matched your search
Executable
+38
@@ -0,0 +1,38 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
import zipfile
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument("source")
|
||||||
|
parser.add_argument("destination")
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[2]
|
||||||
|
|
||||||
|
SOURCE_DIR = ROOT / "raw" / args.source
|
||||||
|
OUTPUT_ZIP = ROOT / "src" / "main" / "resources" / "assets" / "alchemicalwizardry" / args.destination
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
if not SOURCE_DIR.is_dir():
|
||||||
|
raise SystemExit(f"Missing source directory: {SOURCE_DIR}")
|
||||||
|
|
||||||
|
OUTPUT_ZIP.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
files = sorted(p for p in SOURCE_DIR.rglob("*") if p.is_file())
|
||||||
|
|
||||||
|
with zipfile.ZipFile(OUTPUT_ZIP, "w") as zf:
|
||||||
|
for file in files:
|
||||||
|
info = zipfile.ZipInfo(file.relative_to(SOURCE_DIR).as_posix(), (1980, 1, 1, 0, 0, 0))
|
||||||
|
info.create_system = 3
|
||||||
|
info.compress_type = zipfile.ZIP_DEFLATED
|
||||||
|
info.external_attr = 0o100644 << 16
|
||||||
|
zf.writestr(info, file.read_bytes(), compresslevel=9)
|
||||||
|
|
||||||
|
print(f"Compressed {len(files)} file(s) into {OUTPUT_ZIP.relative_to(ROOT)}")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
name: Compress Default Meteor Configs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths: [ raw/meteor-reagents/* ]
|
||||||
|
workflow_dispatch: { }
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
meteors:
|
||||||
|
name: Compress Default Meteor Reagent Configs
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Compress Default Meteor Reagent Configs
|
||||||
|
run: python .github/scripts/compress.py meteor-reagents meteors/reagents.zip
|
||||||
|
- name: Create PR
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
title: Compress Default Meteor Reagent Configs
|
||||||
|
body: Automated changes by Compress Default Meteor Reagent Configs workflow.
|
||||||
|
commit-message: Compress Default Meteor Reagent Configs
|
||||||
|
delete-branch: true
|
||||||
|
branch: meteor-reagents-configs/patch
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
name: Compress Default Meteor Configs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths: [ raw/meteors/* ]
|
||||||
|
workflow_dispatch: { }
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
meteors:
|
||||||
|
name: Compress Default Meteor Configs
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Compress Default Meteor Configs
|
||||||
|
run: python .github/scripts/compress.py meteors meteors/meteors.zip
|
||||||
|
- name: Create PR
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
title: Compress Default Meteor Configs
|
||||||
|
body: Automated changes by Compress Default Meteor Configs workflow.
|
||||||
|
commit-message: Compress Default Meteor Configs
|
||||||
|
delete-branch: true
|
||||||
|
branch: meteor-configs/patch
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
name: Compress Demon City Buildings
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths: [ raw/buildings/*.json ]
|
||||||
|
workflow_dispatch: { }
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildings:
|
||||||
|
name: Compress Demon City Buildings
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Compress Demon City Buildings
|
||||||
|
run: python .github/scripts/compress.py buildings schematics/building/buildings.zip
|
||||||
|
- name: Create PR
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
title: Compress Demon City Buildings
|
||||||
|
body: Automated changes by Compress Demon City Buildings workflow.
|
||||||
|
commit-message: Compress Demon City Buildings
|
||||||
|
delete-branch: true
|
||||||
|
branch: demon-city-buildings/patch
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
name: Optimize images
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
optimize-images:
|
||||||
|
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||||
|
secrets: inherit
|
||||||
@@ -27,3 +27,5 @@ whitelist.json
|
|||||||
*.iws
|
*.iws
|
||||||
src/main/resources/mixins.*.json
|
src/main/resources/mixins.*.json
|
||||||
*.bat
|
*.bat
|
||||||
|
*.sh
|
||||||
|
layout.json
|
||||||
@@ -1,117 +1,111 @@
|
|||||||
#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)
|
|
||||||
|
|
||||||
##Information
|
## Fork
|
||||||
|
|
||||||
|
This mod was forked by the GT:NH Team to continue the development of the 1.7.10 branch.
|
||||||
|
|
||||||
|
## 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!
|
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.
|
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.
|
||||||
|
|
||||||
##Links
|
## Upstream Blood Magic Links
|
||||||
|
* Github: [Blood Magic](https://github.com/WayofTime/BloodMagic)
|
||||||
* Twitter: [@WayofTime](https://twitter.com/WayofTime)
|
* Twitter: [@WayofTime](https://twitter.com/WayofTime)
|
||||||
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic)
|
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic). Most information is still relevant for this fork.
|
||||||
* [Minecraft Forum Thread](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1290532-bm)
|
* [Minecraft Forum Thread](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1290532-bm)
|
||||||
* [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic)
|
* [CurseForge](https://www.curseforge.com/minecraft/mc-mods/blood-magic)
|
||||||
* [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J7SNY7L82PQ82)
|
* [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)
|
||||||
|
|
||||||
##Issue Reporting
|
## 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)
|
||||||
|
|
||||||
Please include the following:
|
## Issue Reporting
|
||||||
|
|
||||||
* Minecraft version
|
**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).
|
||||||
* 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.
|
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 `gradlew setupDevWorkspace` then (if you use Eclipse) `gradlew eclipse` or (if you use IDEA) `gradlew idea`.
|
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 link [MineTweaker](http://minetweaker3.powerofbytes.com/) as a dependency.
|
3. This process will setup [Forge](http://www.minecraftforge.net/forum/), your workspace, and all dependencies.
|
||||||
4. Open the project in your IDE of choice.
|
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).
|
[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 me (WayofTime), it is not guaranteed that you will get support.
|
### 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.
|
||||||
|
|
||||||
####How to make a custom build:
|
#### How to make a custom build:
|
||||||
|
|
||||||
1. Clone directly from this repository to your desktop.
|
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`
|
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 `deobf`, `sources`, and `javadoc` jars.
|
3. Once it completes, your new build will be found at `../build/libs/BloodMagic-*.jar`. You can ignore the `api`, `dev`, and `sources` jars.
|
||||||
|
|
||||||
##License
|
## License
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Blood Magic: AlchemicalWizardry by WayofTime is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
|
Blood Magic: Alchemical Wizardry 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 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 you might as well get to it!
|
||||||
|
|
||||||
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!
|
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.
|
||||||
|
|
||||||
2. Download the latest version of BloodMagic from [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic).
|
## FAQ
|
||||||
|
|
||||||
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`.
|
**Q**: What has changed in the GT:NH fork compared to the final 1.7.10 version released by WayofTime?
|
||||||
|
|
||||||
##FAQ
|
**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!
|
||||||
|
|
||||||
**Q**: My weak blood orb doesn't show my current LP! Fix it please.
|
**Q**: My weak blood orb doesn't show my current LP! Fix it please.
|
||||||
|
|
||||||
**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!
|
**A**: You need a Divination Sigil to view your essence. It does other things, too, so it is worth it!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Q**: Why am I dying so much?
|
**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, 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.
|
**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.
|
||||||
|
|
||||||
**Q**: Waffles?
|
**Q**: Waffles?
|
||||||
|
|
||||||
**A**: 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 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!
|
**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.
|
||||||
|
|
||||||
**Q**: Isn't that armour ...
|
**Q**: Isn't that armour ...
|
||||||
|
|
||||||
**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!
|
**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).
|
[Proof](https://twitter.com/Pahimar/status/453590600689139712), [Archive](https://web.archive.org/web/20191208030719/https://twitter.com/Pahimar/status/453590600689139712).
|
||||||
|
|
||||||
**Q**: My game is crashing with the latest TC4!
|
**Q**: I've just had an amazing idea! Why not add an in-game book just like the Thaumonomicon?
|
||||||
|
|
||||||
**A**: To help stop this, remove the TC4 API from my Blood Magic zip file (if it is there). It should solve things.
|
**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.
|
||||||
|
|
||||||
**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!
|
**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 it 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 the way it looks 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?
|
||||||
|
|
||||||
**Q**: When I respawn, I appear to only come back with 3 hearts. 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?
|
||||||
|
|
||||||
|
|
||||||
**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.
|
|
||||||
+2
-1509
File diff suppressed because it is too large.
Load diff
+13
-9
@@ -23,20 +23,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:waila:1.6.0:dev")
|
api("com.github.GTNewHorizons:waila:1.19.34:dev")
|
||||||
api("com.github.GTNewHorizons:NotEnoughItems:2.3.63-GTNH:dev")
|
api("com.github.GTNewHorizons:NotEnoughItems:2.8.152-GTNH:dev")
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.43.111:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:GTNHLib:0.11.52:dev") {transitive = false }
|
||||||
|
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.54.189:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Botania:1.9.23-GTNH:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:Botania:1.13.36-GTNH:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.6.10:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.38:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.3.4:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.7.15:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Chisel:2.11.3-GTNH:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:Chisel:2.17.33-GTNH:api") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.8:dev") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.2.12:dev") {transitive = false }
|
|
||||||
|
|
||||||
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5: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("curse.maven:guide-api-228832:2287185") {transitive = false }
|
||||||
|
compileOnly("curse.maven:endlessids-665730:7585931") {transitive = false }
|
||||||
|
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.45:dev")
|
||||||
|
|
||||||
|
compileOnly("com.ruling_0:MaterialLib:0.24.0-mu:dev") {transitive = false }
|
||||||
}
|
}
|
||||||
+204
-29
@@ -1,68 +1,243 @@
|
|||||||
modName = Blood Magic: Alchemical Wizardry
|
# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
|
||||||
|
# LOCAL to test local config updates.
|
||||||
|
gtnh.settings.blowdryerTag = 0.2.0
|
||||||
|
|
||||||
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
|
# Human-readable mod name, available for mcmod.info population.
|
||||||
|
modName = Blood Magic\: Alchemical Wizardry
|
||||||
|
|
||||||
|
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
|
||||||
|
# Conventionally lowercase.
|
||||||
modId = AWWayofTime
|
modId = AWWayofTime
|
||||||
|
|
||||||
|
# Root package of the mod, used to find various classes in other properties,
|
||||||
|
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||||
modGroup = WayofTime.alchemicalWizardry
|
modGroup = WayofTime.alchemicalWizardry
|
||||||
|
|
||||||
# WHY is there no version field?
|
# Whether to use modGroup as the maven publishing group.
|
||||||
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
|
# When false, com.github.GTNewHorizons is used.
|
||||||
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
|
useModGroupForPublishing = false
|
||||||
|
|
||||||
# Will update your build.gradle automatically whenever an update is available
|
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||||
autoUpdateBuildScript = false
|
autoUpdateBuildScript = false
|
||||||
|
|
||||||
|
# Version of Minecraft to target
|
||||||
minecraftVersion = 1.7.10
|
minecraftVersion = 1.7.10
|
||||||
|
|
||||||
|
# Version of Minecraft Forge to target
|
||||||
forgeVersion = 10.13.4.1614
|
forgeVersion = 10.13.4.1614
|
||||||
|
|
||||||
# Select a username for testing your mod with breakpoints. You may leave this empty for a random user name each time you
|
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
|
||||||
# restart Minecraft in development. Choose this dependent on your mod:
|
channel = stable
|
||||||
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
|
|
||||||
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
|
|
||||||
developmentEnvironmentUserName = "Developer"
|
|
||||||
|
|
||||||
|
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
|
||||||
|
mappingsVersion = 12
|
||||||
|
|
||||||
# Generate a class with String fields for the mod id, name, version and group name named with the fields below
|
# Defines other MCP mappings for dependency deobfuscation.
|
||||||
generateGradleTokenClass =WayofTime.alchemicalWizardry.Tags
|
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
||||||
gradleTokenModId =
|
|
||||||
gradleTokenModName =
|
# Select a default username for testing your mod. You can always override this per-run by running
|
||||||
|
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||||
|
developmentEnvironmentUserName = Developer
|
||||||
|
|
||||||
|
# Enables modern Java syntax support. Valid values:
|
||||||
|
# - false: No modern syntax, Java 8 only
|
||||||
|
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
|
||||||
|
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
|
||||||
|
# - modern: Native modern Java bytecode, no downgrading
|
||||||
|
enableModernJavaSyntax = jvmDowngrader
|
||||||
|
|
||||||
|
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
|
||||||
|
# and should *not* be used in most situations. -1 disables this.
|
||||||
|
# forceToolchainVersion = -1
|
||||||
|
|
||||||
|
# Target JVM version for JVM Downgrader bytecode downgrading.
|
||||||
|
# Only used when enableModernJavaSyntax = jvmDowngrader
|
||||||
|
downgradeTargetVersion = 8
|
||||||
|
|
||||||
|
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
|
||||||
|
# Classes will be available in META-INF/versions/N/ for each version N in this list.
|
||||||
|
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
|
||||||
|
jvmDowngraderMultiReleaseVersions = 25
|
||||||
|
|
||||||
|
# Specifies how JVM Downgrader API stubs are provided. Options:
|
||||||
|
# - shade: Shade minimized stubs into the jar
|
||||||
|
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
|
||||||
|
# - external: Another dependency provides stubs (no constraint, no warning)
|
||||||
|
# - (empty): Warning reminding you to configure stubs
|
||||||
|
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
|
||||||
|
jvmDowngraderStubsProvider = gtnhlib
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||||
|
generateGradleTokenClass = WayofTime.alchemicalWizardry.Tags
|
||||||
|
|
||||||
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
gradleTokenVersion = VERSION
|
gradleTokenVersion = VERSION
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod ID replacement token.
|
||||||
|
gradleTokenModId =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod name replacement token.
|
||||||
|
gradleTokenModName =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod Group replacement token.
|
||||||
gradleTokenGroupName =
|
gradleTokenGroupName =
|
||||||
|
|
||||||
# [DEPRECATED]
|
# [DEPRECATED]
|
||||||
# Multiple source files can be defined here by providing a comma-seperated list: Class1.java,Class2.java,Class3.java
|
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
|
||||||
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||||
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
||||||
# version in @Mod([...], version = VERSION, [...])
|
# version in @Mod([...], version = VERSION, [...]).
|
||||||
# Leave these properties empty to skip individual token replacements
|
# Leave these properties empty to skip individual token replacements.
|
||||||
replaceGradleTokenInFile =
|
replaceGradleTokenInFile =
|
||||||
|
|
||||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
|
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
||||||
# leave this property empty.
|
# leave this property empty.
|
||||||
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
|
# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
|
||||||
apiPackage = api
|
apiPackage = api
|
||||||
|
|
||||||
# Specify the configuration file for Forge's access transformers here. I must be placed into /src/main/resources/META-INF/
|
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
||||||
# Example value: mymodid_at.cfg
|
# There can be multiple files in a space-separated list.
|
||||||
accessTransformersFile =
|
# Example value: mymodid_at.cfg nei_at.cfg
|
||||||
|
accessTransformersFile = NEI_at.cfg
|
||||||
|
|
||||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||||
usesMixins = false
|
usesMixins = false
|
||||||
|
|
||||||
|
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||||
|
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||||
|
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||||
|
separateMixinSourceSet =
|
||||||
|
|
||||||
|
# Adds some debug arguments like verbose output and class export.
|
||||||
|
usesMixinDebug = false
|
||||||
|
|
||||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||||
mixinPlugin =
|
mixinPlugin =
|
||||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
|
||||||
|
# Specify the package that contains all of your Mixins. The package must exist or
|
||||||
|
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
|
||||||
|
# it must match with this or the build will fail.
|
||||||
mixinsPackage =
|
mixinsPackage =
|
||||||
|
|
||||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||||
# This parameter is for legacy compatability only
|
# This parameter is for legacy compatibility only
|
||||||
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
|
# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
|
||||||
coreModClass =
|
coreModClass =
|
||||||
|
|
||||||
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
||||||
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
||||||
containsMixinsAndOrCoreModOnly = false
|
containsMixinsAndOrCoreModOnly = false
|
||||||
|
|
||||||
# If enabled, you may use 'shadowImplementation' for dependencies. They will be integrated in your jar. It is your
|
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
|
||||||
# responsibility check the licence and request permission for distribution, if required.
|
forceEnableMixins = false
|
||||||
|
|
||||||
|
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
|
||||||
|
# responsibility to check the license and request permission for distribution if required.
|
||||||
usesShadowedDependencies = false
|
usesShadowedDependencies = false
|
||||||
|
|
||||||
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
|
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
|
||||||
|
# their own classes, making the minimization unreliable.
|
||||||
|
minimizeShadowedDependencies = true
|
||||||
|
|
||||||
|
# If disabled, won't rename the shadowed classes.
|
||||||
|
relocateShadowedDependencies = true
|
||||||
|
|
||||||
|
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||||
|
includeWellKnownRepositories = true
|
||||||
|
|
||||||
|
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||||
|
# list of strings, with the acceptable keys being(case does not matter):
|
||||||
|
# cursemaven
|
||||||
|
# modrinth
|
||||||
|
excludeWellKnownRepositories =
|
||||||
|
|
||||||
|
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||||
|
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||||
|
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||||
|
usesMavenPublishing = true
|
||||||
|
|
||||||
|
# Maven repository to publish the mod to.
|
||||||
|
# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
|
||||||
|
|
||||||
|
# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
|
||||||
|
#
|
||||||
|
# The project's ID on Modrinth. Can be either the slug or the ID.
|
||||||
|
# Leave this empty if you don't want to publish to Modrinth.
|
||||||
|
modrinthProjectId =
|
||||||
|
|
||||||
|
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
|
||||||
|
# Syntax: scope1-type1:name1;scope2-type2:name2;...
|
||||||
|
# Where scope can be one of [required, optional, incompatible, embedded],
|
||||||
|
# type can be one of [project, version],
|
||||||
|
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||||
|
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||||
|
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||||
|
modrinthRelations =
|
||||||
|
|
||||||
|
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||||
|
#
|
||||||
|
# The project's numeric ID on CurseForge. You can find this in the About Project box.
|
||||||
|
# Leave this empty if you don't want to publish on CurseForge.
|
||||||
|
curseForgeProjectId =
|
||||||
|
|
||||||
|
# Comma-separated supported CurseForge environments: client, server (case-insensitive).
|
||||||
|
# Use client or server for mods that only support one environment. Defaults to client,server.
|
||||||
|
# These tags describe where the mod can run, not whether installation is required on both sides.
|
||||||
|
curseForgeEnvironments = client,server
|
||||||
|
|
||||||
|
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
|
||||||
|
# Syntax: type1:name1;type2:name2;...
|
||||||
|
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
||||||
|
# and the name is the CurseForge project slug of the other mod.
|
||||||
|
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
|
||||||
|
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||||
|
curseForgeRelations =
|
||||||
|
|
||||||
|
# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
|
||||||
# projects. New projects should not use this parameter.
|
# projects. New projects should not use this parameter.
|
||||||
customArchiveBaseName = BloodMagic
|
customArchiveBaseName = BloodMagic
|
||||||
|
|
||||||
|
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
|
||||||
|
# runClientWorkingDirectory = run/client
|
||||||
|
|
||||||
|
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
|
||||||
|
# runServerWorkingDirectory = run/server
|
||||||
|
|
||||||
|
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||||
|
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||||
|
# The check is ONLY performed if the version is a git tag.
|
||||||
|
# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
|
||||||
|
# versionPattern =
|
||||||
|
|
||||||
|
# Uncomment to prevent the source code from being published.
|
||||||
|
# noPublishedSources = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Spotless checks.
|
||||||
|
# This should only be uncommented to keep it easier to sync with upstream/other forks.
|
||||||
|
# That is, if there is no other active fork/upstream, NEVER change this.
|
||||||
|
# disableSpotless = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Checkstyle checks (currently wildcard import check).
|
||||||
|
disableCheckstyle = true
|
||||||
|
|
||||||
|
# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
|
||||||
|
# (force use delegated build).
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
|
||||||
|
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
|
||||||
|
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
|
||||||
|
# ideaOverrideBuildType = idea
|
||||||
|
|
||||||
|
# Whether IDEA should run spotless checks when pressing the Build button.
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# ideaCheckSpotlessOnBuild = true
|
||||||
|
|
||||||
|
# Non-GTNH properties
|
||||||
|
org.gradle.configuration-cache = true
|
||||||
|
org.gradle.parallel = true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#This file is generated by updateDaemonJvm
|
||||||
|
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||||
|
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||||
|
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||||
|
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||||
|
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9064f22734b42ac03e85df04b632e167/redirect
|
||||||
|
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/4d0277c49991306ac78048580fe34bcf/redirect
|
||||||
|
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||||
|
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||||
|
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a9fa3b809e484a1e1ac4308a5dda661a/redirect
|
||||||
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/aa99913fa6d767d899ffc96082da01ca/redirect
|
||||||
|
toolchainVersion=25
|
||||||
Vendored
BIN
Binary file not shown.
+4
-1
@@ -1,6 +1,9 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
retries=0
|
||||||
|
retryBackOffMs=500
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015-2021 the original authors.
|
# Copyright © 2015 the original authors.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -15,10 +15,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Gradle start up script for POSIX generated by Gradle.
|
# gradlew start up script for POSIX generated by Gradle.
|
||||||
#
|
#
|
||||||
# Important for running:
|
# Important for running:
|
||||||
#
|
#
|
||||||
@@ -27,7 +29,7 @@
|
|||||||
# bash, then to run this script, type that shell name before the whole
|
# bash, then to run this script, type that shell name before the whole
|
||||||
# command line, like:
|
# command line, like:
|
||||||
#
|
#
|
||||||
# ksh Gradle
|
# ksh gradlew
|
||||||
#
|
#
|
||||||
# Busybox and similar reduced shells will NOT work, because this script
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
# requires all of these POSIX shell features:
|
# requires all of these POSIX shell features:
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@@ -83,10 +85,8 @@ done
|
|||||||
# This is normally unused
|
# This is normally unused
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@@ -114,7 +114,6 @@ case "$( uname )" in #(
|
|||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP* ) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
@@ -133,10 +132,13 @@ location of your Java installation."
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVACMD=java
|
JAVACMD=java
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
@@ -144,7 +146,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
max*)
|
max*)
|
||||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC2039,SC3045
|
||||||
MAX_FD=$( ulimit -H -n ) ||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
warn "Could not query maximum file descriptor limit"
|
warn "Could not query maximum file descriptor limit"
|
||||||
esac
|
esac
|
||||||
@@ -152,7 +154,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|||||||
'' | soft) :;; #(
|
'' | soft) :;; #(
|
||||||
*)
|
*)
|
||||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC2039,SC3045
|
||||||
ulimit -n "$MAX_FD" ||
|
ulimit -n "$MAX_FD" ||
|
||||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
esac
|
esac
|
||||||
@@ -169,7 +171,6 @@ fi
|
|||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
if "$cygwin" || "$msys" ; then
|
if "$cygwin" || "$msys" ; then
|
||||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
||||||
|
|
||||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
|
|
||||||
@@ -197,16 +198,19 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
# double quotes to make sure that they get re-expanded; and
|
|
||||||
# * put everything else in single quotes, so that it's not re-expanded.
|
# Collect all arguments for the java command:
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
|
# and any embedded shellness will be escaped.
|
||||||
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
org.gradle.wrapper.GradleWrapperMain \
|
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
|
|||||||
Vendored
+24
-34
@@ -13,16 +13,18 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem gradlew startup script for Windows
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
setlocal EnableExtensions
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@@ -43,13 +45,13 @@ set JAVA_EXE=java.exe
|
|||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if %ERRORLEVEL% equ 0 goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
@@ -57,36 +59,24 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute gradlew
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||||
|
@rem which allows us to clear the local environment before executing the java command
|
||||||
|
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||||
|
|
||||||
:end
|
:exitWithErrorLevel
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||||
|
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
set EXIT_CODE=%ERRORLEVEL%
|
|
||||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
||||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
||||||
exit /b %EXIT_CODE%
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,529 @@
|
|||||||
|
{
|
||||||
|
"name": "LavaLight",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 1,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:iron_bars",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:lava",
|
||||||
|
"metadata": [
|
||||||
|
10,
|
||||||
|
10,
|
||||||
|
10,
|
||||||
|
10
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:lava",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_slab",
|
||||||
|
"metadata": [
|
||||||
|
5,
|
||||||
|
5,
|
||||||
|
5,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:lava",
|
||||||
|
"metadata": [
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:lava",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,908 @@
|
|||||||
|
{
|
||||||
|
"name": "MedHouse1",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 1,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "AWWayofTime:blockDemonChest",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:grass",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:iron_bars",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
5,
|
||||||
|
4,
|
||||||
|
6,
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_slab",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 3,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:glass",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 4,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,976 @@
|
|||||||
|
{
|
||||||
|
"name": "MossyCellar1",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 0,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:mossy_cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone_wall",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone_wall",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "AWWayofTime:blockDemonChest",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:torch",
|
||||||
|
"metadata": [
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:mossy_cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:torch",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stained_glass",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:ladder",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": -1,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:trapdoor",
|
||||||
|
"metadata": [
|
||||||
|
10,
|
||||||
|
11,
|
||||||
|
9,
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,632 @@
|
|||||||
|
{
|
||||||
|
"name": "QuickDemonStructure1",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 0,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:mossy_cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone_wall",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:cobblestone_wall",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:mossy_cobblestone",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:redstone_wire",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
7,
|
||||||
|
6,
|
||||||
|
5,
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:wooden_door",
|
||||||
|
"metadata": [
|
||||||
|
3,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:wooden_door",
|
||||||
|
"metadata": [
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:redstone_torch",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_stairs",
|
||||||
|
"metadata": [
|
||||||
|
5,
|
||||||
|
4,
|
||||||
|
6,
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,598 @@
|
|||||||
|
{
|
||||||
|
"name": "SmallHouse1",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 1,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "AWWayofTime:blockDemonChest",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:iron_bars",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
5,
|
||||||
|
4,
|
||||||
|
6,
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_slab",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
7,
|
||||||
|
6,
|
||||||
|
5,
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:glass",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,633 @@
|
|||||||
|
{
|
||||||
|
"name": "SmallHouse2",
|
||||||
|
"doorX": 0,
|
||||||
|
"doorZ": 0,
|
||||||
|
"doorY": 0,
|
||||||
|
"buildingTier": 1,
|
||||||
|
"buildingType": 0,
|
||||||
|
"blockList": [
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
3,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:iron_bars",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 2,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_slab",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": -2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_slab",
|
||||||
|
"metadata": [
|
||||||
|
13,
|
||||||
|
13,
|
||||||
|
13,
|
||||||
|
13
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
7,
|
||||||
|
6,
|
||||||
|
5,
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": -1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 1,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stonebrick",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 0,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:glass",
|
||||||
|
"metadata": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 0,
|
||||||
|
"yCoord": 4,
|
||||||
|
"zCoord": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 1,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blockid": "minecraft:stone_brick_stairs",
|
||||||
|
"metadata": [
|
||||||
|
5,
|
||||||
|
4,
|
||||||
|
6,
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xCoord": 2,
|
||||||
|
"yCoord": 3,
|
||||||
|
"zCoord": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,99 @@
|
|||||||
|
#############################################
|
||||||
|
### Blood Magic Meteor Reagent Config Guide ###
|
||||||
|
#############################################
|
||||||
|
|
||||||
|
The butter for your bread.
|
||||||
|
|
||||||
|
This file and the other default meteor reagent configs (crystallos.json, incendium.json, orbisTerrae.json, tenebrae.json, and terrae.json) are generated when the folder config/BloodMagic/meteors/reagents/ is not present. Delete that folder if you want to regen these files with default values.
|
||||||
|
|
||||||
|
Remember that you need to use the Alchemic Calcinator to turn the reagent items into AR to put them into the Master Ritual Stone for them to have any effect. Also remember that only up to three different reagents may be in a Master Ritual Stone at a time. Try the Alchemic Segmenter to make dealing with multiple reagents easier.
|
||||||
|
|
||||||
|
If you are a player, feel free to delete this file. Nothing should fail to load for any of these configs like might happen with the default meteor ones.
|
||||||
|
|
||||||
|
If you are a pack creator, the instructions on how to create your own custom meteor reagent effects are below.
|
||||||
|
|
||||||
|
##############################################
|
||||||
|
### Custom Meteor Reagent File Specification ###
|
||||||
|
##############################################
|
||||||
|
------------------------------------------------
|
||||||
|
reagentName.json: These config files have more strict naming than the ones for meteors. You MUST name your file reagentName.json (using the reagent's internal name, case sensitive) to define how that reagent acts when summoning a meteor.
|
||||||
|
|
||||||
|
The easiest way to find a reagent's internal name is to look up crystal belljars in NEI and check their tooltips.
|
||||||
|
This config system *should* be able to account for custom reagents that you make if you register them in ReagentRegistry, but that is well beyond the scope of this guide.
|
||||||
|
|
||||||
|
Your file must contain a valid JSON object, and the properties within will define that reagent's characteristics when used to summon a meteor.
|
||||||
|
If you don't know how to read/write JSON, look at the default files as a reference or check out https://www.w3schools.com/js/js_json_intro.asp or any other online tutorial.
|
||||||
|
|
||||||
|
Reagents that you intend to only use for unlocking blocks in Meteor Component arrays do not need to have a file in config/BloodMagic/meteors/reagents/. Putting an empty one here anyway will not change any behavior.
|
||||||
|
|
||||||
|
Note that all reagents supplied to the Master Ritual Stone are still consumed whether they change anything or not.
|
||||||
|
------------------------------------------------
|
||||||
|
"filler": Array of Meteor Component Strings
|
||||||
|
|
||||||
|
Reagents with "filler" properties will *entirely replace* the filler of any meteor they are used to summon.
|
||||||
|
|
||||||
|
Only has an effect on meteors that have a fillerChance above zero (set directly or derived from maxWeight).
|
||||||
|
|
||||||
|
The same format as the "ores" and "filler" properties of meteors must be used:
|
||||||
|
modId:itemName:meta:weight(:reagent1, reagent2, ... optional)
|
||||||
|
OREDICT:oreDictName:weight(:reagent1, reagent2, ... optional)
|
||||||
|
|
||||||
|
For best results when players combine reagents, try to ensure that every reagent filler array you define (across every reagent) has the same total weight. Default configs use a total of 180 because it is highly composite, but any number may be used.
|
||||||
|
|
||||||
|
Meteor Components in a reagent's "filler" property CAN depend on other reagents being present!
|
||||||
|
If all reagents used to summon a meteor have "filler" properties that *only* contain Meteor Components with reagents that are not present (so they all end up becoming empty), then the meteor's original filler list will be unchanged.
|
||||||
|
------------------------------------------------
|
||||||
|
"radiusChange": Int (+/-)
|
||||||
|
|
||||||
|
Modify the meteor's radius by the given number.
|
||||||
|
|
||||||
|
Only the single largest increase and single largest decrease will impact the summoned meteor.
|
||||||
|
This is inspired by how Orbis Terrae completely overshadowed the effects of Terrae in the old system.
|
||||||
|
|
||||||
|
Default value if not included in a config is 0.
|
||||||
|
------------------------------------------------
|
||||||
|
"fillerChanceChange": Int (+/-)
|
||||||
|
|
||||||
|
Modify the filler chance of the summoned meteor. This is similar to how (Orbis) Terrae increased the max weight, except the numbers are smaller by a multiple of 10 (Orbis Terrae has a fillerChanceChange of 20 instead of adding 200 weight).
|
||||||
|
The full formula is newFillerChance = 100 * (fillerChance + change) / (100 + change).
|
||||||
|
For example, a meteor with a fillerChance of 50 which is summoned with Orbis Terrae will have a new fillerChance of ~58%.
|
||||||
|
|
||||||
|
Will not add filler to meteors with a fillerChance of 0.
|
||||||
|
Setting a value of -100 will completely remove filler (to avoid division by zero).
|
||||||
|
|
||||||
|
Only the single largest increase and single largest decrease will impact the summoned meteor.
|
||||||
|
This is inspired by how Orbis Terrae completely overshadowed the effects of Terrae in the old system.
|
||||||
|
|
||||||
|
Default value if not included in a config is 0.
|
||||||
|
------------------------------------------------
|
||||||
|
"rawFillerChanceChange": Float (+/-)
|
||||||
|
|
||||||
|
Directly add or subtract from the summoned meteor's fillerChance.
|
||||||
|
For example, a meteor with a fillerChance of 50 summoned with a custom reagent with rawFillerChanceChange set to -12.5 will have a new fillerChance of 37.5.
|
||||||
|
|
||||||
|
Only the single largest increase and single largest decrease will impact the summoned meteor.
|
||||||
|
This is inspired by how Orbis Terrae completely overshadowed the effects of Terrae in the old system.
|
||||||
|
|
||||||
|
Default value if not included in a config is 0.
|
||||||
|
|
||||||
|
Unused in any default reagent configs.
|
||||||
|
------------------------------------------------
|
||||||
|
"disableExplosions": true/false
|
||||||
|
|
||||||
|
Entirely disables explosions caused by a meteor summoned with any reagent that has this property set to true.
|
||||||
|
|
||||||
|
Default value if not included in a config is false.
|
||||||
|
|
||||||
|
Unused in any default reagent configs.
|
||||||
|
------------------------------------------------
|
||||||
|
"invertExplosionBlockDamage": true/false
|
||||||
|
|
||||||
|
Inverts the setting B:doMeteorsDestroyBlocks in config/AWWayofTime.cfg for meteors summoned with a reagent that has this property set to true.
|
||||||
|
May be used to make normally dangerous meteors safe, or can be used as a tradeoff to unlock a powerful effect when meteors are normally safe.
|
||||||
|
|
||||||
|
Overshadowed by disableExplosions if any reagent used to summon the meteor has it set, since there will be no explosion for blocks to break/not break.
|
||||||
|
|
||||||
|
Default value if not included in a config is false.
|
||||||
|
|
||||||
|
Unused in any default reagent configs.
|
||||||
|
------------------------------------------------
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"filler": ["minecraft:ice:0:180"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"filler": [
|
||||||
|
"minecraft:netherrack:0:60",
|
||||||
|
"minecraft:glowstone:0:60",
|
||||||
|
"minecraft:soul_sand:0:60"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"radiusChange": 2,
|
||||||
|
"fillerChanceChange": 20
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"filler": ["minecraft:obsidian:0:180"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"radiusChange": 1,
|
||||||
|
"fillerChanceChange": 10
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ores": [
|
||||||
|
"OREDICT:oreDiamond:100",
|
||||||
|
"OREDICT:oreEmerald:75",
|
||||||
|
"OREDICT:oreCinnabar:200",
|
||||||
|
"OREDICT:oreAmber:200"
|
||||||
|
],
|
||||||
|
"radius": 5,
|
||||||
|
"focusItem": "minecraft:diamond",
|
||||||
|
"maxWeight": 1000
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"ores": [
|
||||||
|
"OREDICT:oreIron:400",
|
||||||
|
"OREDICT:oreGold:30",
|
||||||
|
"OREDICT:oreCopper:200",
|
||||||
|
"OREDICT:oreTin:140",
|
||||||
|
"OREDICT:oreSilver:70",
|
||||||
|
"OREDICT:oreLead:80",
|
||||||
|
"OREDICT:oreLapis:60",
|
||||||
|
"OREDICT:oreRedstone:100"
|
||||||
|
],
|
||||||
|
"radius": 7,
|
||||||
|
"focusItem": "minecraft:iron_block",
|
||||||
|
"maxWeight": 1000
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ores": [
|
||||||
|
"OREDICT:oreDiamond:150",
|
||||||
|
"OREDICT:oreEmerald:100",
|
||||||
|
"OREDICT:oreQuartz:250",
|
||||||
|
"OREDICT:oreSunstone:5",
|
||||||
|
"OREDICT:oreMoonstone:50",
|
||||||
|
"OREDICT:oreIridium:5",
|
||||||
|
"OREDICT:oreCertusQuartz:150"
|
||||||
|
],
|
||||||
|
"radius": 3,
|
||||||
|
"focusItem": "minecraft:nether_star",
|
||||||
|
"maxWeight": 1000
|
||||||
|
}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
#####################################
|
||||||
|
### Blood Magic Meteor Config Guide ###
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
"Meteor happens" - xQc
|
||||||
|
|
||||||
|
This file and the other default meteor configs (StoneBlockMeteor.json, IronBlockMeteor.json, DiamondMeteor.json, and NetherStarMeteor.json) are generated when the folder config/BloodMagic/meteors/ is not present. Delete that folder if you want to regen these files with default values.
|
||||||
|
|
||||||
|
If you are a player and your pack does not include certain ores in the default meteors (like cinnabar and amber from Thaumcraft in DiamondMeteor.json), feel free to remove those entries in the "ores" property for that meteor so that they don't send warnings that they can't be found to the log. Also feel free to delete this file.
|
||||||
|
|
||||||
|
If you are a pack creator, the instructions on how to create your own custom meteors are below.
|
||||||
|
|
||||||
|
######################################
|
||||||
|
### Custom Meteor File Specification ###
|
||||||
|
######################################
|
||||||
|
----------------------------------------
|
||||||
|
FileName.json: Name your file anything you like with the extension ".json" and place it in config/BloodMagic/meteors/.
|
||||||
|
Choose something descriptive for the file name; the Focus Item is often a good choice, but it can be anything. IronIngot.json, RAINBOWS.json, and NewMeteor2026.json are all valid names, but meteor.txt is not, as it does not end in .json.
|
||||||
|
|
||||||
|
Your file must contain a valid JSON object, and the properties explained below will alter the meteor's characteristics.
|
||||||
|
If you don't know how to read/write JSON, look at the default files as a reference or check out https://www.w3schools.com/js/js_json_intro.asp or any other online tutorial.
|
||||||
|
----------------------------------------
|
||||||
|
"ores": Array of Meteor Component Strings
|
||||||
|
|
||||||
|
The most complicated and most important thing to define for your meteor: the main blocks it places.
|
||||||
|
|
||||||
|
These two formats (which can be mixed and matched in the same "ores" property) may be used to specify a Meteor Component (a block, its associated weight, and any required reagents):
|
||||||
|
modId:itemName:meta:weight(:reagent1, reagent2, ... optional) - Note: specifying meta is REQUIRED, even if 0
|
||||||
|
OREDICT:oreDictName:weight(:reagent1, reagent2, ... optional) - Note: OREDICT: at the front stays the same, only replace oreDictName
|
||||||
|
|
||||||
|
For example, the following "ores" property will place iron and gold ore in a 2:1 ratio. It will also add end stone when either sanctus OR magicales is provided (resulting in a ratio of 2 iron : 1 gold : 1 end stone):
|
||||||
|
"ores": [
|
||||||
|
"OREDICT:oreIron:200",
|
||||||
|
"OREDICT:oreGold:100",
|
||||||
|
"minecraft:end_stone:0:100:sanctus, magicales"
|
||||||
|
]
|
||||||
|
|
||||||
|
Reagents that you intend to only use for unlocking blocks in Meteor Component arrays do not need to have a file in config/BloodMagic/meteors/reagents/. Putting an empty one there anyway will not change any behavior.
|
||||||
|
|
||||||
|
If the "ores" property is not present, is empty, or if it contains only blocks with reagents that are not provided (so the meteor would have no blocks to place), the block specified with S:defaultMeteorBlock in config/AWWayofTime.cfg will be used as a default. minecraft:stone is used as a fallback if the config is unset or if the specified block can't be found, such as minceraft:breadrock.
|
||||||
|
|
||||||
|
Try using the command "/iih" ("item in hand") from GTNHLib or "/mt hand" from MineTweaker while holding an item to get its modId, itemName, and meta automatically put in your clipboard.
|
||||||
|
----------------------------------------
|
||||||
|
"filler": Array of Meteor Component Strings
|
||||||
|
|
||||||
|
Just like the "ores" property, you can define custom blocks to be used as filler. Uses the same format to define Meteor Components, so you can set blocks in the filler list to have different relative weights or require specific reagents.
|
||||||
|
|
||||||
|
ALL filler blocks in a meteor will be replaced if it is summoned with a reagent that is configured to replace filler (incendium, tenebrae, and crystallos with the default configs).
|
||||||
|
|
||||||
|
Uses S:defaultMeteorBlock in config/AWWayofTime.cfg as the default filler block, just like the ores property.
|
||||||
|
----------------------------------------
|
||||||
|
"fillerChance": Floating Point Number from 0.0-100.0 inclusive
|
||||||
|
|
||||||
|
Defines the chance (out of 100%) that any block placed will pick a block from the "filler" property instead of the "ores" one.
|
||||||
|
A value of 50.0 means the meteor will be 50% filler and 50% ores, 75.5 means the meteor will be 75.5% filler and 24.5% ores, etc.
|
||||||
|
Default value if not specified is 0.
|
||||||
|
|
||||||
|
fillerChance of 100 means that the whole meteor will be filler. The "ores" list will not show up in NEI.
|
||||||
|
fillerChance of 0 means that the whole meteor will be ore. The "filler" list will not show up in NEI.
|
||||||
|
----------------------------------------
|
||||||
|
"maxWeight": Positive Integer
|
||||||
|
|
||||||
|
IGNORED when fillerChance is defined in the same meteor. It's recommended to use that property for new meteors instead of this one.
|
||||||
|
|
||||||
|
An alternate way to specify the fillerChance which is similar (but NOT identical) to the old weight system.
|
||||||
|
The formula used to turn maxWeight into fillerChance is 100 * (1 - (total ore list weight / maxWeight)).
|
||||||
|
The result of this formula will always be clamped between 0.0-100.0 inclusive, just like if you set the fillerChance yourself.
|
||||||
|
|
||||||
|
For example, this example "ores" property has a total list weight of 400:
|
||||||
|
"ores": [
|
||||||
|
"minecraft:log:0:100",
|
||||||
|
"minecraft:log:1:100",
|
||||||
|
"minecraft:log:2:100",
|
||||||
|
"minecraft:log:3:100:virtus"
|
||||||
|
]
|
||||||
|
Setting maxWeight to 1000 for that meteor would result in a fillerChance of 60%.
|
||||||
|
Setting maxWeight to 600 for that meteor would result in a fillerChance of 33.33%.
|
||||||
|
|
||||||
|
This does NOT account for blocks over the max weight requiring (Orbis) Terrae like the old system. Specify that the blocks require the reagent in the Meteor Component string if you want that functionality.
|
||||||
|
This does NOT account for blocks that are not present because they are missing reagents. The above example with a maxWeight of 1000 will have 60% filler whether or not you supply virtus.
|
||||||
|
|
||||||
|
This DOES account for blocks that can't be found when reading the configs. It is used in the default meteor configs for that purpose. It is recommended to only use this if you expect something similar to happen with your meteors.
|
||||||
|
----------------------------------------
|
||||||
|
"radius": Positive Integer
|
||||||
|
|
||||||
|
Sets the radius (in full blocks out from the center block) of your meteor.
|
||||||
|
A meteor of radius 5 will have a full diameter of 11, including the center block.
|
||||||
|
A meteor's radius is also used to calculate the strength of the explosion when it lands if that feature is enabled. The explosion strength is 4 * radius.
|
||||||
|
|
||||||
|
Default value is 1 if the property is not set, which will create a very wimpy meteor.
|
||||||
|
----------------------------------------
|
||||||
|
"cost": Non-Negative Integer
|
||||||
|
|
||||||
|
Sets the LP cost to summon this meteor.
|
||||||
|
|
||||||
|
Uses I:defaultMeteorCost in config/AWWayofTime.cfg if this property is not set.
|
||||||
|
The default value for that config is 1,000,000 LP.
|
||||||
|
|
||||||
|
Remember that Mark of the Falling Tower takes 100k LP to activate by default. Keep in mind that players can activate the ritual and leave the sacrifice of the Focus Item until after more LP has been added to their Soul Networks.
|
||||||
|
----------------------------------------
|
||||||
|
"focusItem": String in format "modId:name(:meta optional)"
|
||||||
|
|
||||||
|
The Focus Item is the block/item sacrificed to summon the meteor. Avoid configuring multiple meteors to use the same item, because only one will actually be able to be summoned in-game.
|
||||||
|
Having different focus items with the same ID but different metadata works fine, such as having multiple meteors summoned with different colors of wool.
|
||||||
|
Specifying Focus Items based on NBT is not currently possible.
|
||||||
|
Specifying Focus Items based on oredicts is not currently possible.
|
||||||
|
|
||||||
|
As an example, a meteor with this value for "focusItem" will require a birch log:
|
||||||
|
"focusItem": "minecraft:log:2"
|
||||||
|
|
||||||
|
The default value for meta is 0 if not provided. A meteor with this value for "focusItem" will require coal:
|
||||||
|
"focusItem": "minecraft:coal"
|
||||||
|
Charcoal (which is the same item ID with a metadata of 1) will NOT work.
|
||||||
|
|
||||||
|
Setting meta to 32767 will allow any item with the same ID. For the following example, oak, birch, spruce, and jungle logs will all be valid items to summon this meteor (because they all have the same block ID):
|
||||||
|
"focusItem": "minecraft:log:32767"
|
||||||
|
----------------------------------------
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"ores": [
|
||||||
|
"OREDICT:oreCoal:150",
|
||||||
|
"OREDICT:oreApatite:50",
|
||||||
|
"OREDICT:oreIron:50"
|
||||||
|
],
|
||||||
|
"radius": 16,
|
||||||
|
"focusItem": "minecraft:stone",
|
||||||
|
"maxWeight": 1000
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Add any additional repositories for your dependencies here
|
// Add any additional repositories for your dependencies here
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
}
|
}
|
||||||
+5
-10
@@ -4,10 +4,10 @@ pluginManagement {
|
|||||||
maven {
|
maven {
|
||||||
// RetroFuturaGradle
|
// RetroFuturaGradle
|
||||||
name "GTNH Maven"
|
name "GTNH Maven"
|
||||||
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
|
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||||
allowInsecureProtocol = true
|
|
||||||
mavenContent {
|
mavenContent {
|
||||||
includeGroup("com.gtnewhorizons.retrofuturagradle")
|
includeGroup("com.gtnewhorizons")
|
||||||
|
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
@@ -17,12 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.diffplug.blowdryerSetup' version '1.6.0'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.32'
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0' // Provides java toolchains
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blowdryerSetup {
|
|
||||||
repoSubfolder 'gtnhShared'
|
|
||||||
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.2.0')
|
|
||||||
//devLocal '.' // Use this when testing config updates locally
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -10,13 +10,13 @@ import java.util.List;
|
|||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityList;
|
import net.minecraft.entity.EntityList;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.monster.EntityEnderman;
|
import net.minecraft.entity.monster.EntityEnderman;
|
||||||
import net.minecraft.entity.monster.EntitySlime;
|
import net.minecraft.entity.monster.EntitySlime;
|
||||||
import net.minecraft.entity.passive.EntityAnimal;
|
import net.minecraft.entity.passive.EntityAnimal;
|
||||||
import net.minecraft.entity.passive.EntityVillager;
|
import net.minecraft.entity.passive.EntityVillager;
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraftforge.common.config.Configuration;
|
import net.minecraftforge.common.config.Configuration;
|
||||||
import net.minecraftforge.common.config.Property;
|
import net.minecraftforge.common.config.Property;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
@@ -29,6 +29,7 @@ import WayofTime.alchemicalWizardry.common.AlchemicalWizardryEventHooks;
|
|||||||
import WayofTime.alchemicalWizardry.common.demonVillage.DemonVillagePath;
|
import WayofTime.alchemicalWizardry.common.demonVillage.DemonVillagePath;
|
||||||
import WayofTime.alchemicalWizardry.common.demonVillage.tileEntity.TEDemonPortal;
|
import WayofTime.alchemicalWizardry.common.demonVillage.tileEntity.TEDemonPortal;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
||||||
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorComponent;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
@@ -49,7 +50,7 @@ public class BloodMagicConfiguration {
|
|||||||
public static void init(File configFile) {
|
public static void init(File configFile) {
|
||||||
for (String s : DEFAULT_COLOR_LIST.split(";")) {
|
for (String s : DEFAULT_COLOR_LIST.split(";")) {
|
||||||
String[] ct = s.split(",");
|
String[] ct = s.split(",");
|
||||||
colorList.add(new ColourThreshold(Integer.valueOf(ct[0].trim()), ct[1].trim()));
|
colorList.add(new ColourThreshold(Integer.parseInt(ct[0].trim()), ct[1].trim()));
|
||||||
}
|
}
|
||||||
|
|
||||||
config = new Configuration(configFile);
|
config = new Configuration(configFile);
|
||||||
@@ -102,6 +103,20 @@ public class BloodMagicConfiguration {
|
|||||||
|
|
||||||
AlchemicalWizardry.doMeteorsDestroyBlocks = config.get("meteor", "doMeteorsDestroyBlocks", true)
|
AlchemicalWizardry.doMeteorsDestroyBlocks = config.get("meteor", "doMeteorsDestroyBlocks", true)
|
||||||
.getBoolean(true);
|
.getBoolean(true);
|
||||||
|
AlchemicalWizardry.defaultMeteorCost = config.getInt(
|
||||||
|
"defaultMeteorCost",
|
||||||
|
"meteor",
|
||||||
|
1000000,
|
||||||
|
0,
|
||||||
|
Integer.MAX_VALUE,
|
||||||
|
"The default LP cost to use for meteors if the \"cost\" property is not present in its config file.\n");
|
||||||
|
AlchemicalWizardry.defaultMeteorBlock = config.getString("defaultMeteorBlock", "meteor", "", """
|
||||||
|
The block to use for filler in meteors if none is provided in the meteor's config file and that
|
||||||
|
meteor's fillerChance is greater than 0. Also used as a fallback for empty ore lists in meteor configs.
|
||||||
|
Specify the block with the format:
|
||||||
|
"modId:itemName:meta", or "ml:material:shape" for a MaterialLib block.
|
||||||
|
Defaults to minecraft:stone:0 if no block is provided or the provided block cannot be found.""");
|
||||||
|
MeteorComponent.setDefaultMeteorBlock();
|
||||||
AlchemicalWizardry.allowedCrushedOresArray = config.get(
|
AlchemicalWizardry.allowedCrushedOresArray = config.get(
|
||||||
"oreCrushing",
|
"oreCrushing",
|
||||||
"allowedOres",
|
"allowedOres",
|
||||||
@@ -113,6 +128,7 @@ public class BloodMagicConfiguration {
|
|||||||
.getBoolean();
|
.getBoolean();
|
||||||
AlchemicalWizardry.causeHungerChatMessage = config.get("WimpySettings", "causeHungerChatMessage", true)
|
AlchemicalWizardry.causeHungerChatMessage = config.get("WimpySettings", "causeHungerChatMessage", true)
|
||||||
.getBoolean();
|
.getBoolean();
|
||||||
|
AlchemicalWizardry.allowPotionRepair = config.get("WimpySettings", "allowPotionRepair", true).getBoolean();
|
||||||
// AlchemicalWizardry.lockdownAltar = config.get("WimpySettings", "LockdownAltarWithRegen", true).getBoolean();
|
// AlchemicalWizardry.lockdownAltar = config.get("WimpySettings", "LockdownAltarWithRegen", true).getBoolean();
|
||||||
AlchemicalWizardry.lockdownAltar = false;
|
AlchemicalWizardry.lockdownAltar = false;
|
||||||
AlchemicalWizardry.disableBoundToolsRightClick = config
|
AlchemicalWizardry.disableBoundToolsRightClick = config
|
||||||
@@ -605,56 +621,67 @@ public class BloodMagicConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void finishLoading() {
|
public static void finishLoading() {
|
||||||
AlchemicalWizardry.secondTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
String[] defaultRunes = { "AWWayofTime:AlchemicalWizardrybloodRune", "AWWayofTime:speedRune",
|
||||||
"secondTier",
|
"AWWayofTime:efficiencyRune", "AWWayofTime:runeOfSacrifice", "AWWayofTime:runeOfSelfSacrifice",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
"AWWayofTime:AlchemicalWizardrybloodRune:1", "AWWayofTime:AlchemicalWizardrybloodRune:2",
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
"AWWayofTime:AlchemicalWizardrybloodRune:3", "AWWayofTime:AlchemicalWizardrybloodRune:4",
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
"AWWayofTime:AlchemicalWizardrybloodRune:5", "AWWayofTime:AlchemicalWizardrybloodRune:6" };
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
AlchemicalWizardry.secondTierRunes = readRuneOverrides("secondTier", defaultRunes);
|
||||||
AlchemicalWizardry.thirdTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.thirdTierRunes = readRuneOverrides("thirdTier", defaultRunes);
|
||||||
"thirdTier",
|
AlchemicalWizardry.fourthTierRunes = readRuneOverrides("fourthTier", defaultRunes);
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
AlchemicalWizardry.fifthTierRunes = readRuneOverrides("fifthTier", defaultRunes);
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
AlchemicalWizardry.sixthTierRunes = readRuneOverrides("sixthTier", defaultRunes);
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
AlchemicalWizardry.fifthTierBeacons = readBlockConfig(
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
"altar blocks",
|
||||||
AlchemicalWizardry.fourthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
"fifthTierBeacons",
|
||||||
"fourthTier",
|
new String[] { "minecraft:beacon", "etfuturum:beacon", "chisel:beacon:*" },
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
"""
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
Valid blocks for the Blood Altar's tier 5 beacons:
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
Use the following format for all of these entries: mod:block(:meta). Meta * or 32767 allows for any meta.
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
An empty entry allows for any non-air block to be used for that part of the structure.
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
Invalid or missing blocks are skipped. If all entries are invalid, any block can be used as a fallback.""");
|
||||||
AlchemicalWizardry.fifthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.thirdTierCaps = readBlockConfig(
|
||||||
"fifthTier",
|
"altar blocks",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
"thirdTierCaps",
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new String[] { "minecraft:glowstone", "BloodArsenal:blood_infused_glowstone", "Botania:seaLamp",
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
"chisel:glowstone:*", "etfuturum:sea_lantern", "etfuturum:shroomlight",
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
"ExtraUtilities:color_lightgem:*" },
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
"Valid blocks for the Blood Altar's tier 3 caps:");
|
||||||
AlchemicalWizardry.sixthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.thirdTierPillars = readBlockConfig(
|
||||||
"sixthTier",
|
"altar blocks",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
"thirdTierPillars",
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new String[] {},
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
"Valid blocks for the Blood Altar's tier 3 pillars:");
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
AlchemicalWizardry.fourthTierCaps = readBlockConfig(
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
"altar blocks",
|
||||||
AlchemicalWizardry.specialAltarBlock = getAltarRunesForTier(
|
"fourthTierCaps",
|
||||||
"specialBlocks",
|
new String[] { "AWWayofTime:largeBloodStoneBrick" },
|
||||||
new BlockStack[] { new BlockStack(Blocks.stonebrick, 0), new BlockStack(Blocks.glowstone, 0),
|
"Valid blocks for the Blood Altar's tier 4 caps:");
|
||||||
new BlockStack(Blocks.stonebrick, 0), new BlockStack(ModBlocks.largeBloodStoneBrick, 0),
|
AlchemicalWizardry.fourthTierPillars = readBlockConfig(
|
||||||
new BlockStack(Blocks.beacon, 0), new BlockStack(Blocks.stonebrick, 0),
|
"altar blocks",
|
||||||
new BlockStack(ModBlocks.blockCrystal, 0) });
|
"fourthTierPillars",
|
||||||
|
new String[] {},
|
||||||
|
"Valid blocks for the Blood Altar's tier 4 pillars.");
|
||||||
|
AlchemicalWizardry.sixthTierCaps = readBlockConfig(
|
||||||
|
"altar blocks",
|
||||||
|
"sixthTierCaps",
|
||||||
|
new String[] { "AWWayofTime:blockCrystal" },
|
||||||
|
"Valid blocks for the Blood Altar's tier 6 caps:");
|
||||||
|
AlchemicalWizardry.sixthTierPillars = readBlockConfig(
|
||||||
|
"altar blocks",
|
||||||
|
"sixthTierPillars",
|
||||||
|
new String[] {},
|
||||||
|
"Valid blocks for the Blood Altar's tier 6 pillars:");
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void loadCustomLPValues() {
|
public static void loadCustomLPValues() {
|
||||||
AlchemicalWizardry.lpPerSactificeCustom = new HashMap<Class<?>, Integer>();
|
AlchemicalWizardry.lpPerSactificeCustom = new HashMap<>();
|
||||||
for (Object object : EntityList.stringToClassMapping.entrySet()) {
|
for (Entry<String, Class<? extends Entity>> entry : EntityList.stringToClassMapping.entrySet()) {
|
||||||
Entry entry = (Entry) object;
|
String entityName = entry.getKey();
|
||||||
String entityName = (String) entry.getKey();
|
Class<? extends Entity> entityClass = entry.getValue();
|
||||||
Class entityClass = (Class) entry.getValue();
|
|
||||||
if (EntityLivingBase.class.isAssignableFrom(entityClass)
|
if (EntityLivingBase.class.isAssignableFrom(entityClass)
|
||||||
&& !Modifier.isAbstract(entityClass.getModifiers())) {
|
&& !Modifier.isAbstract(entityClass.getModifiers())) {
|
||||||
int lpAmount = 500;
|
int lpAmount = 500;
|
||||||
@@ -688,15 +715,13 @@ public class BloodMagicConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void loadBlacklist() {
|
public static void loadBlacklist() {
|
||||||
AlchemicalWizardry.wellBlacklist = new ArrayList<Class>();
|
AlchemicalWizardry.wellBlacklist = new ArrayList<>();
|
||||||
for (Object o : stringToClassMapping.entrySet()) {
|
for (Entry<String, Class<? extends Entity>> entry : stringToClassMapping.entrySet()) {
|
||||||
Entry entry = (Entry) o;
|
Class<? extends Entity> curClass = entry.getValue();
|
||||||
Class curClass = (Class) entry.getValue();
|
|
||||||
boolean valid = EntityLivingBase.class.isAssignableFrom(curClass)
|
boolean valid = EntityLivingBase.class.isAssignableFrom(curClass)
|
||||||
&& !Modifier.isAbstract(curClass.getModifiers());
|
&& !Modifier.isAbstract(curClass.getModifiers());
|
||||||
if (valid) {
|
if (valid) {
|
||||||
boolean blacklisted = config.get("wellOfSufferingBlackList", entry.getKey().toString(), false)
|
boolean blacklisted = config.get("wellOfSufferingBlackList", entry.getKey(), false).getBoolean();
|
||||||
.getBoolean();
|
|
||||||
if (blacklisted) AlchemicalWizardry.wellBlacklist.add(curClass);
|
if (blacklisted) AlchemicalWizardry.wellBlacklist.add(curClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -765,7 +790,6 @@ public class BloodMagicConfiguration {
|
|||||||
// Check if it's an int, if so, parse it. If not, set meta to 0 to avoid crashing.
|
// Check if it's an int, if so, parse it. If not, set meta to 0 to avoid crashing.
|
||||||
if (isInteger(blockData[2])) meta = Integer.parseInt(blockData[2]);
|
if (isInteger(blockData[2])) meta = Integer.parseInt(blockData[2]);
|
||||||
else if (blockData[2].equals("*")) meta = OreDictionary.WILDCARD_VALUE;
|
else if (blockData[2].equals("*")) meta = OreDictionary.WILDCARD_VALUE;
|
||||||
else meta = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AlchemicalWizardryEventHooks.teleposerBlacklist.add(new BlockStack(block, meta));
|
AlchemicalWizardryEventHooks.teleposerBlacklist.add(new BlockStack(block, meta));
|
||||||
@@ -775,49 +799,43 @@ public class BloodMagicConfiguration {
|
|||||||
private static boolean isInteger(String s) {
|
private static boolean isInteger(String s) {
|
||||||
try {
|
try {
|
||||||
Integer.parseInt(s);
|
Integer.parseInt(s);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException | NullPointerException e) {
|
||||||
return false;
|
|
||||||
} catch (NullPointerException e) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// only got here if we didn't return false
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static BlockStack[] getAltarRunesForTier(String tierName, BlockStack[] defaultValues) {
|
private static List<BlockStack> readRuneOverrides(String key, String[] defaultValues) {
|
||||||
String[] defaultNames = new String[defaultValues.length];
|
return readBlockConfig("rune overrides", key, defaultValues, "");
|
||||||
for (int i = 0; i < defaultValues.length; i++) {
|
|
||||||
defaultNames[i] = Block.blockRegistry.getNameForObject(defaultValues[i].getBlock()) + ":"
|
|
||||||
+ defaultValues[i].getMeta();
|
|
||||||
}
|
|
||||||
Property property = config.get("rune overrides", tierName, defaultNames);
|
|
||||||
String[] names = property.getStringList();
|
|
||||||
if (names.length != defaultNames.length) {
|
|
||||||
property.set(defaultNames);
|
|
||||||
return defaultValues;
|
|
||||||
}
|
|
||||||
BlockStack[] blockStacks = new BlockStack[names.length];
|
|
||||||
for (int i = 0; i < names.length; i++) {
|
|
||||||
String[] parts = names[i].split(":");
|
|
||||||
if (parts.length < 2 || parts.length > 3) {
|
|
||||||
property.set(defaultNames);
|
|
||||||
return defaultValues;
|
|
||||||
}
|
|
||||||
Block block = GameRegistry.findBlock(parts[0], parts[1]);
|
|
||||||
int metadata = 0;
|
|
||||||
if (parts.length == 3) {
|
|
||||||
try {
|
|
||||||
metadata = Integer.parseInt(parts[2]);
|
|
||||||
} catch (NumberFormatException exception) {
|
|
||||||
metadata = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (block == null) {
|
|
||||||
property.set(defaultNames);
|
|
||||||
return defaultValues;
|
|
||||||
}
|
|
||||||
blockStacks[i] = new BlockStack(block, metadata);
|
|
||||||
}
|
|
||||||
return blockStacks;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static List<BlockStack> readBlockConfig(String category, String key, String[] defaultValues,
|
||||||
|
String comment) {
|
||||||
|
Property property = config.get(category, key, defaultValues, comment);
|
||||||
|
List<BlockStack> validStacks = new ArrayList<>();
|
||||||
|
|
||||||
|
for (String name : property.getStringList()) {
|
||||||
|
String[] blockData = name.split(":");
|
||||||
|
if (blockData.length < 2 || blockData.length > 3) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
Block block = GameRegistry.findBlock(blockData[0], blockData[1]);
|
||||||
|
if (block == null) {
|
||||||
|
AlchemicalWizardry.logger.info("Block not found for {} {}: {}", category, key, name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
int meta = 0;
|
||||||
|
if (blockData.length == 3) {
|
||||||
|
if (isInteger(blockData[2])) meta = Integer.parseInt(blockData[2]);
|
||||||
|
else if (blockData[2].equals("*")) meta = OreDictionary.WILDCARD_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
validStacks.add(new BlockStack(block, meta));
|
||||||
|
}
|
||||||
|
|
||||||
|
return validStacks;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -57,117 +57,151 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
|||||||
*/
|
*/
|
||||||
public class ModBlocks {
|
public class ModBlocks {
|
||||||
|
|
||||||
public static Block bloodStoneBrick;
|
// Blood Altar
|
||||||
public static Block largeBloodStoneBrick;
|
|
||||||
public static BlockAltar blockAltar;
|
public static BlockAltar blockAltar;
|
||||||
public static BloodRune bloodRune;
|
public static BloodRune bloodRune;
|
||||||
public static SpeedRune speedRune;
|
public static SpeedRune speedRune;
|
||||||
public static EfficiencyRune efficiencyRune;
|
public static EfficiencyRune efficiencyRune;
|
||||||
public static RuneOfSacrifice runeOfSacrifice;
|
public static RuneOfSacrifice runeOfSacrifice;
|
||||||
public static RuneOfSelfSacrifice runeOfSelfSacrifice;
|
public static RuneOfSelfSacrifice runeOfSelfSacrifice;
|
||||||
public static Block blockMasterStone;
|
public static Block blockCrucible;
|
||||||
public static Block ritualStone;
|
public static Block largeBloodStoneBrick;
|
||||||
|
public static Block bloodStoneBrick;
|
||||||
|
public static Block blockCrystal;
|
||||||
|
|
||||||
|
// Rituals
|
||||||
public static Block imperfectRitualStone;
|
public static Block imperfectRitualStone;
|
||||||
public static Block bloodSocket;
|
public static Block ritualStone;
|
||||||
public static Block emptySocket;
|
public static Block blockMasterStone;
|
||||||
public static Block armourForge;
|
|
||||||
public static Block blockWritingTable;
|
|
||||||
public static Block blockHomHeart;
|
|
||||||
public static Block blockPedestal;
|
public static Block blockPedestal;
|
||||||
public static Block blockPlinth;
|
public static Block blockPlinth;
|
||||||
public static Block blockLifeEssence;
|
public static Block blockStabilityGlyph;
|
||||||
public static Block blockTeleposer;
|
public static Block blockEnchantmentGlyph;
|
||||||
public static Block spectralBlock;
|
|
||||||
|
// 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 blockConduit;
|
public static Block blockConduit;
|
||||||
public static Block blockBloodLight;
|
|
||||||
public static Block blockSpellEffect;
|
public static Block blockSpellEffect;
|
||||||
public static Block blockSpellParadigm;
|
public static Block blockSpellParadigm;
|
||||||
public static Block blockSpellModifier;
|
public static Block blockSpellModifier;
|
||||||
public static Block blockSpellEnhancement;
|
public static Block blockSpellEnhancement;
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
public static Block blockTeleposer;
|
||||||
|
public static Block spectralBlock;
|
||||||
|
public static Block blockBloodLight;
|
||||||
public static Block blockSpectralContainer;
|
public static Block blockSpectralContainer;
|
||||||
public static Block blockBuildingSchematicSaver;
|
public static Block blockLifeEssence;
|
||||||
public static Block blockDemonPortal;
|
public static Block blockDemonPortal;
|
||||||
public static Block blockReagentConduit;
|
|
||||||
public static Block blockAlchemicCalcinator;
|
|
||||||
public static Block blockCrystalBelljar;
|
|
||||||
public static Block blockDemonChest;
|
public static Block blockDemonChest;
|
||||||
public static Block blockCrystal;
|
public static Block blockBuildingSchematicSaver;
|
||||||
public static Block blockMimic;
|
public static Block blockMimic;
|
||||||
public static Block blockEnchantmentGlyph;
|
|
||||||
public static Block blockStabilityGlyph;
|
|
||||||
public static Block blockCrucible;
|
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
|
// Blood Altar
|
||||||
blockAltar = new BlockAltar();
|
blockAltar = new BlockAltar();
|
||||||
bloodRune = new BloodRune();
|
bloodRune = new BloodRune();
|
||||||
speedRune = new SpeedRune();
|
speedRune = new SpeedRune();
|
||||||
efficiencyRune = new EfficiencyRune();
|
efficiencyRune = new EfficiencyRune();
|
||||||
runeOfSacrifice = new RuneOfSacrifice();
|
runeOfSacrifice = new RuneOfSacrifice();
|
||||||
runeOfSelfSacrifice = new RuneOfSelfSacrifice();
|
runeOfSelfSacrifice = new RuneOfSelfSacrifice();
|
||||||
blockTeleposer = new BlockTeleposer();
|
blockCrucible = new BlockCrucible();
|
||||||
spectralBlock = new SpectralBlock();
|
bloodStoneBrick = new BloodStoneBrick();
|
||||||
|
largeBloodStoneBrick = new LargeBloodStoneBrick();
|
||||||
|
blockCrystal = new BlockCrystal();
|
||||||
|
|
||||||
|
// Rituals
|
||||||
|
imperfectRitualStone = new ImperfectRitualStone();
|
||||||
ritualStone = new RitualStone();
|
ritualStone = new RitualStone();
|
||||||
blockMasterStone = new BlockMasterStone();
|
blockMasterStone = new BlockMasterStone();
|
||||||
imperfectRitualStone = new ImperfectRitualStone();
|
|
||||||
bloodSocket = new BlockSocket();
|
|
||||||
armourForge = new ArmourForge();
|
|
||||||
emptySocket = new EmptySocket();
|
|
||||||
largeBloodStoneBrick = new LargeBloodStoneBrick();
|
|
||||||
bloodStoneBrick = new BloodStoneBrick();
|
|
||||||
blockWritingTable = new BlockWritingTable();
|
|
||||||
blockHomHeart = new BlockHomHeart();
|
|
||||||
blockPedestal = new BlockPedestal();
|
blockPedestal = new BlockPedestal();
|
||||||
blockPlinth = new BlockPlinth();
|
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();
|
||||||
|
bloodSocket = new BlockSocket();
|
||||||
|
armourForge = new ArmourForge();
|
||||||
|
|
||||||
|
// Spells
|
||||||
|
blockHomHeart = new BlockHomHeart();
|
||||||
blockConduit = new BlockConduit();
|
blockConduit = new BlockConduit();
|
||||||
blockBloodLight = new BlockBloodLightSource();
|
|
||||||
blockSpellEffect = new BlockSpellEffect();
|
blockSpellEffect = new BlockSpellEffect();
|
||||||
blockSpellParadigm = new BlockSpellParadigm();
|
blockSpellParadigm = new BlockSpellParadigm();
|
||||||
blockSpellModifier = new BlockSpellModifier();
|
blockSpellModifier = new BlockSpellModifier();
|
||||||
blockSpellEnhancement = new BlockSpellEnhancement();
|
blockSpellEnhancement = new BlockSpellEnhancement();
|
||||||
blockSpectralContainer = new BlockSpectralContainer();
|
|
||||||
blockDemonPortal = new BlockDemonPortal();
|
|
||||||
blockBuildingSchematicSaver = new BlockSchematicSaver();
|
|
||||||
blockReagentConduit = new BlockReagentConduit();
|
|
||||||
blockAlchemicCalcinator = new BlockAlchemicCalcinator();
|
|
||||||
blockCrystalBelljar = new BlockBelljar();
|
|
||||||
blockDemonChest = new BlockDemonChest();
|
|
||||||
blockCrystal = new BlockCrystal();
|
|
||||||
blockMimic = new MimicBlock();
|
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
blockTeleposer = new BlockTeleposer();
|
||||||
|
spectralBlock = new SpectralBlock();
|
||||||
|
blockBloodLight = new BlockBloodLightSource();
|
||||||
|
blockSpectralContainer = new BlockSpectralContainer();
|
||||||
blockLifeEssence = new LifeEssenceBlock();
|
blockLifeEssence = new LifeEssenceBlock();
|
||||||
blockEnchantmentGlyph = new BlockEnchantmentGlyph();
|
blockDemonPortal = new BlockDemonPortal();
|
||||||
blockStabilityGlyph = new BlockStabilityGlyph();
|
blockDemonChest = new BlockDemonChest();
|
||||||
blockCrucible = new BlockCrucible();
|
blockBuildingSchematicSaver = new BlockSchematicSaver();
|
||||||
|
blockMimic = new MimicBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerBlocksInPre() {
|
public static void registerBlocksInPre() {
|
||||||
|
// Blood Altar
|
||||||
GameRegistry.registerBlock(ModBlocks.blockAltar, "Altar");
|
GameRegistry.registerBlock(ModBlocks.blockAltar, "Altar");
|
||||||
GameRegistry.registerBlock(
|
GameRegistry.registerBlock(
|
||||||
ModBlocks.bloodRune,
|
ModBlocks.bloodRune,
|
||||||
ItemBloodRuneBlock.class,
|
ItemBloodRuneBlock.class,
|
||||||
"AlchemicalWizardry" + (ModBlocks.bloodRune.getUnlocalizedName().substring(5)));
|
"AlchemicalWizardry" + (ModBlocks.bloodRune.getUnlocalizedName().substring(5)));
|
||||||
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
|
|
||||||
GameRegistry.registerBlock(ModBlocks.speedRune, "speedRune");
|
GameRegistry.registerBlock(ModBlocks.speedRune, "speedRune");
|
||||||
GameRegistry.registerBlock(ModBlocks.efficiencyRune, "efficiencyRune");
|
GameRegistry.registerBlock(ModBlocks.efficiencyRune, "efficiencyRune");
|
||||||
GameRegistry.registerBlock(ModBlocks.runeOfSacrifice, "runeOfSacrifice");
|
GameRegistry.registerBlock(ModBlocks.runeOfSacrifice, "runeOfSacrifice");
|
||||||
GameRegistry.registerBlock(ModBlocks.runeOfSelfSacrifice, "runeOfSelfSacrifice");
|
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.ritualStone, "ritualStone");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockMasterStone, "masterStone");
|
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.blockPedestal, "blockPedestal");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockPlinth, "blockPlinth");
|
GameRegistry.registerBlock(ModBlocks.blockPlinth, "blockPlinth");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockTeleposer, "blockTeleposer");
|
GameRegistry.registerBlock(ModBlocks.blockStabilityGlyph, ItemStabilityGlyphBlock.class, "blockStabilityGlyph");
|
||||||
GameRegistry.registerBlock(ModBlocks.spectralBlock, "spectralBlock");
|
GameRegistry.registerBlock(
|
||||||
GameRegistry.registerBlock(ModBlocks.blockBloodLight, "bloodLight");
|
ModBlocks.blockEnchantmentGlyph,
|
||||||
|
ItemEnchantmentGlyphBlock.class,
|
||||||
|
"blockEnchantmentGlyph");
|
||||||
|
|
||||||
|
// 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.blockConduit, "blockConduit");
|
||||||
GameRegistry.registerBlock(
|
GameRegistry.registerBlock(
|
||||||
ModBlocks.blockSpellParadigm,
|
ModBlocks.blockSpellParadigm,
|
||||||
@@ -186,22 +220,16 @@ public class ModBlocks {
|
|||||||
ItemSpellEffectBlock.class,
|
ItemSpellEffectBlock.class,
|
||||||
"AlchemicalWizardry" + (ModBlocks.blockSpellEffect.getUnlocalizedName()));
|
"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.blockSpectralContainer, "spectralContainer");
|
||||||
|
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockDemonPortal, "demonPortalMain");
|
GameRegistry.registerBlock(ModBlocks.blockDemonPortal, "demonPortalMain");
|
||||||
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.blockDemonChest, "blockDemonChest");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockCrystal, ItemCrystalBlock.class, "blockCrystal");
|
GameRegistry.registerBlock(ModBlocks.blockBuildingSchematicSaver, "blockSchemSaver");
|
||||||
GameRegistry.registerBlock(ModBlocks.blockMimic, "blockMimic");
|
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() {}
|
public static void registerBlocksInInit() {}
|
||||||
|
|||||||
@@ -6,7 +6,43 @@ import net.minecraft.item.Item;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
||||||
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
|
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
|
||||||
import WayofTime.alchemicalWizardry.common.items.*;
|
import WayofTime.alchemicalWizardry.common.items.AWBaseItems;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ActivationCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ApprenticeBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BlankSpell;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BloodShard;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BoundAxe;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BoundPickaxe;
|
||||||
|
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.DemonPlacer;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
|
||||||
|
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.ItemAlchemyBase;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemComponents;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemDiabloKey;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemIncense;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemRitualDismantler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemRitualDiviner;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.LavaCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.LifeBucket;
|
||||||
|
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.armour.BoundArmour;
|
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
|
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
|
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
|
||||||
@@ -59,122 +95,40 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
|||||||
*/
|
*/
|
||||||
public class ModItems {
|
public class ModItems {
|
||||||
|
|
||||||
|
// Orbs
|
||||||
public static Item weakBloodOrb;
|
public static Item weakBloodOrb;
|
||||||
public static Item apprenticeBloodOrb;
|
public static Item apprenticeBloodOrb;
|
||||||
public static Item magicianBloodOrb;
|
public static Item magicianBloodOrb;
|
||||||
public static Item energyBlaster;
|
public static Item masterBloodOrb;
|
||||||
public static Item energyBlasterSecondTier;
|
public static Item archmageBloodOrb;
|
||||||
public static Item energyBlasterThirdTier;
|
public static Item transcendentBloodOrb;
|
||||||
|
public static Item creativeFiller;
|
||||||
|
|
||||||
|
// Bound Tools/Weapons
|
||||||
public static Item energySword;
|
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 boundPickaxe;
|
||||||
public static Item boundAxe;
|
public static Item boundAxe;
|
||||||
public static Item boundShovel;
|
public static Item boundShovel;
|
||||||
public static Item boundHelmet;
|
public static Item customTool;
|
||||||
public static Item boundPlate;
|
public static Item energyBlaster;
|
||||||
public static Item boundLeggings;
|
public static Item energyBlasterSecondTier;
|
||||||
public static Item boundBoots;
|
public static Item energyBlasterThirdTier;
|
||||||
public static Item weakBloodShard;
|
public static Item energyBazooka;
|
||||||
public static Item growthSigil;
|
public static Item energyBazookaSecondTier;
|
||||||
public static Item blankSpell;
|
public static Item energyBazookaThirdTier;
|
||||||
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;
|
// Armor
|
||||||
public static Item baseAlchemyItems;
|
public static Item itemBloodPack;
|
||||||
|
|
||||||
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 sanguineHelmet;
|
||||||
public static Item sanguineRobe;
|
public static Item sanguineRobe;
|
||||||
public static Item sanguinePants;
|
public static Item sanguinePants;
|
||||||
public static Item sanguineBoots;
|
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 boundHelmet;
|
||||||
public static Item itemSigilOfSupression;
|
public static Item boundPlate;
|
||||||
public static Item itemFluidSigil;
|
public static Item boundLeggings;
|
||||||
public static Item itemSeerSigil;
|
public static Item boundBoots;
|
||||||
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 boundHelmetWater;
|
||||||
public static Item boundPlateWater;
|
public static Item boundPlateWater;
|
||||||
@@ -196,123 +150,146 @@ public class ModItems {
|
|||||||
public static Item boundLeggingsFire;
|
public static Item boundLeggingsFire;
|
||||||
public static Item boundBootsFire;
|
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 inputRoutingFocus;
|
||||||
public static Item outputRoutingFocus;
|
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;
|
public static Item itemMailCatalogue;
|
||||||
|
|
||||||
public static Item itemIncense;
|
// Unimplemented
|
||||||
|
public static Item focusBloodBlast;
|
||||||
public static Item ritualDismantler;
|
public static Item focusGravityWell;
|
||||||
|
public static Item itemBloodFrame;
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
|
// Orbs
|
||||||
weakBloodOrb = new EnergyBattery(5000).setUnlocalizedName("weakBloodOrb");
|
weakBloodOrb = new EnergyBattery(5000).setUnlocalizedName("weakBloodOrb");
|
||||||
apprenticeBloodOrb = new ApprenticeBloodOrb(25000).setUnlocalizedName("apprenticeBloodOrb");
|
apprenticeBloodOrb = new ApprenticeBloodOrb(25000).setUnlocalizedName("apprenticeBloodOrb");
|
||||||
magicianBloodOrb = new MagicianBloodOrb(150000).setUnlocalizedName("magicianBloodOrb");
|
magicianBloodOrb = new MagicianBloodOrb(150000).setUnlocalizedName("magicianBloodOrb");
|
||||||
masterBloodOrb = new MasterBloodOrb(1000000).setUnlocalizedName("masterBloodOrb");
|
masterBloodOrb = new MasterBloodOrb(1000000).setUnlocalizedName("masterBloodOrb");
|
||||||
archmageBloodOrb = new ArchmageBloodOrb(10000000).setUnlocalizedName("archmageBloodOrb");
|
archmageBloodOrb = new ArchmageBloodOrb(10000000).setUnlocalizedName("archmageBloodOrb");
|
||||||
transcendentBloodOrb = new TranscendentBloodOrb(30000000).setUnlocalizedName("transcendentBloodOrb");
|
transcendentBloodOrb = new TranscendentBloodOrb(30000000).setUnlocalizedName("transcendentBloodOrb");
|
||||||
energyBlaster = new EnergyBlast(1).setUnlocalizedName("energyBlast");
|
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
|
||||||
energyBlasterSecondTier = new EnergyBlast(2).setUnlocalizedName("energyBlastSecondTier");
|
|
||||||
energyBlasterThirdTier = new EnergyBlast(3).setUnlocalizedName("energyBlastThirdTier");
|
// Bound Tools/Weapons
|
||||||
energySword = new EnergySword().setUnlocalizedName("energySword");
|
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");
|
boundPickaxe = new BoundPickaxe().setUnlocalizedName("boundPickaxe");
|
||||||
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
|
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
|
||||||
boundShovel = new BoundShovel().setUnlocalizedName("boundShovel");
|
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");
|
||||||
|
|
||||||
boundHelmet = new BoundArmour(0).setUnlocalizedName("boundHelmet");
|
boundHelmet = new BoundArmour(0).setUnlocalizedName("boundHelmet");
|
||||||
boundPlate = new BoundArmour(1).setUnlocalizedName("boundPlate");
|
boundPlate = new BoundArmour(1).setUnlocalizedName("boundPlate");
|
||||||
boundLeggings = new BoundArmour(2).setUnlocalizedName("boundLeggings");
|
boundLeggings = new BoundArmour(2).setUnlocalizedName("boundLeggings");
|
||||||
boundBoots = new BoundArmour(3).setUnlocalizedName("boundBoots");
|
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");
|
boundHelmetWater = new OmegaArmourWater(0).setUnlocalizedName("boundHelmetWater");
|
||||||
boundPlateWater = new OmegaArmourWater(1).setUnlocalizedName("boundPlateWater");
|
boundPlateWater = new OmegaArmourWater(1).setUnlocalizedName("boundPlateWater");
|
||||||
@@ -334,122 +311,140 @@ public class ModItems {
|
|||||||
boundLeggingsFire = new OmegaArmourFire(2).setUnlocalizedName("boundLeggingsFire");
|
boundLeggingsFire = new OmegaArmourFire(2).setUnlocalizedName("boundLeggingsFire");
|
||||||
boundBootsFire = new OmegaArmourFire(3).setUnlocalizedName("boundBootsFire");
|
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");
|
inputRoutingFocus = new InputRoutingFocus().setUnlocalizedName("inputRoutingFocus");
|
||||||
outputRoutingFocus = new OutputRoutingFocus().setUnlocalizedName("outputRoutingFocus");
|
outputRoutingFocus = new OutputRoutingFocus().setUnlocalizedName("outputRoutingFocus");
|
||||||
|
blankSpell = new BlankSpell().setUnlocalizedName("blankSpell");
|
||||||
|
itemComplexSpellCrystal = new ItemComplexSpellCrystal().setUnlocalizedName("itemComplexSpellCrystal");
|
||||||
|
demonPlacer = new DemonPlacer().setUnlocalizedName("demonPlacer");
|
||||||
|
|
||||||
itemIncense = new ItemIncense().setUnlocalizedName("bloodMagicIncenseItem");
|
// 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");
|
||||||
ritualDismantler = new ItemRitualDismantler().setUnlocalizedName("ritualDismantler");
|
ritualDismantler = new ItemRitualDismantler().setUnlocalizedName("ritualDismantler");
|
||||||
|
activationCrystal = new ActivationCrystal();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerItems() {
|
public static void registerItems() {
|
||||||
|
// Orbs
|
||||||
GameRegistry.registerItem(ModItems.weakBloodOrb, "weakBloodOrb");
|
GameRegistry.registerItem(ModItems.weakBloodOrb, "weakBloodOrb");
|
||||||
GameRegistry.registerItem(ModItems.apprenticeBloodOrb, "apprenticeBloodOrb");
|
GameRegistry.registerItem(ModItems.apprenticeBloodOrb, "apprenticeBloodOrb");
|
||||||
GameRegistry.registerItem(ModItems.magicianBloodOrb, "magicianBloodOrb");
|
GameRegistry.registerItem(ModItems.magicianBloodOrb, "magicianBloodOrb");
|
||||||
GameRegistry.registerItem(ModItems.energyBlaster, "energyBlaster");
|
GameRegistry.registerItem(ModItems.masterBloodOrb, "masterBloodOrb");
|
||||||
GameRegistry.registerItem(ModItems.energyBlasterSecondTier, "energyBlasterSecondTier");
|
GameRegistry.registerItem(ModItems.archmageBloodOrb, "archmageBloodOrb");
|
||||||
GameRegistry.registerItem(ModItems.energyBlasterThirdTier, "energyBlasterThirdTier");
|
GameRegistry.registerItem(ModItems.transcendentBloodOrb, "transcendentBloodOrb");
|
||||||
|
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
|
||||||
|
|
||||||
|
// Bound Tools/Weapons
|
||||||
GameRegistry.registerItem(ModItems.energySword, "energySword");
|
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.boundPickaxe, "boundPickaxe");
|
||||||
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
|
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
|
||||||
GameRegistry.registerItem(ModItems.boundShovel, "boundShovel");
|
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.boundHelmet, "boundHelmet");
|
GameRegistry.registerItem(ModItems.boundHelmet, "boundHelmet");
|
||||||
GameRegistry.registerItem(ModItems.boundPlate, "boundPlate");
|
GameRegistry.registerItem(ModItems.boundPlate, "boundPlate");
|
||||||
GameRegistry.registerItem(ModItems.boundLeggings, "boundLeggings");
|
GameRegistry.registerItem(ModItems.boundLeggings, "boundLeggings");
|
||||||
GameRegistry.registerItem(ModItems.boundBoots, "boundBoots");
|
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.boundHelmetWater, "boundHelmetWater");
|
||||||
GameRegistry.registerItem(ModItems.boundPlateWater, "boundPlateWater");
|
GameRegistry.registerItem(ModItems.boundPlateWater, "boundPlateWater");
|
||||||
@@ -471,10 +466,105 @@ public class ModItems {
|
|||||||
GameRegistry.registerItem(ModItems.boundLeggingsFire, "boundLeggingsFire");
|
GameRegistry.registerItem(ModItems.boundLeggingsFire, "boundLeggingsFire");
|
||||||
GameRegistry.registerItem(ModItems.boundBootsFire, "boundBootsFire");
|
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.inputRoutingFocus, "inputRoutingFocus");
|
||||||
GameRegistry.registerItem(ModItems.outputRoutingFocus, "outputRoutingFocus");
|
GameRegistry.registerItem(ModItems.outputRoutingFocus, "outputRoutingFocus");
|
||||||
|
GameRegistry.registerItem(ModItems.blankSpell, "blankSpell");
|
||||||
|
GameRegistry.registerItem(ModItems.itemComplexSpellCrystal, "itemComplexSpellCrystal");
|
||||||
|
GameRegistry.registerItem(ModItems.demonPlacer, "demonPlacer");
|
||||||
|
|
||||||
GameRegistry.registerItem(ModItems.itemIncense, "bloodMagicIncenseItem");
|
// 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.ritualDismantler, "ritualDismantler");
|
GameRegistry.registerItem(ModItems.ritualDismantler, "ritualDismantler");
|
||||||
|
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.api;
|
package WayofTime.alchemicalWizardry.api;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameData;
|
import cpw.mods.fml.common.registry.GameData;
|
||||||
@@ -7,42 +9,11 @@ import cpw.mods.fml.common.registry.GameData;
|
|||||||
/**
|
/**
|
||||||
* A Block with a set metadata. Similar to an ItemStack.
|
* A Block with a set metadata. Similar to an ItemStack.
|
||||||
*/
|
*/
|
||||||
public class BlockStack {
|
public record BlockStack(Block block, int meta) {
|
||||||
|
|
||||||
private Block block;
|
|
||||||
private int meta;
|
|
||||||
|
|
||||||
public BlockStack(Block block, int meta) {
|
|
||||||
this.block = block;
|
|
||||||
this.meta = meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BlockStack(Block block) {
|
|
||||||
this(block, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Block getBlock() {
|
|
||||||
return block;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMeta() {
|
|
||||||
return meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return GameData.getBlockRegistry().getNameForObject(block) + ":" + meta;
|
return GameData.getBlockRegistry().getNameForObject(block) + ":" + meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object obj) {
|
|
||||||
BlockStack blockStack = (BlockStack) obj;
|
|
||||||
|
|
||||||
return blockStack.block == this.getBlock() && blockStack.meta == this.getMeta();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return super.hashCode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -2,27 +2,7 @@ package WayofTime.alchemicalWizardry.api;
|
|||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
public class ColourAndCoords {
|
public record ColourAndCoords(int red, int green, int blue, int intensity, int x, int y, int z) {
|
||||||
|
|
||||||
public int colourRed;
|
|
||||||
public int colourGreen;
|
|
||||||
public int colourBlue;
|
|
||||||
public int colourIntensity;
|
|
||||||
|
|
||||||
public int xCoord;
|
|
||||||
public int yCoord;
|
|
||||||
public int zCoord;
|
|
||||||
|
|
||||||
public ColourAndCoords(int red, int green, int blue, int intensity, int x, int y, int z) {
|
|
||||||
this.colourRed = red;
|
|
||||||
this.colourGreen = green;
|
|
||||||
this.colourBlue = blue;
|
|
||||||
this.colourIntensity = intensity;
|
|
||||||
|
|
||||||
this.xCoord = x;
|
|
||||||
this.yCoord = y;
|
|
||||||
this.zCoord = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ColourAndCoords readFromNBT(NBTTagCompound tag) {
|
public static ColourAndCoords readFromNBT(NBTTagCompound tag) {
|
||||||
return new ColourAndCoords(
|
return new ColourAndCoords(
|
||||||
@@ -36,13 +16,13 @@ public class ColourAndCoords {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
||||||
tag.setInteger("colourRed", colourRed);
|
tag.setInteger("colourRed", red);
|
||||||
tag.setInteger("colourGreen", colourGreen);
|
tag.setInteger("colourGreen", green);
|
||||||
tag.setInteger("colourBlue", colourBlue);
|
tag.setInteger("colourBlue", blue);
|
||||||
tag.setInteger("colourIntensity", colourIntensity);
|
tag.setInteger("colourIntensity", intensity);
|
||||||
tag.setInteger("xCoord", xCoord);
|
tag.setInteger("xCoord", x);
|
||||||
tag.setInteger("yCoord", yCoord);
|
tag.setInteger("yCoord", y);
|
||||||
tag.setInteger("zCoord", zCoord);
|
tag.setInteger("zCoord", z);
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,40 +2,17 @@ package WayofTime.alchemicalWizardry.api;
|
|||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
public class Int3 {
|
public record Int3(int x, int y, int z) {
|
||||||
|
|
||||||
public int xCoord;
|
|
||||||
public int yCoord;
|
|
||||||
public int zCoord;
|
|
||||||
|
|
||||||
public Int3(int xCoord, int yCoord, int zCoord) {
|
|
||||||
this.xCoord = xCoord;
|
|
||||||
this.yCoord = yCoord;
|
|
||||||
this.zCoord = zCoord;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Int3 readFromNBT(NBTTagCompound tag) {
|
public static Int3 readFromNBT(NBTTagCompound tag) {
|
||||||
return new Int3(tag.getInteger("xCoord"), tag.getInteger("yCoord"), tag.getInteger("zCoord"));
|
return new Int3(tag.getInteger("xCoord"), tag.getInteger("yCoord"), tag.getInteger("zCoord"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
||||||
tag.setInteger("xCoord", xCoord);
|
tag.setInteger("xCoord", x);
|
||||||
tag.setInteger("yCoord", yCoord);
|
tag.setInteger("yCoord", y);
|
||||||
tag.setInteger("zCoord", zCoord);
|
tag.setInteger("zCoord", z);
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
return o instanceof Int3
|
|
||||||
? ((Int3) o).xCoord == this.xCoord && ((Int3) o).yCoord == this.yCoord
|
|
||||||
&& ((Int3) o).zCoord == this.zCoord
|
|
||||||
: false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return this.xCoord + this.yCoord << 8 + this.zCoord << 16;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,29 @@
|
|||||||
package WayofTime.alchemicalWizardry.api;
|
package WayofTime.alchemicalWizardry.api;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
|
||||||
public class RoutingFocusLogic {
|
public class RoutingFocusLogic {
|
||||||
|
|
||||||
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||||
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem()
|
return (keyStack != null && keyStack.getItem() != null
|
||||||
&& (keyStack.getItem().getHasSubtypes() ? keyStack.getItemDamage() == checkedStack.getItemDamage()
|
&& checkedStack != null
|
||||||
: true)
|
&& keyStack.getItem() == checkedStack.getItem()
|
||||||
: false);
|
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
|
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
|
||||||
return previous || this.getDefaultMatch(keyStack, 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,9 +7,11 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
public class RoutingFocusParadigm {
|
public class RoutingFocusParadigm {
|
||||||
|
|
||||||
public List<RoutingFocusLogic> logicList = new LinkedList();
|
public List<RoutingFocusLogic> logicList = new LinkedList<>();
|
||||||
|
|
||||||
public List<RoutingFocusPosAndFacing> locationList = new LinkedList();
|
public List<RoutingFocusPosAndFacing> locationList = new LinkedList<>();
|
||||||
|
|
||||||
|
public List<String> nameList = new LinkedList<>();
|
||||||
|
|
||||||
public int maximumAmount = 0;
|
public int maximumAmount = 0;
|
||||||
|
|
||||||
@@ -24,6 +26,14 @@ public class RoutingFocusParadigm {
|
|||||||
logicList.add(logic);
|
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) {
|
public boolean doesItemMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||||
boolean isGood = false;
|
boolean isGood = false;
|
||||||
boolean isFirst = true;
|
boolean isFirst = true;
|
||||||
@@ -42,6 +52,7 @@ public class RoutingFocusParadigm {
|
|||||||
public void clear() {
|
public void clear() {
|
||||||
logicList.clear();
|
logicList.clear();
|
||||||
locationList.clear();
|
locationList.clear();
|
||||||
|
nameList.clear();
|
||||||
maximumAmount = 0;
|
maximumAmount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,41 +1,17 @@
|
|||||||
package WayofTime.alchemicalWizardry.api;
|
package WayofTime.alchemicalWizardry.api;
|
||||||
|
|
||||||
/*
|
import javax.annotation.Nonnull;
|
||||||
* Created in Scala by Alex-Hawks Translated and implemented by Arcaratus
|
|
||||||
*/
|
|
||||||
public class Vector3 {
|
|
||||||
|
|
||||||
public int x, y, z;
|
public record Vector3(int x, int y, int z) {
|
||||||
|
|
||||||
public Vector3(int x, int y, int z) {
|
public Vector3 add(Vector3 vec) {
|
||||||
this.x = x;
|
return new Vector3(this.x + vec.x, this.y + vec.y, this.z + vec.z);
|
||||||
this.y = y;
|
|
||||||
this.z = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector3 add(Vector3 vec1) {
|
|
||||||
return new Vector3(this.x + vec1.x, this.y + vec1.y, this.z + vec1.z);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Nonnull
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "V3(" + x + "}, " + y + "}," + z + "})";
|
return "V3({" + x + "}, {" + y + "}, {" + z + "})";
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean canEqual(Object object) {
|
|
||||||
return object instanceof Vector3;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object object) {
|
|
||||||
return object == this || object instanceof Vector3 && canEqual(this)
|
|
||||||
&& this.x == ((Vector3) object).x
|
|
||||||
&& this.y == ((Vector3) object).y
|
|
||||||
&& this.z == ((Vector3) object).z;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return 48131 * x - 95021 * y + z;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
+3
-3
@@ -6,7 +6,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
public class AlchemicalPotionCreationHandler {
|
public class AlchemicalPotionCreationHandler {
|
||||||
|
|
||||||
public static ArrayList<AlchemyPotionHandlerComponent> registeredPotionEffects = new ArrayList();
|
public static ArrayList<AlchemyPotionHandlerComponent> registeredPotionEffects = new ArrayList<>();
|
||||||
|
|
||||||
public static void addPotion(ItemStack itemStack, int potionID, int tickDuration) {
|
public static void addPotion(ItemStack itemStack, int potionID, int tickDuration) {
|
||||||
registeredPotionEffects.add(new AlchemyPotionHandlerComponent(itemStack, potionID, tickDuration));
|
registeredPotionEffects.add(new AlchemyPotionHandlerComponent(itemStack, potionID, tickDuration));
|
||||||
@@ -15,7 +15,7 @@ public class AlchemicalPotionCreationHandler {
|
|||||||
public static int getPotionIDForStack(ItemStack itemStack) {
|
public static int getPotionIDForStack(ItemStack itemStack) {
|
||||||
for (AlchemyPotionHandlerComponent aphc : registeredPotionEffects) {
|
for (AlchemyPotionHandlerComponent aphc : registeredPotionEffects) {
|
||||||
if (aphc.compareItemStack(itemStack)) {
|
if (aphc.compareItemStack(itemStack)) {
|
||||||
return aphc.getPotionID();
|
return aphc.potionID();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ public class AlchemicalPotionCreationHandler {
|
|||||||
{
|
{
|
||||||
for (AlchemyPotionHandlerComponent aphc : registeredPotionEffects) {
|
for (AlchemyPotionHandlerComponent aphc : registeredPotionEffects) {
|
||||||
if (aphc.compareItemStack(itemStack)) {
|
if (aphc.compareItemStack(itemStack)) {
|
||||||
return aphc.getTickDuration();
|
return aphc.tickDuration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-23
@@ -3,17 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy;
|
|||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
public class AlchemyPotionHandlerComponent {
|
public record AlchemyPotionHandlerComponent(ItemStack itemStack, int potionID, int tickDuration) {
|
||||||
|
|
||||||
private ItemStack itemStack;
|
|
||||||
private int potionID;
|
|
||||||
private int tickDuration;
|
|
||||||
|
|
||||||
public AlchemyPotionHandlerComponent(ItemStack itemStack, int potionID, int tickDuration) {
|
|
||||||
this.itemStack = itemStack;
|
|
||||||
this.potionID = potionID;
|
|
||||||
this.tickDuration = tickDuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean compareItemStack(ItemStack comparedStack) {
|
public boolean compareItemStack(ItemStack comparedStack) {
|
||||||
if (comparedStack != null && itemStack != null) {
|
if (comparedStack != null && itemStack != null) {
|
||||||
@@ -30,16 +20,4 @@ public class AlchemyPotionHandlerComponent {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getItemStack() {
|
|
||||||
return itemStack;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPotionID() {
|
|
||||||
return this.potionID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTickDuration() {
|
|
||||||
return this.tickDuration;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -6,8 +6,8 @@ import net.minecraft.potion.PotionEffect;
|
|||||||
|
|
||||||
public class AlchemyPotionHelper {
|
public class AlchemyPotionHelper {
|
||||||
|
|
||||||
private int potionID;
|
private final int potionID;
|
||||||
private int tickDuration;
|
private final int tickDuration;
|
||||||
private int concentration;
|
private int concentration;
|
||||||
private int durationFactor;
|
private int durationFactor;
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.alchemy;
|
package WayofTime.alchemicalWizardry.api.alchemy;
|
||||||
|
|
||||||
import net.minecraft.item.ItemBlock;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
public class AlchemyRecipe {
|
public class AlchemyRecipe {
|
||||||
|
|
||||||
private ItemStack output;
|
private static final int MAX_INPUT_SLOTS = 5;
|
||||||
private ItemStack[] recipe;
|
|
||||||
private int bloodOrbLevel;
|
private final ItemStack output;
|
||||||
private int amountNeeded;
|
private final ItemStack[] recipe;
|
||||||
|
private final int bloodOrbLevel;
|
||||||
|
private final int amountNeeded;
|
||||||
|
|
||||||
public AlchemyRecipe(ItemStack output, int amountNeeded, ItemStack[] recipe, int bloodOrbLevel) {
|
public AlchemyRecipe(ItemStack output, int amountNeeded, ItemStack[] recipe, int bloodOrbLevel) {
|
||||||
this.output = output;
|
this.output = output;
|
||||||
@@ -23,35 +24,13 @@ public class AlchemyRecipe {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemStack[] recipe;
|
if (items.length < MAX_INPUT_SLOTS) {
|
||||||
|
|
||||||
if (items.length < 5) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.recipe.length != 5) {
|
boolean[] checkList = new boolean[MAX_INPUT_SLOTS];
|
||||||
ItemStack[] newRecipe = new ItemStack[5];
|
|
||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < Math.min(recipe.length, MAX_INPUT_SLOTS); i++) {
|
||||||
if (i + 1 > this.recipe.length) {
|
|
||||||
newRecipe[i] = null;
|
|
||||||
} else {
|
|
||||||
newRecipe[i] = this.recipe[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
recipe = newRecipe;
|
|
||||||
} else {
|
|
||||||
recipe = this.recipe;
|
|
||||||
}
|
|
||||||
|
|
||||||
boolean[] checkList = new boolean[5];
|
|
||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
|
||||||
checkList[i] = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
|
||||||
ItemStack recipeItemStack = recipe[i];
|
ItemStack recipeItemStack = recipe[i];
|
||||||
|
|
||||||
if (recipeItemStack == null) {
|
if (recipeItemStack == null) {
|
||||||
@@ -60,7 +39,7 @@ public class AlchemyRecipe {
|
|||||||
|
|
||||||
boolean test = false;
|
boolean test = false;
|
||||||
|
|
||||||
for (int j = 0; j < 5; j++) {
|
for (int j = 0; j < MAX_INPUT_SLOTS; j++) {
|
||||||
if (checkList[j]) {
|
if (checkList[j]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -71,20 +50,6 @@ public class AlchemyRecipe {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean quickTest = false;
|
|
||||||
|
|
||||||
if (recipeItemStack.getItem() instanceof ItemBlock) {
|
|
||||||
if (checkedItemStack.getItem() instanceof ItemBlock) {
|
|
||||||
quickTest = true;
|
|
||||||
}
|
|
||||||
} else if (!(checkedItemStack.getItem() instanceof ItemBlock)) {
|
|
||||||
quickTest = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!quickTest) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((checkedItemStack.getItemDamage() == recipeItemStack.getItemDamage()
|
if ((checkedItemStack.getItemDamage() == recipeItemStack.getItemDamage()
|
||||||
|| OreDictionary.WILDCARD_VALUE == recipeItemStack.getItemDamage())
|
|| OreDictionary.WILDCARD_VALUE == recipeItemStack.getItemDamage())
|
||||||
&& checkedItemStack.getItem() == recipeItemStack.getItem()) {
|
&& checkedItemStack.getItem() == recipeItemStack.getItem()) {
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
|||||||
|
|
||||||
public class AlchemyRecipeRegistry {
|
public class AlchemyRecipeRegistry {
|
||||||
|
|
||||||
public static List<AlchemyRecipe> recipes = new ArrayList();
|
public static List<AlchemyRecipe> recipes = new ArrayList<>();
|
||||||
|
|
||||||
public static void registerRecipe(ItemStack output, int amountNeeded, ItemStack[] recipe, int bloodOrbLevel) {
|
public static void registerRecipe(ItemStack output, int amountNeeded, ItemStack[] recipe, int bloodOrbLevel) {
|
||||||
recipes.add(new AlchemyRecipe(output, amountNeeded, recipe, bloodOrbLevel));
|
recipes.add(new AlchemyRecipe(output, amountNeeded, recipe, bloodOrbLevel));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack getResult(ItemStack[] recipe, ItemStack bloodOrb) {
|
public static AlchemyRecipe findRecipe(ItemStack[] recipe, ItemStack bloodOrb) {
|
||||||
if (bloodOrb == null) {
|
if (bloodOrb == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -28,31 +28,23 @@ public class AlchemyRecipeRegistry {
|
|||||||
|
|
||||||
for (AlchemyRecipe ar : recipes) {
|
for (AlchemyRecipe ar : recipes) {
|
||||||
if (ar.doesRecipeMatch(recipe, bloodOrbLevel)) {
|
if (ar.doesRecipeMatch(recipe, bloodOrbLevel)) {
|
||||||
return (ar.getResult());
|
return ar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ItemStack getResult(ItemStack[] recipe, ItemStack bloodOrb) {
|
||||||
|
AlchemyRecipe ar = findRecipe(recipe, bloodOrb);
|
||||||
|
|
||||||
|
return ar == null ? null : ar.getResult();
|
||||||
|
}
|
||||||
|
|
||||||
public static int getAmountNeeded(ItemStack[] recipe, ItemStack bloodOrb) {
|
public static int getAmountNeeded(ItemStack[] recipe, ItemStack bloodOrb) {
|
||||||
if (bloodOrb == null) {
|
AlchemyRecipe ar = findRecipe(recipe, bloodOrb);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(bloodOrb.getItem() instanceof IBloodOrb)) {
|
return ar == null ? 0 : ar.getAmountNeeded();
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int bloodOrbLevel = ((IBloodOrb) bloodOrb.getItem()).getOrbLevel();
|
|
||||||
|
|
||||||
for (AlchemyRecipe ar : recipes) {
|
|
||||||
if (ar.doesRecipeMatch(recipe, bloodOrbLevel)) {
|
|
||||||
return (ar.getAmountNeeded());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack[] getRecipeForItemStack(ItemStack itemStack) {
|
public static ItemStack[] getRecipeForItemStack(ItemStack itemStack) {
|
||||||
|
|||||||
@@ -1,45 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.alchemy.energy;
|
package WayofTime.alchemicalWizardry.api.alchemy.energy;
|
||||||
|
|
||||||
public class Reagent {
|
public record Reagent(String name, int red, int green, int blue, int intensity) {
|
||||||
|
|
||||||
public final String name;
|
|
||||||
|
|
||||||
public static final int REAGENT_SIZE = 1000;
|
public static final int REAGENT_SIZE = 1000;
|
||||||
|
|
||||||
private int colourRed = 0;
|
|
||||||
private int colourGreen = 0;
|
|
||||||
private int colourBlue = 0;
|
|
||||||
private int colourIntensity = 255;
|
|
||||||
|
|
||||||
public Reagent(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setColour(int red, int green, int blue, int intensity) {
|
|
||||||
this.colourRed = red;
|
|
||||||
this.colourGreen = green;
|
|
||||||
this.colourBlue = blue;
|
|
||||||
this.colourIntensity = intensity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getColourRed() {
|
|
||||||
return colourRed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getColourGreen() {
|
|
||||||
return colourGreen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getColourBlue() {
|
|
||||||
return colourBlue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getColourIntensity() {
|
|
||||||
return colourIntensity;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
return o instanceof Reagent && this == o && name.equals(((Reagent) o).name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
+38
-59
@@ -1,6 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.alchemy.energy;
|
package WayofTime.alchemicalWizardry.api.alchemy.energy;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@@ -9,8 +10,8 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
public class ReagentRegistry {
|
public class ReagentRegistry {
|
||||||
|
|
||||||
public static Map<String, Reagent> reagentList = new HashMap();
|
public static Map<String, Reagent> reagentList = new LinkedHashMap<>();
|
||||||
public static Map<ItemStack, ReagentStack> itemToReagentMap = new HashMap();
|
public static Map<ItemStack, ReagentStack> itemToReagentMap = new HashMap<>();
|
||||||
|
|
||||||
public static Reagent sanctusReagent;
|
public static Reagent sanctusReagent;
|
||||||
public static Reagent incendiumReagent;
|
public static Reagent incendiumReagent;
|
||||||
@@ -21,7 +22,6 @@ public class ReagentRegistry {
|
|||||||
public static Reagent crystallosReagent;
|
public static Reagent crystallosReagent;
|
||||||
public static Reagent terraeReagent;
|
public static Reagent terraeReagent;
|
||||||
public static Reagent tenebraeReagent;
|
public static Reagent tenebraeReagent;
|
||||||
|
|
||||||
public static Reagent offensaReagent;
|
public static Reagent offensaReagent;
|
||||||
public static Reagent praesidiumReagent;
|
public static Reagent praesidiumReagent;
|
||||||
public static Reagent orbisTerraeReagent;
|
public static Reagent orbisTerraeReagent;
|
||||||
@@ -30,71 +30,51 @@ public class ReagentRegistry {
|
|||||||
public static Reagent potentiaReagent;
|
public static Reagent potentiaReagent;
|
||||||
|
|
||||||
public static void initReagents() {
|
public static void initReagents() {
|
||||||
sanctusReagent = new Reagent("sanctus");
|
sanctusReagent = new Reagent("sanctus", 255, 255, 0, 255);
|
||||||
incendiumReagent = new Reagent("incendium");
|
incendiumReagent = new Reagent("incendium", 255, 0, 0, 255);
|
||||||
aquasalusReagent = new Reagent("aquasalus");
|
aquasalusReagent = new Reagent("aquasalus", 0, 0, 255, 255);
|
||||||
magicalesReagent = new Reagent("magicales");
|
magicalesReagent = new Reagent("magicales", 150, 0, 146, 255);
|
||||||
aetherReagent = new Reagent("aether");
|
aetherReagent = new Reagent("aether", 105, 223, 86, 255);
|
||||||
crepitousReagent = new Reagent("crepitous");
|
crepitousReagent = new Reagent("crepitous", 145, 145, 145, 255);
|
||||||
crystallosReagent = new Reagent("crystallos");
|
crystallosReagent = new Reagent("crystallos", 135, 255, 231, 255);
|
||||||
terraeReagent = new Reagent("terrae");
|
terraeReagent = new Reagent("terrae", 147, 48, 13, 255);
|
||||||
tenebraeReagent = new Reagent("tenebrae");
|
tenebraeReagent = new Reagent("tenebrae", 86, 86, 86, 255);
|
||||||
offensaReagent = new Reagent("offensa");
|
offensaReagent = new Reagent("offensa", 126, 0, 0, 255);
|
||||||
praesidiumReagent = new Reagent("praesidium");
|
praesidiumReagent = new Reagent("praesidium", 135, 135, 135, 255);
|
||||||
orbisTerraeReagent = new Reagent("orbisTerrae");
|
orbisTerraeReagent = new Reagent("orbisTerrae", 32, 94, 14, 255);
|
||||||
virtusReagent = new Reagent("virtus");
|
virtusReagent = new Reagent("virtus", 180, 0, 0, 255);
|
||||||
reductusReagent = new Reagent("reductus");
|
reductusReagent = new Reagent("reductus", 20, 93, 2, 255);
|
||||||
potentiaReagent = new Reagent("potentia");
|
potentiaReagent = new Reagent("potentia", 64, 81, 208, 255);
|
||||||
|
|
||||||
sanctusReagent.setColour(255, 255, 0, 255);
|
registerReagent(sanctusReagent);
|
||||||
incendiumReagent.setColour(255, 0, 0, 255);
|
registerReagent(incendiumReagent);
|
||||||
aquasalusReagent.setColour(0, 0, 255, 255);
|
registerReagent(aquasalusReagent);
|
||||||
magicalesReagent.setColour(150, 0, 146, 255);
|
registerReagent(magicalesReagent);
|
||||||
aetherReagent.setColour(105, 223, 86, 255);
|
registerReagent(aetherReagent);
|
||||||
crepitousReagent.setColour(145, 145, 145, 255);
|
registerReagent(crepitousReagent);
|
||||||
crystallosReagent.setColour(135, 255, 231, 255);
|
registerReagent(crystallosReagent);
|
||||||
terraeReagent.setColour(147, 48, 13, 255);
|
registerReagent(terraeReagent);
|
||||||
tenebraeReagent.setColour(86, 86, 86, 255);
|
registerReagent(tenebraeReagent);
|
||||||
offensaReagent.setColour(126, 0, 0, 255);
|
registerReagent(offensaReagent);
|
||||||
praesidiumReagent.setColour(135, 135, 135, 255);
|
registerReagent(praesidiumReagent);
|
||||||
orbisTerraeReagent.setColour(32, 94, 14, 255);
|
registerReagent(orbisTerraeReagent);
|
||||||
virtusReagent.setColour(180, 0, 0, 255);
|
registerReagent(virtusReagent);
|
||||||
reductusReagent.setColour(20, 93, 2, 255);
|
registerReagent(reductusReagent);
|
||||||
potentiaReagent.setColour(64, 81, 208, 255);
|
registerReagent(potentiaReagent);
|
||||||
|
|
||||||
registerReagent("sanctus", sanctusReagent);
|
|
||||||
registerReagent("incendium", incendiumReagent);
|
|
||||||
registerReagent("aquasalus", aquasalusReagent);
|
|
||||||
registerReagent("magicales", magicalesReagent);
|
|
||||||
registerReagent("aether", aetherReagent);
|
|
||||||
registerReagent("crepitous", crepitousReagent);
|
|
||||||
registerReagent("crystallos", crystallosReagent);
|
|
||||||
registerReagent("terrae", terraeReagent);
|
|
||||||
registerReagent("tenebrae", tenebraeReagent);
|
|
||||||
registerReagent("offensa", offensaReagent);
|
|
||||||
registerReagent("praesidium", praesidiumReagent);
|
|
||||||
registerReagent("orbisTerrae", orbisTerraeReagent);
|
|
||||||
registerReagent("virtus", virtusReagent);
|
|
||||||
registerReagent("reductus", reductusReagent);
|
|
||||||
registerReagent("potentia", potentiaReagent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean registerReagent(String key, Reagent reagent) {
|
public static boolean registerReagent(Reagent reagent) {
|
||||||
if (reagentList.containsKey(key) || reagent == null) {
|
if (reagent == null || reagentList.containsKey(reagent.name())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
reagentList.put(key, reagent);
|
reagentList.put(reagent.name(), reagent);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Reagent getReagentForKey(String key) {
|
public static Reagent getReagentForKey(String key) {
|
||||||
if (reagentList.containsKey(key)) {
|
return reagentList.get(key);
|
||||||
return reagentList.get(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getKeyForReagent(Reagent reagent) {
|
public static String getKeyForReagent(Reagent reagent) {
|
||||||
@@ -141,9 +121,8 @@ public class ReagentRegistry {
|
|||||||
if (entry.getValue() != null && entry.getValue().reagent == reagent) {
|
if (entry.getValue() != null && entry.getValue().reagent == reagent) {
|
||||||
if (entry.getKey() == null) {
|
if (entry.getKey() == null) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
|
||||||
return entry.getKey().copy();
|
|
||||||
}
|
}
|
||||||
|
return entry.getKey().copy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,9 +24,8 @@ public class ReagentStack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int amount = tag.getInteger("amount");
|
int amount = tag.getInteger("amount");
|
||||||
ReagentStack stack = new ReagentStack(reagent, amount);
|
|
||||||
|
|
||||||
return stack;
|
return new ReagentStack(reagent, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
||||||
@@ -36,15 +35,6 @@ public class ReagentStack {
|
|||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReagentStack splitStack(int amount) {
|
|
||||||
ReagentStack copyStack = this.copy();
|
|
||||||
int splitAmount = Math.min(amount, this.amount);
|
|
||||||
copyStack.amount = splitAmount;
|
|
||||||
this.amount -= splitAmount;
|
|
||||||
|
|
||||||
return copyStack;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ReagentStack copy() {
|
public ReagentStack copy() {
|
||||||
return new ReagentStack(this.reagent, this.amount);
|
return new ReagentStack(this.reagent, this.amount);
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-21
@@ -26,7 +26,7 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
public TileSegmentedReagentHandler(int numberOfTanks, int tankSize) {
|
public TileSegmentedReagentHandler(int numberOfTanks, int tankSize) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.attunedTankMap = new HashMap();
|
this.attunedTankMap = new HashMap<>();
|
||||||
this.tanks = new ReagentContainer[numberOfTanks];
|
this.tanks = new ReagentContainer[numberOfTanks];
|
||||||
for (int i = 0; i < numberOfTanks; i++) {
|
for (int i = 0; i < numberOfTanks; i++) {
|
||||||
this.tanks[i] = new ReagentContainer(tankSize);
|
this.tanks[i] = new ReagentContainer(tankSize);
|
||||||
@@ -62,10 +62,10 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
|
|
||||||
NBTTagList tagList = new NBTTagList();
|
NBTTagList tagList = new NBTTagList();
|
||||||
|
|
||||||
for (int i = 0; i < this.tanks.length; i++) {
|
for (ReagentContainer tank : this.tanks) {
|
||||||
NBTTagCompound savedTag = new NBTTagCompound();
|
NBTTagCompound savedTag = new NBTTagCompound();
|
||||||
if (this.tanks[i] != null) {
|
if (tank != null) {
|
||||||
this.tanks[i].writeToNBT(savedTag);
|
tank.writeToNBT(savedTag);
|
||||||
}
|
}
|
||||||
tagList.appendTag(savedTag);
|
tagList.appendTag(savedTag);
|
||||||
}
|
}
|
||||||
@@ -101,8 +101,8 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
ReagentStack remainingStack = resource.copy();
|
ReagentStack remainingStack = resource.copy();
|
||||||
remainingStack.amount = maxFill - totalFill;
|
remainingStack.amount = maxFill - totalFill;
|
||||||
|
|
||||||
boolean doesReagentMatch = tanks[i].getReagent() == null ? false
|
boolean doesReagentMatch = tanks[i].getReagent() != null
|
||||||
: tanks[i].getReagent().isReagentEqual(remainingStack);
|
&& tanks[i].getReagent().isReagentEqual(remainingStack);
|
||||||
|
|
||||||
if (doesReagentMatch) {
|
if (doesReagentMatch) {
|
||||||
totalFill += tanks[i].fill(remainingStack, doFill);
|
totalFill += tanks[i].fill(remainingStack, doFill);
|
||||||
@@ -151,13 +151,13 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
Reagent reagent = resource.reagent;
|
Reagent reagent = resource.reagent;
|
||||||
int drained = 0;
|
int drained = 0;
|
||||||
|
|
||||||
for (int i = 0; i < tanks.length; i++) {
|
for (ReagentContainer tank : tanks) {
|
||||||
if (drained >= maxDrain) {
|
if (drained >= maxDrain) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resource.isReagentEqual(tanks[i].getReagent())) {
|
if (resource.isReagentEqual(tank.getReagent())) {
|
||||||
ReagentStack drainStack = tanks[i].drain(maxDrain - drained, doDrain);
|
ReagentStack drainStack = tank.drain(maxDrain - drained, doDrain);
|
||||||
if (drainStack != null) {
|
if (drainStack != null) {
|
||||||
drained += drainStack.amount;
|
drained += drainStack.amount;
|
||||||
}
|
}
|
||||||
@@ -170,8 +170,8 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
/* Only returns the amount from the first available tank */
|
/* Only returns the amount from the first available tank */
|
||||||
@Override
|
@Override
|
||||||
public ReagentStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
|
public ReagentStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
|
||||||
for (int i = 0; i < tanks.length; i++) {
|
for (ReagentContainer tank : tanks) {
|
||||||
ReagentStack stack = tanks[i].drain(maxDrain, doDrain);
|
ReagentStack stack = tank.drain(maxDrain, doDrain);
|
||||||
if (stack != null) {
|
if (stack != null) {
|
||||||
return stack;
|
return stack;
|
||||||
}
|
}
|
||||||
@@ -226,14 +226,4 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
|
|||||||
public Map<Reagent, Integer> getAttunedTankMap() {
|
public Map<Reagent, Integer> getAttunedTankMap() {
|
||||||
return this.attunedTankMap;
|
return this.attunedTankMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean areTanksEmpty() {
|
|
||||||
for (int i = 0; i < this.tanks.length; i++) {
|
|
||||||
if (tanks[i] != null && tanks[i].reagentStack != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ public class AltarRecipe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack)
|
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack)
|
||||||
&& (this.useTag ? this.areRequiredTagsEqual(comparedStack) : true);
|
&& (!this.useTag || this.areRequiredTagsEqual(comparedStack));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean areRequiredTagsEqual(ItemStack comparedStack) {
|
public boolean areRequiredTagsEqual(ItemStack comparedStack) {
|
||||||
@@ -69,11 +69,10 @@ public class AltarRecipe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean areTagsEqual(NBTTagCompound tag, NBTTagCompound comparedTag) {
|
protected boolean areTagsEqual(NBTTagCompound tag, NBTTagCompound comparedTag) {
|
||||||
Set set = tag.func_150296_c();
|
Set<String> set = tag.func_150296_c();
|
||||||
|
|
||||||
for (Object obj : set) {
|
for (Object obj : set) {
|
||||||
if (obj instanceof String) {
|
if (obj instanceof String str) {
|
||||||
String str = (String) obj;
|
|
||||||
|
|
||||||
NBTBase baseTag = comparedTag.getTag(str);
|
NBTBase baseTag = comparedTag.getTag(str);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
public class BindingRegistry {
|
public class BindingRegistry {
|
||||||
|
|
||||||
public static List<BindingRecipe> bindingRecipes = new LinkedList();
|
public static List<BindingRecipe> bindingRecipes = new LinkedList<>();
|
||||||
|
|
||||||
public static void registerRecipe(ItemStack output, ItemStack input) {
|
public static void registerRecipe(ItemStack output, ItemStack input) {
|
||||||
bindingRecipes.add(new BindingRecipe(output, input));
|
bindingRecipes.add(new BindingRecipe(output, input));
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import net.minecraft.util.StatCollector;
|
|||||||
|
|
||||||
public abstract class SubCommandBase implements ISubCommand {
|
public abstract class SubCommandBase implements ISubCommand {
|
||||||
|
|
||||||
private ICommand parent;
|
private final ICommand parent;
|
||||||
private String name;
|
private final String name;
|
||||||
|
|
||||||
public SubCommandBase(ICommand parent, String name) {
|
public SubCommandBase(ICommand parent, String name) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import net.minecraft.world.World;
|
|||||||
*/
|
*/
|
||||||
public class CompressionRegistry {
|
public class CompressionRegistry {
|
||||||
|
|
||||||
public static List<CompressionHandler> compressionRegistry = new ArrayList();
|
public static List<CompressionHandler> compressionRegistry = new ArrayList<>();
|
||||||
public static Map<ItemStack, Integer> thresholdMap = new HashMap();
|
public static Map<ItemStack, Integer> thresholdMap = new HashMap<>();
|
||||||
|
|
||||||
public static void registerHandler(CompressionHandler handler) {
|
public static void registerHandler(CompressionHandler handler) {
|
||||||
compressionRegistry.add(handler);
|
compressionRegistry.add(handler);
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ public class OrbRecipeRenderer implements IRecipeRenderer {
|
|||||||
guiLeft + guiBase.xSize / 2,
|
guiLeft + guiBase.xSize / 2,
|
||||||
guiTop + 12,
|
guiTop + 12,
|
||||||
0);
|
0);
|
||||||
if (recipe instanceof ShapelessBloodOrbRecipe) {
|
if (recipe instanceof ShapelessBloodOrbRecipe shapelessBloodOrbRecipe) {
|
||||||
ShapelessBloodOrbRecipe shapelessBloodOrbRecipe = (ShapelessBloodOrbRecipe) recipe;
|
|
||||||
List<Object> list = shapelessBloodOrbRecipe.getInput();
|
List<Object> list = shapelessBloodOrbRecipe.getInput();
|
||||||
|
|
||||||
int width = 3;
|
int width = 3;
|
||||||
@@ -60,24 +59,23 @@ public class OrbRecipeRenderer implements IRecipeRenderer {
|
|||||||
|
|
||||||
Object component = list.get(y * width + x);
|
Object component = list.get(y * width + x);
|
||||||
if (component != null) {
|
if (component != null) {
|
||||||
if (component instanceof ItemStack) {
|
if (component instanceof ItemStack item) {
|
||||||
GuiHelper.drawItemStack((ItemStack) component, stackX, stackY);
|
GuiHelper.drawItemStack(item, stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip((ItemStack) component, stackX, stackY);
|
guiBase.renderToolTip(item, stackX, stackY);
|
||||||
}
|
}
|
||||||
} else if (component instanceof Integer) {
|
} else if (component instanceof Integer integer) {
|
||||||
GuiHelper.drawItemStack(APISpellHelper.getOrbForLevel((Integer) component), stackX, stackY);
|
GuiHelper.drawItemStack(APISpellHelper.getOrbForLevel(integer), stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip(
|
guiBase.renderToolTip(APISpellHelper.getOrbForLevel(integer), stackX, stackY);
|
||||||
APISpellHelper.getOrbForLevel((Integer) component),
|
|
||||||
stackX,
|
|
||||||
stackY);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (((ArrayList<ItemStack>) component).isEmpty()) return;
|
@SuppressWarnings("unchecked")
|
||||||
GuiHelper.drawItemStack(((ArrayList<ItemStack>) component).get(0), stackX, stackY);
|
ArrayList<ItemStack> items = (ArrayList<ItemStack>) component;
|
||||||
|
if (items.isEmpty()) return;
|
||||||
|
GuiHelper.drawItemStack(items.get(0), stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip(((ArrayList<ItemStack>) component).get(0), stackX, stackY);
|
guiBase.renderToolTip(items.get(0), stackX, stackY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -99,24 +97,23 @@ public class OrbRecipeRenderer implements IRecipeRenderer {
|
|||||||
int stackY = (y + 1) * 18 + (guiTop + guiBase.ySize / 5);
|
int stackY = (y + 1) * 18 + (guiTop + guiBase.ySize / 5);
|
||||||
Object component = shapedBloodOrbRecipe.getInput()[y * width + x];
|
Object component = shapedBloodOrbRecipe.getInput()[y * width + x];
|
||||||
if (component != null) {
|
if (component != null) {
|
||||||
if (component instanceof ItemStack) {
|
if (component instanceof ItemStack item) {
|
||||||
GuiHelper.drawItemStack((ItemStack) component, stackX, stackY);
|
GuiHelper.drawItemStack(item, stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip((ItemStack) component, stackX, stackY);
|
guiBase.renderToolTip(item, stackX, stackY);
|
||||||
}
|
}
|
||||||
} else if (component instanceof Integer) {
|
} else if (component instanceof Integer integer) {
|
||||||
GuiHelper.drawItemStack(APISpellHelper.getOrbForLevel((Integer) component), stackX, stackY);
|
GuiHelper.drawItemStack(APISpellHelper.getOrbForLevel(integer), stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip(
|
guiBase.renderToolTip(APISpellHelper.getOrbForLevel(integer), stackX, stackY);
|
||||||
APISpellHelper.getOrbForLevel((Integer) component),
|
|
||||||
stackX,
|
|
||||||
stackY);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (((ArrayList<ItemStack>) component).isEmpty()) return;
|
@SuppressWarnings("unchecked")
|
||||||
GuiHelper.drawItemStack(((ArrayList<ItemStack>) component).get(0), stackX, stackY);
|
ArrayList<ItemStack> items = (ArrayList<ItemStack>) component;
|
||||||
|
if (items.isEmpty()) return;
|
||||||
|
GuiHelper.drawItemStack(items.get(0), stackX, stackY);
|
||||||
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
if (GuiHelper.isMouseBetween(mouseX, mouseY, stackX, stackY, 15, 15)) {
|
||||||
guiBase.renderToolTip(((ArrayList<ItemStack>) component).get(0), stackX, stackY);
|
guiBase.renderToolTip(items.get(0), stackX, stackY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,98 +0,0 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.guide;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.Rituals;
|
|
||||||
|
|
||||||
public class PageRitualMultiBlock extends PageMultiBlock {
|
|
||||||
|
|
||||||
private static ItemStack blankStone;
|
|
||||||
private static ItemStack waterStone;
|
|
||||||
private static ItemStack fireStone;
|
|
||||||
private static ItemStack earthStone;
|
|
||||||
private static ItemStack airStone;
|
|
||||||
private static ItemStack duskStone;
|
|
||||||
private static ItemStack dawnStone;
|
|
||||||
|
|
||||||
static {
|
|
||||||
// blankStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.BLANK);
|
|
||||||
// waterStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.WATER);
|
|
||||||
// fireStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.FIRE);
|
|
||||||
// earthStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.EARTH);
|
|
||||||
// airStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.AIR);
|
|
||||||
// duskStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.DUSK);
|
|
||||||
// dawnStone = new ItemStack(ModBlocks.ritualStone, 1, RitualComponent.DAWN);
|
|
||||||
}
|
|
||||||
|
|
||||||
private PageRitualMultiBlock(ItemStack[][][] structure) {
|
|
||||||
super(structure);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static PageRitualMultiBlock getPageForRitual(String ritualID) {
|
|
||||||
return getPageForRitual(Rituals.getRitualList(ritualID));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static PageRitualMultiBlock getPageForRitual(List<RitualComponent> ritualComponents) {
|
|
||||||
int minX = 0;
|
|
||||||
int minY = 0;
|
|
||||||
int minZ = 0;
|
|
||||||
|
|
||||||
int maxX = 0;
|
|
||||||
int maxY = 0;
|
|
||||||
int maxZ = 0;
|
|
||||||
|
|
||||||
for (RitualComponent comp : ritualComponents) {
|
|
||||||
minX = Math.min(comp.getX(), minX);
|
|
||||||
minY = Math.min(comp.getY(), minY);
|
|
||||||
minZ = Math.min(comp.getZ(), minZ);
|
|
||||||
|
|
||||||
maxX = Math.max(comp.getX(), maxX);
|
|
||||||
maxY = Math.max(comp.getY(), maxY);
|
|
||||||
maxZ = Math.max(comp.getZ(), maxZ);
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println(
|
|
||||||
"Min: (" + minX + ", " + minY + ", " + minZ + "), Max: (" + maxX + ", " + maxY + ", " + maxZ + ")");
|
|
||||||
|
|
||||||
ItemStack[][][] tempStructure = new ItemStack[maxY - minY + 1][maxX - minX + 1][maxZ - minZ + 1]; // First value
|
|
||||||
// is
|
|
||||||
// vertical,
|
|
||||||
// second is
|
|
||||||
// down to the
|
|
||||||
// left, third
|
|
||||||
// is down to
|
|
||||||
// the right
|
|
||||||
|
|
||||||
for (RitualComponent comp : ritualComponents) {
|
|
||||||
tempStructure[comp.getY() - minY][comp.getX() - minX][comp.getZ() - minZ] = getStackForRitualStone(
|
|
||||||
comp.getStoneType());
|
|
||||||
}
|
|
||||||
|
|
||||||
// tempStructure[-minY][-minX][-minZ] = new ItemStack(ModBlocks.blockMasterStone);
|
|
||||||
|
|
||||||
return new PageRitualMultiBlock(tempStructure);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static ItemStack getStackForRitualStone(int type) {
|
|
||||||
switch (type) {
|
|
||||||
case RitualComponent.BLANK:
|
|
||||||
return blankStone;
|
|
||||||
case RitualComponent.WATER:
|
|
||||||
return waterStone;
|
|
||||||
case RitualComponent.FIRE:
|
|
||||||
return fireStone;
|
|
||||||
case RitualComponent.EARTH:
|
|
||||||
return earthStone;
|
|
||||||
case RitualComponent.AIR:
|
|
||||||
return airStone;
|
|
||||||
case RitualComponent.DUSK:
|
|
||||||
return duskStone;
|
|
||||||
case RitualComponent.DAWN:
|
|
||||||
return dawnStone;
|
|
||||||
}
|
|
||||||
return blankStone;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
public class HarvestRegistry {
|
public class HarvestRegistry {
|
||||||
|
|
||||||
public static List<IHarvestHandler> handlerList = new ArrayList();
|
public static List<IHarvestHandler> handlerList = new ArrayList<>();
|
||||||
|
|
||||||
public static void registerHarvestHandler(IHarvestHandler handler) {
|
public static void registerHarvestHandler(IHarvestHandler handler) {
|
||||||
handlerList.add(handler);
|
handlerList.add(handler);
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.nbt.NBTTagList;
|
import net.minecraft.nbt.NBTTagList;
|
||||||
import net.minecraft.util.DamageSource;
|
import net.minecraft.util.DamageSource;
|
||||||
|
import net.minecraft.util.EnumChatFormatting;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.DimensionManager;
|
import net.minecraftforge.common.DimensionManager;
|
||||||
@@ -35,7 +36,7 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
private static final String harvestLevelSuffix = "harvestLvl";
|
private static final String harvestLevelSuffix = "harvestLvl";
|
||||||
private static final String digLevelSuffix = "digLvl";
|
private static final String digLevelSuffix = "digLvl";
|
||||||
private static final String tagName = "BloodMagicTool";
|
private static final String tagName = "BloodMagicTool";
|
||||||
private Random rand = new Random();
|
private final Random rand = new Random();
|
||||||
|
|
||||||
public ItemSpellMultiTool() {
|
public ItemSpellMultiTool() {
|
||||||
super();
|
super();
|
||||||
@@ -50,32 +51,26 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase,
|
public boolean hitEntity(ItemStack item, EntityLivingBase target, EntityLivingBase attacker) {
|
||||||
EntityLivingBase par3EntityLivingBase) {
|
float damage = this.getCustomItemAttack(item);
|
||||||
float damage = this.getCustomItemAttack(par1ItemStack);
|
|
||||||
|
|
||||||
float f = (float) par3EntityLivingBase.getEntityAttribute(SharedMonsterAttributes.attackDamage)
|
SpellParadigmTool parad = this.loadParadigmFromStack(item);
|
||||||
.getAttributeValue();
|
|
||||||
|
|
||||||
SpellParadigmTool parad = this.loadParadigmFromStack(par1ItemStack);
|
|
||||||
|
|
||||||
if (parad != null) {
|
if (parad != null) {
|
||||||
parad.onLeftClickEntity(par1ItemStack, par2EntityLivingBase, par3EntityLivingBase);
|
parad.onLeftClickEntity(item, target, attacker);
|
||||||
|
damage += parad.getAddedDamageForEntity(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
damage += parad.getAddedDamageForEntity(par2EntityLivingBase);
|
if (rand.nextFloat() < this.getCritChance(item)) {
|
||||||
|
|
||||||
if (rand.nextFloat() < this.getCritChance(par1ItemStack)) {
|
|
||||||
damage *= 1.75f;
|
damage *= 1.75f;
|
||||||
}
|
}
|
||||||
|
|
||||||
damage *= f;
|
damage *= (float) attacker.getEntityAttribute(SharedMonsterAttributes.attackDamage).getAttributeValue();
|
||||||
|
|
||||||
if (par3EntityLivingBase instanceof EntityPlayer) {
|
if (attacker instanceof EntityPlayer player) {
|
||||||
par2EntityLivingBase
|
target.attackEntityFrom(DamageSource.causePlayerDamage(player), damage);
|
||||||
.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) par3EntityLivingBase), damage);
|
|
||||||
} else {
|
} else {
|
||||||
par2EntityLivingBase.attackEntityFrom(DamageSource.causeMobDamage(par3EntityLivingBase), damage);
|
target.attackEntityFrom(DamageSource.causeMobDamage(attacker), damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -223,24 +218,24 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
String testString = "pickaxe";
|
String testString = "pickaxe";
|
||||||
|
|
||||||
Material[] matList = this.getMaterialsForToolclass(testString);
|
Material[] matList = this.getMaterialsForToolclass(testString);
|
||||||
for (int i = 0; i < matList.length; i++) {
|
for (Material material : matList) {
|
||||||
if (matList[i] == mat) {
|
if (material == mat) {
|
||||||
return testString;
|
return testString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testString = "shovel";
|
testString = "shovel";
|
||||||
matList = this.getMaterialsForToolclass(testString);
|
matList = this.getMaterialsForToolclass(testString);
|
||||||
for (int i = 0; i < matList.length; i++) {
|
for (Material material : matList) {
|
||||||
if (matList[i] == mat) {
|
if (material == mat) {
|
||||||
return testString;
|
return testString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testString = "axe";
|
testString = "axe";
|
||||||
matList = this.getMaterialsForToolclass(testString);
|
matList = this.getMaterialsForToolclass(testString);
|
||||||
for (int i = 0; i < matList.length; i++) {
|
for (Material material : matList) {
|
||||||
if (matList[i] == mat) {
|
if (material == mat) {
|
||||||
return testString;
|
return testString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -248,8 +243,9 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Set<String> getToolClasses(ItemStack stack) {
|
public Set<String> getToolClasses(ItemStack stack) {
|
||||||
Set<String> set = new HashSet();
|
Set<String> set = new HashSet<>();
|
||||||
|
|
||||||
if (this.getHarvestLevel(stack, "pickaxe") > -1) {
|
if (this.getHarvestLevel(stack, "pickaxe") > -1) {
|
||||||
set.add("pickaxe");
|
set.add("pickaxe");
|
||||||
@@ -270,10 +266,10 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
public float getDigSpeed(ItemStack stack, Block block, int meta) {
|
public float getDigSpeed(ItemStack stack, Block block, int meta) {
|
||||||
String toolClass = block.getHarvestTool(meta);
|
String toolClass = block.getHarvestTool(meta);
|
||||||
|
|
||||||
if (toolClass == null || toolClass.equals("")) {
|
if (toolClass == null || toolClass.isEmpty()) {
|
||||||
toolClass = getToolClassOfMaterial(block.getMaterial());
|
toolClass = getToolClassOfMaterial(block.getMaterial());
|
||||||
|
|
||||||
if (toolClass == "") {
|
if (toolClass.isEmpty()) {
|
||||||
return 1.0f;
|
return 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -329,11 +325,6 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUpdate(ItemStack toolStack, World world, Entity par3Entity, int par4, boolean par5) {
|
public void onUpdate(ItemStack toolStack, World world, Entity par3Entity, int par4, boolean par5) {
|
||||||
if (world.isRemote) {
|
if (world.isRemote) {
|
||||||
@@ -371,7 +362,7 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
if (mop != null && mop.typeOfHit.equals(MovingObjectPosition.MovingObjectType.BLOCK)) {
|
if (mop != null && mop.typeOfHit.equals(MovingObjectPosition.MovingObjectType.BLOCK)) {
|
||||||
cost = parad.onRightClickBlock(par1ItemStack, par3EntityPlayer, par2World, mop);
|
cost = parad.onRightClickBlock(par1ItemStack, par3EntityPlayer, par2World, mop);
|
||||||
} else {
|
} else {
|
||||||
cost = parad.onRightClickAir(par1ItemStack, par2World, par3EntityPlayer);
|
cost = parad.onRightClickAir(par1ItemStack, par3EntityPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost > 0) {
|
if (cost > 0) {
|
||||||
@@ -382,23 +373,21 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean adv) {
|
||||||
par3List.add("A mace filled with ancient alchemy");
|
tooltip.add("A mace filled with ancient alchemy");
|
||||||
|
|
||||||
if (!(par1ItemStack.getTagCompound() == null)) {
|
if (!(item.getTagCompound() == null)) {
|
||||||
if (!par1ItemStack.getTagCompound().getString("ownerName").equals("")) {
|
if (!item.getTagCompound().getString("ownerName").isEmpty()) {
|
||||||
par3List.add("Current owner: " + par1ItemStack.getTagCompound().getString("ownerName"));
|
tooltip.add("Current owner: " + item.getTagCompound().getString("ownerName"));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String str : this.getToolListString(par1ItemStack)) {
|
tooltip.addAll(this.getToolListString(item));
|
||||||
par3List.add(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
par3List.add("");
|
tooltip.add("");
|
||||||
float damage = this.getCustomItemAttack(par1ItemStack);
|
float damage = this.getCustomItemAttack(item);
|
||||||
par3List.add("\u00A79+" + ((int) (damage * 10)) / 10.0f + " " + "Attack Damage");
|
tooltip.add(EnumChatFormatting.BLUE + "+" + ((int) (damage * 10)) / 10.0f + " " + "Attack Damage");
|
||||||
float critChance = ((int) (this.getCritChance(par1ItemStack) * 1000)) / 10.0f;
|
float critChance = ((int) (this.getCritChance(item) * 1000)) / 10.0f;
|
||||||
par3List.add("\u00A79+" + critChance + "% " + "Crit Chance");
|
tooltip.add(EnumChatFormatting.BLUE + "+" + critChance + "% " + "Crit Chance");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -519,25 +508,24 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
public void setDuration(ItemStack container, World world, int duration) {
|
public void setDuration(ItemStack container, World world, int duration) {
|
||||||
if (world.isRemote) {
|
if (world.isRemote) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
World overWorld = DimensionManager.getWorld(0);
|
||||||
|
long worldtime = overWorld.getTotalWorldTime();
|
||||||
|
|
||||||
|
if (container.hasTagCompound()) {
|
||||||
|
NBTTagCompound tag = container.getTagCompound().getCompoundTag(tagName);
|
||||||
|
|
||||||
|
tag.setLong("duration", Math.max(duration + worldtime, worldtime));
|
||||||
|
|
||||||
|
container.getTagCompound().setTag(tagName, tag);
|
||||||
} else {
|
} else {
|
||||||
World overWorld = DimensionManager.getWorld(0);
|
container.setTagCompound(new NBTTagCompound());
|
||||||
long worldtime = overWorld.getTotalWorldTime();
|
|
||||||
|
|
||||||
if (container.hasTagCompound()) {
|
NBTTagCompound tag = container.getTagCompound().getCompoundTag(tagName);
|
||||||
NBTTagCompound tag = container.getTagCompound().getCompoundTag(tagName);
|
|
||||||
|
|
||||||
tag.setLong("duration", Math.max(duration + worldtime, worldtime));
|
tag.setLong("duration", Math.max(duration + worldtime, worldtime));
|
||||||
|
|
||||||
container.getTagCompound().setTag(tagName, tag);
|
container.getTagCompound().setTag(tagName, tag);
|
||||||
} else {
|
|
||||||
container.setTagCompound(new NBTTagCompound());
|
|
||||||
|
|
||||||
NBTTagCompound tag = container.getTagCompound().getCompoundTag(tagName);
|
|
||||||
|
|
||||||
tag.setLong("duration", Math.max(duration + worldtime, worldtime));
|
|
||||||
|
|
||||||
container.getTagCompound().setTag(tagName, tag);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,9 +574,9 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
|
|
||||||
NBTTagList tagList = tagiest.getTagList("Effects", Constants.NBT.TAG_COMPOUND);
|
NBTTagList tagList = tagiest.getTagList("Effects", Constants.NBT.TAG_COMPOUND);
|
||||||
|
|
||||||
List<SpellEffect> spellEffectList = new LinkedList();
|
List<SpellEffect> spellEffectList = new LinkedList<>();
|
||||||
for (int i = 0; i < tagList.tagCount(); i++) {
|
for (int i = 0; i < tagList.tagCount(); i++) {
|
||||||
NBTTagCompound tag = (NBTTagCompound) tagList.getCompoundTagAt(i);
|
NBTTagCompound tag = tagList.getCompoundTagAt(i);
|
||||||
|
|
||||||
SpellEffect eff = SpellEffect.getEffectFromTag(tag);
|
SpellEffect eff = SpellEffect.getEffectFromTag(tag);
|
||||||
if (eff != null) {
|
if (eff != null) {
|
||||||
@@ -667,9 +655,9 @@ public class ItemSpellMultiTool extends Item {
|
|||||||
|
|
||||||
NBTTagList tagList = tagiest.getTagList("ToolTips", Constants.NBT.TAG_COMPOUND);
|
NBTTagList tagList = tagiest.getTagList("ToolTips", Constants.NBT.TAG_COMPOUND);
|
||||||
|
|
||||||
List<String> toolTipList = new LinkedList();
|
List<String> toolTipList = new LinkedList<>();
|
||||||
for (int i = 0; i < tagList.tagCount(); i++) {
|
for (int i = 0; i < tagList.tagCount(); i++) {
|
||||||
NBTTagCompound tag = (NBTTagCompound) tagList.getCompoundTagAt(i);
|
NBTTagCompound tag = tagList.getCompoundTagAt(i);
|
||||||
|
|
||||||
String str = tag.getString("tip");
|
String str = tag.getString("tip");
|
||||||
if (str != null) {
|
if (str != null) {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package WayofTime.alchemicalWizardry.api.items;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
@@ -25,8 +24,8 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
|||||||
private static final int MAX_CRAFT_GRID_WIDTH = 3;
|
private static final int MAX_CRAFT_GRID_WIDTH = 3;
|
||||||
private static final int MAX_CRAFT_GRID_HEIGHT = 3;
|
private static final int MAX_CRAFT_GRID_HEIGHT = 3;
|
||||||
|
|
||||||
private ItemStack output = null;
|
private final ItemStack output;
|
||||||
private Object[] input = null;
|
private final Object[] input;
|
||||||
public int width = 0;
|
public int width = 0;
|
||||||
public int height = 0;
|
public int height = 0;
|
||||||
private boolean mirrored = true;
|
private boolean mirrored = true;
|
||||||
@@ -42,7 +41,7 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
|||||||
public ShapedBloodOrbRecipe(ItemStack result, Object... recipe) {
|
public ShapedBloodOrbRecipe(ItemStack result, Object... recipe) {
|
||||||
output = result.copy();
|
output = result.copy();
|
||||||
|
|
||||||
String shape = "";
|
StringBuilder shape = new StringBuilder();
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
if (recipe[idx] instanceof Boolean) {
|
if (recipe[idx] instanceof Boolean) {
|
||||||
@@ -59,26 +58,26 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
|||||||
|
|
||||||
for (String s : parts) {
|
for (String s : parts) {
|
||||||
width = s.length();
|
width = s.length();
|
||||||
shape += s;
|
shape.append(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
height = parts.length;
|
height = parts.length;
|
||||||
} else {
|
} else {
|
||||||
while (recipe[idx] instanceof String) {
|
while (recipe[idx] instanceof String) {
|
||||||
String s = (String) recipe[idx++];
|
String s = (String) recipe[idx++];
|
||||||
shape += s;
|
shape.append(s);
|
||||||
width = s.length();
|
width = s.length();
|
||||||
height++;
|
height++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width * height != shape.length()) {
|
if (width * height != shape.length()) {
|
||||||
String ret = "Invalid shaped ore recipe: ";
|
StringBuilder ret = new StringBuilder("Invalid shaped ore recipe: ");
|
||||||
for (Object tmp : recipe) {
|
for (Object tmp : recipe) {
|
||||||
ret += tmp + ", ";
|
ret.append(tmp).append(", ");
|
||||||
}
|
}
|
||||||
ret += output;
|
ret.append(output);
|
||||||
throw new RuntimeException(ret);
|
throw new RuntimeException(ret.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
HashMap<Character, Object> itemMap = new HashMap<Character, Object>();
|
HashMap<Character, Object> itemMap = new HashMap<Character, Object>();
|
||||||
@@ -87,36 +86,29 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
|||||||
Character chr = (Character) recipe[idx];
|
Character chr = (Character) recipe[idx];
|
||||||
Object in = recipe[idx + 1];
|
Object in = recipe[idx + 1];
|
||||||
|
|
||||||
if (in instanceof IBloodOrb
|
switch (in) {
|
||||||
|| (in instanceof ItemStack && ((ItemStack) in).getItem() instanceof IBloodOrb)) { // If the item is
|
case IBloodOrb orb -> itemMap.put(chr, orb.getOrbLevel());
|
||||||
// an instanceof
|
case ItemStack stack when stack.getItem() instanceof IBloodOrb orb ->
|
||||||
// IBloodOrb then
|
itemMap.put(chr, orb.getOrbLevel());
|
||||||
// save the level
|
case ItemStack stack -> itemMap.put(chr, stack.copy());
|
||||||
// of the
|
case Integer i -> itemMap.put(chr, i);
|
||||||
// orb
|
case Item item -> itemMap.put(chr, new ItemStack(item));
|
||||||
if (in instanceof ItemStack) itemMap.put(chr, ((IBloodOrb) ((ItemStack) in).getItem()).getOrbLevel());
|
case Block block -> itemMap.put(chr, new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
else itemMap.put(chr, ((IBloodOrb) in).getOrbLevel());
|
case String string -> itemMap.put(chr, OreDictionary.getOres(string));
|
||||||
} else if (in instanceof ItemStack) {
|
case null, default -> {
|
||||||
itemMap.put(chr, ((ItemStack) in).copy());
|
StringBuilder ret = new StringBuilder("Invalid shaped ore recipe: ");
|
||||||
} else if (in instanceof Item) {
|
for (Object tmp : recipe) {
|
||||||
itemMap.put(chr, new ItemStack((Item) in));
|
ret.append(tmp).append(", ");
|
||||||
} else if (in instanceof Block) {
|
}
|
||||||
itemMap.put(chr, new ItemStack((Block) in, 1, OreDictionary.WILDCARD_VALUE));
|
ret.append(output);
|
||||||
} else if (in instanceof String) {
|
throw new RuntimeException(ret.toString());
|
||||||
itemMap.put(chr, OreDictionary.getOres((String) in));
|
|
||||||
} else {
|
|
||||||
String ret = "Invalid shaped ore recipe: ";
|
|
||||||
for (Object tmp : recipe) {
|
|
||||||
ret += tmp + ", ";
|
|
||||||
}
|
}
|
||||||
ret += output;
|
|
||||||
throw new RuntimeException(ret);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input = new Object[width * height];
|
input = new Object[width * height];
|
||||||
int x = 0;
|
int x = 0;
|
||||||
for (char chr : shape.toCharArray()) {
|
for (char chr : shape.toString().toCharArray()) {
|
||||||
input[x++] = itemMap.get(chr);
|
input[x++] = itemMap.get(chr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,29 +185,27 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ItemStack slot = inv.getStackInRowAndColumn(x, y);
|
ItemStack slot = inv.getStackInRowAndColumn(x, y);
|
||||||
// If target is integer, then we should be check the blood orb value of the item instead
|
// If target is integer, then we should check the blood orb value of the item instead
|
||||||
if (target instanceof Integer) {
|
if (target instanceof Integer orbLevel) {
|
||||||
if (slot != null && slot.getItem() instanceof IBloodOrb) {
|
if (slot == null || !(slot.getItem() instanceof IBloodOrb orb)) {
|
||||||
IBloodOrb orb = (IBloodOrb) slot.getItem();
|
return false;
|
||||||
if (orb.getOrbLevel() < (Integer) target) {
|
}
|
||||||
return false;
|
if (orb.getOrbLevel() < orbLevel) {
|
||||||
}
|
return false;
|
||||||
} else return false;
|
}
|
||||||
} else if (target instanceof ItemStack) {
|
} else if (target instanceof ItemStack stack) {
|
||||||
if (!OreDictionary.itemMatches((ItemStack) target, slot, false)) {
|
if (!OreDictionary.itemMatches(stack, slot, false)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (target instanceof ArrayList) {
|
} else if (target instanceof ArrayList) {
|
||||||
boolean matched = false;
|
boolean matched = false;
|
||||||
|
for (ItemStack item : ((ArrayList<ItemStack>) target)) {
|
||||||
Iterator<ItemStack> itr = ((ArrayList<ItemStack>) target).iterator();
|
if (OreDictionary.itemMatches(item, slot, false)) {
|
||||||
while (itr.hasNext() && !matched) {
|
matched = true;
|
||||||
matched = OreDictionary.itemMatches(itr.next(), slot, false);
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!matched) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
if (!matched) return false;
|
||||||
} else if (target == null && slot != null) {
|
} else if (target == null && slot != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.items;
|
package WayofTime.alchemicalWizardry.api.items;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
@@ -22,8 +20,8 @@ import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
|||||||
*/
|
*/
|
||||||
public class ShapelessBloodOrbRecipe implements IRecipe {
|
public class ShapelessBloodOrbRecipe implements IRecipe {
|
||||||
|
|
||||||
private ItemStack output = null;
|
private final ItemStack output;
|
||||||
private ArrayList<Object> input = new ArrayList<Object>();
|
private final ArrayList<Object> input = new ArrayList<>();
|
||||||
|
|
||||||
public ShapelessBloodOrbRecipe(Block result, Object... recipe) {
|
public ShapelessBloodOrbRecipe(Block result, Object... recipe) {
|
||||||
this(new ItemStack(result), recipe);
|
this(new ItemStack(result), recipe);
|
||||||
@@ -36,34 +34,30 @@ public class ShapelessBloodOrbRecipe implements IRecipe {
|
|||||||
public ShapelessBloodOrbRecipe(ItemStack result, Object... recipe) {
|
public ShapelessBloodOrbRecipe(ItemStack result, Object... recipe) {
|
||||||
output = result.copy();
|
output = result.copy();
|
||||||
for (Object in : recipe) {
|
for (Object in : recipe) {
|
||||||
if (in instanceof IBloodOrb) { // If the item is an instanceof IBloodOrb then save the level of the orb
|
switch (in) {
|
||||||
input.add(((IBloodOrb) in).getOrbLevel());
|
case IBloodOrb orb -> input.add(orb.getOrbLevel());
|
||||||
} else if (in instanceof ItemStack) {
|
case ItemStack stack when stack.getItem() instanceof IBloodOrb orb -> input.add(orb.getOrbLevel());
|
||||||
if (((ItemStack) in).getItem() instanceof IBloodOrb) {
|
case Integer i -> input.add(i);
|
||||||
input.add(((IBloodOrb) ((ItemStack) in).getItem()).getOrbLevel());
|
case ItemStack stack -> input.add(stack.copy());
|
||||||
} else input.add(((ItemStack) in).copy());
|
case Item item -> input.add(new ItemStack(item));
|
||||||
} else if (in instanceof Item) {
|
case Block block -> input.add(new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
input.add(new ItemStack((Item) in));
|
case String string -> input.add(OreDictionary.getOres(string));
|
||||||
} else if (in instanceof Block) {
|
case null, default -> {
|
||||||
input.add(new ItemStack((Block) in));
|
StringBuilder ret = new StringBuilder("Invalid shapeless ore recipe: ");
|
||||||
} else if (in instanceof String) {
|
for (Object tmp : recipe) {
|
||||||
input.add(OreDictionary.getOres((String) in));
|
ret.append(tmp).append(", ");
|
||||||
} else {
|
}
|
||||||
String ret = "Invalid shapeless ore recipe: ";
|
ret.append(output);
|
||||||
for (Object tmp : recipe) {
|
throw new RuntimeException(ret.toString());
|
||||||
ret += tmp + ", ";
|
|
||||||
}
|
}
|
||||||
ret += output;
|
|
||||||
throw new RuntimeException(ret);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
ShapelessBloodOrbRecipe(ShapelessRecipes recipe, Map<ItemStack, String> replacements) {
|
ShapelessBloodOrbRecipe(ShapelessRecipes recipe, Map<ItemStack, String> replacements) {
|
||||||
output = recipe.getRecipeOutput();
|
output = recipe.getRecipeOutput();
|
||||||
|
|
||||||
for (ItemStack ingred : ((List<ItemStack>) recipe.recipeItems)) {
|
for (ItemStack ingred : recipe.recipeItems) {
|
||||||
Object finalObj = ingred;
|
Object finalObj = ingred;
|
||||||
for (Entry<ItemStack, String> replace : replacements.entrySet()) {
|
for (Entry<ItemStack, String> replace : replacements.entrySet()) {
|
||||||
if (OreDictionary.itemMatches(replace.getKey(), ingred, false)) {
|
if (OreDictionary.itemMatches(replace.getKey(), ingred, false)) {
|
||||||
@@ -92,36 +86,35 @@ public class ShapelessBloodOrbRecipe implements IRecipe {
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public boolean matches(InventoryCrafting var1, World world) {
|
public boolean matches(InventoryCrafting inv, World world) {
|
||||||
ArrayList<Object> required = new ArrayList<Object>(input);
|
ArrayList<Object> required = new ArrayList<>(input);
|
||||||
|
|
||||||
for (int x = 0; x < var1.getSizeInventory(); x++) {
|
for (int x = 0; x < inv.getSizeInventory(); x++) {
|
||||||
ItemStack slot = var1.getStackInSlot(x);
|
ItemStack slot = inv.getStackInSlot(x);
|
||||||
|
|
||||||
if (slot != null) {
|
if (slot != null) {
|
||||||
boolean inRecipe = false;
|
boolean inRecipe = false;
|
||||||
Iterator<Object> req = required.iterator();
|
|
||||||
|
|
||||||
while (req.hasNext()) {
|
for (Object next : required) {
|
||||||
boolean match = false;
|
boolean match = false;
|
||||||
|
|
||||||
Object next = req.next();
|
// If target is integer, then we should check the blood orb value of the item instead
|
||||||
|
if (next instanceof Integer orbLevel) {
|
||||||
// If target is integer, then we should be check the blood orb value of the item instead
|
if (!(slot.getItem() instanceof IBloodOrb orb)) {
|
||||||
if (next instanceof Integer) {
|
return false;
|
||||||
if (slot != null && slot.getItem() instanceof IBloodOrb) {
|
}
|
||||||
IBloodOrb orb = (IBloodOrb) slot.getItem();
|
if (orb.getOrbLevel() < orbLevel) {
|
||||||
if (orb.getOrbLevel() < (Integer) next) {
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
} else return false;
|
|
||||||
match = true;
|
match = true;
|
||||||
} else if (next instanceof ItemStack) {
|
} else if (next instanceof ItemStack item) {
|
||||||
match = OreDictionary.itemMatches((ItemStack) next, slot, false);
|
match = OreDictionary.itemMatches(item, slot, false);
|
||||||
} else if (next instanceof ArrayList) {
|
} else if (next instanceof ArrayList) {
|
||||||
Iterator<ItemStack> itr = ((ArrayList<ItemStack>) next).iterator();
|
for (ItemStack item : ((ArrayList<ItemStack>) next)) {
|
||||||
while (itr.hasNext() && !match) {
|
if (OreDictionary.itemMatches(item, slot, false)) {
|
||||||
match = OreDictionary.itemMatches(itr.next(), slot, false);
|
match = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,183 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.items.interfaces;
|
package WayofTime.alchemicalWizardry.api.items.interfaces;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyItems;
|
||||||
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
|
|
||||||
public interface IBindable {
|
public interface IBindable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used by bound tools and the energy blaster/bazooka to check if they should skip their right click function.
|
||||||
|
* Drains the soul network by the amount returned by rightClickCost.
|
||||||
|
*/
|
||||||
|
default boolean checkRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||||
|
if (toggle(item, world, player)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (world.isRemote) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isActive(item) || SpellHelper.isFakePlayer(world, player)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isBoundTool() && AlchemicalWizardry.disableBoundToolsRightClick) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (player.isPotionActive(AlchemicalWizardry.customPotionInhibit)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(player.capabilities.isCreativeMode || EnergyItems.syphonBatteries(item, player, rightClickCost()))) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the active state and owner information to an item if it has the relevant tags.
|
||||||
|
*/
|
||||||
|
default void addBindingInformation(ItemStack item, List<String> tooltip) {
|
||||||
|
NBTTagCompound itemTag = getTag(item);
|
||||||
|
if (itemTag.getBoolean("isActive")) {
|
||||||
|
tooltip.add(StatCollector.translateToLocal("tooltip.sigil.state.activated"));
|
||||||
|
} else if (itemTag.hasKey("isActive")) { // Only if present and set to false rather than not present at all
|
||||||
|
tooltip.add(StatCollector.translateToLocal("tooltip.sigil.state.deactivated"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!itemTag.getString("ownerName").isEmpty()) {
|
||||||
|
tooltip.add(
|
||||||
|
StatCollector.translateToLocal("tooltip.owner.currentowner") + " "
|
||||||
|
+ itemTag.getString("ownerName"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void setActive(ItemStack item, boolean state) {
|
||||||
|
NBTTagCompound itemTag = getTag(item);
|
||||||
|
itemTag.setBoolean("isActive", state);
|
||||||
|
}
|
||||||
|
|
||||||
|
static boolean isActive(ItemStack item) {
|
||||||
|
NBTTagCompound itemTag = getTag(item);
|
||||||
|
return itemTag.getBoolean("isActive");
|
||||||
|
}
|
||||||
|
|
||||||
|
static NBTTagCompound getTag(ItemStack item) {
|
||||||
|
NBTTagCompound itemTag = item.getTagCompound();
|
||||||
|
|
||||||
|
if (itemTag == null) {
|
||||||
|
item.setTagCompound(new NBTTagCompound());
|
||||||
|
itemTag = item.getTagCompound();
|
||||||
|
}
|
||||||
|
return itemTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
default boolean toggle(ItemStack item, World world, EntityPlayer player) {
|
||||||
|
if (!checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||||
|
setActive(item, !isActive(item));
|
||||||
|
setDrainTick(item, world);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the current tick is the proper tick to do a passive drain based on getDrainTicks. If it is, it runs
|
||||||
|
* doPassiveDrain and returns true. Otherwise, returns false.
|
||||||
|
*/
|
||||||
|
default boolean checkPassiveDrain(ItemStack item, World world, EntityPlayer player) {
|
||||||
|
NBTTagCompound itemTag = getTag(item);
|
||||||
|
if (world.getTotalWorldTime() % this.drainTicks() == itemTag.getInteger("worldTimeDelay")
|
||||||
|
&& itemTag.getBoolean("isActive")) {
|
||||||
|
this.doPassiveDrain(item, player);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The action to take when checkPassiveDrain is run on the proper tick based on getDrainTicks.
|
||||||
|
*/
|
||||||
|
default void doPassiveDrain(ItemStack item, EntityPlayer player) {
|
||||||
|
if (!player.capabilities.isCreativeMode) {
|
||||||
|
if (!EnergyItems.syphonBatteries(item, player, drainCost())) {
|
||||||
|
setActive(item, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the drain tick delay based on the current world age and getDrainTicks().
|
||||||
|
*/
|
||||||
|
default void setDrainTick(ItemStack item, World world) {
|
||||||
|
getTag(item).setInteger("worldTimeDelay", (int) (world.getTotalWorldTime() - 1) % this.drainTicks());
|
||||||
|
}
|
||||||
|
|
||||||
|
static boolean checkAndSetItemOwner(ItemStack item, EntityPlayer player) {
|
||||||
|
return !SpellHelper.isFakePlayer(player) && SoulNetworkHandler.checkAndSetItemPlayer(item, player);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the item's owner even if it already has one.
|
||||||
|
*/
|
||||||
|
static void setItemOwner(ItemStack item, String ownerName) {
|
||||||
|
NBTTagCompound tag = IBindable.getTag(item);
|
||||||
|
tag.setString("ownerName", ownerName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the item's owner only if it does not already have one.
|
||||||
|
*/
|
||||||
|
static void checkAndSetItemOwner(ItemStack item, String ownerName) {
|
||||||
|
NBTTagCompound tag = IBindable.getTag(item);
|
||||||
|
if (tag.getString("ownerName").isEmpty()) {
|
||||||
|
tag.setString("ownerName", ownerName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static String getOwnerName(ItemStack item) {
|
||||||
|
NBTTagCompound tag = IBindable.getTag(item);
|
||||||
|
return tag.getString("ownerName");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of ticks between passive drains from the soul network while the item is active.
|
||||||
|
*/
|
||||||
|
default int drainTicks() {
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if the right click function should be disabled with the config disableBoundToolsRightClick.
|
||||||
|
*/
|
||||||
|
default boolean isBoundTool() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The cost to use the right click function of this item. Used by bound tools and the Energy Blaster/Bazooka.
|
||||||
|
*/
|
||||||
|
default int rightClickCost() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The amount of LP drained from the soul network for each passive drain while the item is active.
|
||||||
|
*/
|
||||||
|
default int drainCost() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -5,4 +5,8 @@ public interface IBloodOrb {
|
|||||||
int getMaxEssence();
|
int getMaxEssence();
|
||||||
|
|
||||||
int getOrbLevel();
|
int getOrbLevel();
|
||||||
|
|
||||||
|
default boolean isFilledForFree() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,38 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.items.interfaces;
|
package WayofTime.alchemicalWizardry.api.items.interfaces;
|
||||||
|
|
||||||
public interface ISigil {
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyItems;
|
||||||
|
|
||||||
|
public interface ISigil extends IBindable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggles the state of the sigil. Returns true if the sigil is active after the toggle or false if it is inactive
|
||||||
|
* after the toggle.
|
||||||
|
*/
|
||||||
|
default boolean toggleSigil(ItemStack item, World world, EntityPlayer player) {
|
||||||
|
IBindable.setActive(item, !IBindable.isActive(item));
|
||||||
|
|
||||||
|
if (!player.capabilities.isCreativeMode && !EnergyItems.syphonBatteries(item, player, this.drainCost())) {
|
||||||
|
IBindable.setActive(item, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IBindable.isActive(item)) {
|
||||||
|
item.setItemDamage(1);
|
||||||
|
this.setDrainTick(item, world);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
item.setItemDamage(item.getMaxDamage());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return false if this sigil should not be able to be put in the Sigil of Holding.
|
||||||
|
*/
|
||||||
|
default boolean canBeStored() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -32,8 +32,8 @@ public class LocalRitualStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setLocation(Int3 location) {
|
public void setLocation(Int3 location) {
|
||||||
this.xCoord = location.xCoord;
|
this.xCoord = location.x();
|
||||||
this.yCoord = location.yCoord;
|
this.yCoord = location.y();
|
||||||
this.zCoord = location.zCoord;
|
this.zCoord = location.z();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.rituals;
|
package WayofTime.alchemicalWizardry.api.rituals;
|
||||||
|
|
||||||
public class RitualComponent {
|
public record RitualComponent(int x, int y, int z, int stoneType) {
|
||||||
|
|
||||||
private int x;
|
|
||||||
private int y;
|
|
||||||
private int z;
|
|
||||||
private int stoneType;
|
|
||||||
public static final int BLANK = 0;
|
public static final int BLANK = 0;
|
||||||
public static final int WATER = 1;
|
public static final int WATER = 1;
|
||||||
public static final int FIRE = 2;
|
public static final int FIRE = 2;
|
||||||
@@ -14,52 +10,21 @@ public class RitualComponent {
|
|||||||
public static final int DUSK = 5;
|
public static final int DUSK = 5;
|
||||||
public static final int DAWN = 6;
|
public static final int DAWN = 6;
|
||||||
|
|
||||||
public RitualComponent(int x, int y, int z, int stoneType) {
|
public int x(int direction) {
|
||||||
this.x = x;
|
return switch (direction) {
|
||||||
this.y = y;
|
case 2 -> -this.z();
|
||||||
this.z = z;
|
case 3 -> -this.x();
|
||||||
this.stoneType = stoneType;
|
case 4 -> this.z();
|
||||||
|
default -> this.x();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getX() {
|
public int z(int direction) {
|
||||||
return this.x;
|
return switch (direction) {
|
||||||
}
|
case 2 -> this.x();
|
||||||
|
case 3 -> -this.z();
|
||||||
public int getY() {
|
case 4 -> -this.x();
|
||||||
return this.y;
|
default -> this.z();
|
||||||
}
|
};
|
||||||
|
|
||||||
public int getZ() {
|
|
||||||
return this.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getX(int direction) {
|
|
||||||
switch (direction) {
|
|
||||||
case 2:
|
|
||||||
return -this.getZ();
|
|
||||||
case 3:
|
|
||||||
return -this.getX();
|
|
||||||
case 4:
|
|
||||||
return this.getZ();
|
|
||||||
default:
|
|
||||||
return this.getX();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getZ(int direction) {
|
|
||||||
switch (direction) {
|
|
||||||
case 2:
|
|
||||||
return this.getX();
|
|
||||||
case 3:
|
|
||||||
return -this.getZ();
|
|
||||||
case 4:
|
|
||||||
return -this.getX();
|
|
||||||
default:
|
|
||||||
return this.getZ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getStoneType() {
|
|
||||||
return this.stoneType;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -27,8 +27,8 @@ public class Rituals {
|
|||||||
|
|
||||||
public final MRSRenderer customRenderer;
|
public final MRSRenderer customRenderer;
|
||||||
|
|
||||||
public static Map<String, Rituals> ritualMap = new HashMap();
|
public static Map<String, Rituals> ritualMap = new HashMap<>();
|
||||||
public static List<String> keyList = new LinkedList();
|
public static List<String> keyList = new LinkedList<>();
|
||||||
|
|
||||||
public Rituals(int crystalLevel, int actCost, RitualEffect effect, String name, MRSRenderer renderer) {
|
public Rituals(int crystalLevel, int actCost, RitualEffect effect, String name, MRSRenderer renderer) {
|
||||||
this.crystalLevel = crystalLevel;
|
this.crystalLevel = crystalLevel;
|
||||||
@@ -83,11 +83,9 @@ public class Rituals {
|
|||||||
|
|
||||||
public void removeRitualFromList() {
|
public void removeRitualFromList() {
|
||||||
if (ritualMap.containsValue(this)) {
|
if (ritualMap.containsValue(this)) {
|
||||||
ritualMap.remove(ritualMap.remove(this.name));
|
ritualMap.remove(this.name);
|
||||||
}
|
|
||||||
if (keyList.contains(this.name)) {
|
|
||||||
keyList.remove(this.name);
|
|
||||||
}
|
}
|
||||||
|
keyList.remove(this.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String checkValidRitual(World world, int x, int y, int z) {
|
public static String checkValidRitual(World world, int x, int y, int z) {
|
||||||
@@ -132,17 +130,17 @@ public class Rituals {
|
|||||||
TileEntity te;
|
TileEntity te;
|
||||||
|
|
||||||
for (RitualComponent rc : ritual) {
|
for (RitualComponent rc : ritual) {
|
||||||
test = world.getBlock(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction));
|
test = world.getBlock(x + rc.x(direction), y + rc.y(), z + rc.z(direction));
|
||||||
te = world.getTileEntity(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction));
|
te = world.getTileEntity(x + rc.x(direction), y + rc.y(), z + rc.z(direction));
|
||||||
|
|
||||||
if (!(test instanceof IRitualStone && ((IRitualStone) test).isRuneType(
|
if (!(test instanceof IRitualStone && ((IRitualStone) test).isRuneType(
|
||||||
world,
|
world,
|
||||||
x + rc.getX(direction),
|
x + rc.x(direction),
|
||||||
y,
|
y,
|
||||||
z + rc.getZ(direction),
|
z + rc.z(direction),
|
||||||
world.getBlockMetadata(x + rc.getX(direction), y + rc.getY(), z + rc.getZ(direction)),
|
world.getBlockMetadata(x + rc.x(direction), y + rc.y(), z + rc.z(direction)),
|
||||||
rc.getStoneType()))
|
rc.stoneType()))
|
||||||
&& !(te instanceof ITileRitualStone && ((ITileRitualStone) te).isRuneType(rc.getStoneType()))) {
|
&& !(te instanceof ITileRitualStone && ((ITileRitualStone) te).isRuneType(rc.stoneType()))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -287,7 +285,7 @@ public class Rituals {
|
|||||||
String firstKey = "";
|
String firstKey = "";
|
||||||
|
|
||||||
for (String str : keyList) {
|
for (String str : keyList) {
|
||||||
if (firstKey.equals("")) {
|
if (firstKey.isEmpty()) {
|
||||||
firstKey = str;
|
firstKey = str;
|
||||||
}
|
}
|
||||||
if (hasSpotted) {
|
if (hasSpotted) {
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ import WayofTime.alchemicalWizardry.api.tile.IBloodAltar;
|
|||||||
public class PlayerSacrificeHandler {
|
public class PlayerSacrificeHandler {
|
||||||
|
|
||||||
public static float scalingOfSacrifice = 0.001f;
|
public static float scalingOfSacrifice = 0.001f;
|
||||||
public static int soulFrayDuration = 400;
|
public static int soulFrayDuration = 240;
|
||||||
public static Potion soulFrayId;
|
public static Potion soulFrayId;
|
||||||
|
|
||||||
public static float getPlayerIncense(EntityPlayer player) {
|
public static float getPlayerIncense(EntityPlayer player) {
|
||||||
|
|||||||
+3
-4
@@ -24,7 +24,7 @@ import com.mojang.authlib.GameProfile;
|
|||||||
public class ComplexNetworkHandler {
|
public class ComplexNetworkHandler {
|
||||||
|
|
||||||
public static String fileName = "config/BloodMagic/soulnetworkKeys";
|
public static String fileName = "config/BloodMagic/soulnetworkKeys";
|
||||||
static HashMap<UUID, String> keyMap = new HashMap();
|
static HashMap<UUID, String> keyMap = new HashMap<>();
|
||||||
|
|
||||||
public static UUID getUUIDFromPlayer(EntityPlayer player) {
|
public static UUID getUUIDFromPlayer(EntityPlayer player) {
|
||||||
return player.getPersistentID();
|
return player.getPersistentID();
|
||||||
@@ -90,13 +90,12 @@ public class ComplexNetworkHandler {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
br = new BufferedReader(new FileReader(save));
|
br = new BufferedReader(new FileReader(save));
|
||||||
HashMap schema = gson.fromJson(br, keyMap.getClass());
|
|
||||||
|
|
||||||
keyMap = schema;
|
keyMap = gson.fromJson(br, keyMap.getClass());
|
||||||
|
|
||||||
if (keyMap != null) {
|
if (keyMap != null) {
|
||||||
for (Entry<UUID, String> entry : keyMap.entrySet()) {
|
for (Entry<UUID, String> entry : keyMap.entrySet()) {
|
||||||
System.out.println("" + entry.getValue() + " gave: " + entry.getKey());
|
System.out.println(entry.getValue() + " gave: " + entry.getKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
|
|||||||
@@ -5,23 +5,28 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||||||
public class LifeEssenceNetwork extends net.minecraft.world.WorldSavedData {
|
public class LifeEssenceNetwork extends net.minecraft.world.WorldSavedData {
|
||||||
|
|
||||||
public int currentEssence;
|
public int currentEssence;
|
||||||
|
public int maxEssence;
|
||||||
public int maxOrb;
|
public int maxOrb;
|
||||||
|
|
||||||
public LifeEssenceNetwork(String par1Str) {
|
public LifeEssenceNetwork(String par1Str) {
|
||||||
super(par1Str);
|
super(par1Str);
|
||||||
currentEssence = 0;
|
currentEssence = 0;
|
||||||
|
// can be lower than currentEssence (overfilled) with runes of the orb
|
||||||
|
maxEssence = 1;
|
||||||
maxOrb = 0;
|
maxOrb = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
||||||
currentEssence = nbttagcompound.getInteger("currentEssence");
|
currentEssence = nbttagcompound.getInteger("currentEssence");
|
||||||
|
maxEssence = nbttagcompound.getInteger("maxEssence");
|
||||||
maxOrb = nbttagcompound.getInteger("maxOrb");
|
maxOrb = nbttagcompound.getInteger("maxOrb");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
||||||
nbttagcompound.setInteger("currentEssence", currentEssence);
|
nbttagcompound.setInteger("currentEssence", currentEssence);
|
||||||
|
nbttagcompound.setInteger("maxEssence", maxEssence);
|
||||||
nbttagcompound.setInteger("maxOrb", maxOrb);
|
nbttagcompound.setInteger("maxOrb", maxOrb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+107
-58
@@ -14,6 +14,9 @@ import WayofTime.alchemicalWizardry.api.event.AddToNetworkEvent;
|
|||||||
import WayofTime.alchemicalWizardry.api.event.ItemBindEvent;
|
import WayofTime.alchemicalWizardry.api.event.ItemBindEvent;
|
||||||
import WayofTime.alchemicalWizardry.api.event.ItemDrainInContainerEvent;
|
import WayofTime.alchemicalWizardry.api.event.ItemDrainInContainerEvent;
|
||||||
import WayofTime.alchemicalWizardry.api.event.ItemDrainNetworkEvent;
|
import WayofTime.alchemicalWizardry.api.event.ItemDrainNetworkEvent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.eventhandler.Event;
|
import cpw.mods.fml.common.eventhandler.Event;
|
||||||
import cpw.mods.fml.common.eventhandler.Event.Result;
|
import cpw.mods.fml.common.eventhandler.Event.Result;
|
||||||
|
|
||||||
@@ -21,7 +24,7 @@ public class SoulNetworkHandler {
|
|||||||
|
|
||||||
public static boolean syphonFromNetworkWhileInContainer(ItemStack ist, int damageToBeDone) {
|
public static boolean syphonFromNetworkWhileInContainer(ItemStack ist, int damageToBeDone) {
|
||||||
String ownerName = "";
|
String ownerName = "";
|
||||||
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").equals(""))) {
|
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").isEmpty())) {
|
||||||
ownerName = ist.getTagCompound().getString("ownerName");
|
ownerName = ist.getTagCompound().getString("ownerName");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,12 +37,17 @@ public class SoulNetworkHandler {
|
|||||||
return syphonFromNetwork(event.ownerNetwork, event.drainAmount) >= damageToBeDone;
|
return syphonFromNetwork(event.ownerNetwork, event.drainAmount) >= damageToBeDone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getMaxEssence(String ownerName)} to get maximum soul network capacity
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static int getCurrentMaxOrb(String ownerName) {
|
public static int getCurrentMaxOrb(String ownerName) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -50,12 +58,35 @@ public class SoulNetworkHandler {
|
|||||||
return data.maxOrb;
|
return data.maxOrb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int getMaxEssence(String ownerName) {
|
||||||
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
World world = mcServer.worldServers[0];
|
||||||
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
|
if (data == null) {
|
||||||
|
data = new LifeEssenceNetwork(ownerName);
|
||||||
|
world.setItemData(ownerName, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
return data.maxEssence;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #setMaxEssenceToMax(String ownerName, int maxEssence)} to set maximum soul network
|
||||||
|
* capacity
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void setMaxOrbToMax(String ownerName, int maxOrb) {
|
public static void setMaxOrbToMax(String ownerName, int maxOrb) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -67,27 +98,42 @@ public class SoulNetworkHandler {
|
|||||||
data.markDirty();
|
data.markDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getMaximumForOrbTier(int maxOrb) {
|
public static void setMaxEssenceToMax(String ownerName, int maxEssence) {
|
||||||
switch (maxOrb) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
case 1:
|
if (mcServer == null) {
|
||||||
return 5000;
|
return;
|
||||||
case 2:
|
|
||||||
return 25000;
|
|
||||||
case 3:
|
|
||||||
return 150000;
|
|
||||||
case 4:
|
|
||||||
return 1000000;
|
|
||||||
case 5:
|
|
||||||
return 10000000;
|
|
||||||
case 6:
|
|
||||||
return 30000000;
|
|
||||||
default:
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
World world = mcServer.worldServers[0];
|
||||||
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
|
if (data == null) {
|
||||||
|
data = new LifeEssenceNetwork(ownerName);
|
||||||
|
world.setItemData(ownerName, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
data.maxEssence = Math.max(maxEssence, data.maxEssence);
|
||||||
|
data.markDirty();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getMaxEssence(String ownerName)} to get maximum soul network capacity
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static int getMaximumForOrbTier(int maxOrb) {
|
||||||
|
return switch (maxOrb) {
|
||||||
|
case 1 -> 5000;
|
||||||
|
case 2 -> 25000;
|
||||||
|
case 3 -> 150000;
|
||||||
|
case 4 -> 1000000;
|
||||||
|
case 5 -> 10000000;
|
||||||
|
case 6 -> 30000000;
|
||||||
|
default -> 1;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int syphonFromNetwork(ItemStack ist, int damageToBeDone) {
|
public static int syphonFromNetwork(ItemStack ist, int damageToBeDone) {
|
||||||
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").equals(""))) {
|
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").isEmpty())) {
|
||||||
String ownerName = ist.getTagCompound().getString("ownerName");
|
String ownerName = ist.getTagCompound().getString("ownerName");
|
||||||
|
|
||||||
return syphonFromNetwork(ownerName, damageToBeDone);
|
return syphonFromNetwork(ownerName, damageToBeDone);
|
||||||
@@ -96,7 +142,7 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int syphonFromNetwork(String ownerName, int damageToBeDone) {
|
public static int syphonFromNetwork(String ownerName, int damageToBeDone) {
|
||||||
MinecraftServer mcServer = MinecraftServer.getServer();
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
if (mcServer == null || mcServer.worldServers.length == 0) {
|
if (mcServer == null || mcServer.worldServers.length == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -124,7 +170,7 @@ public class SoulNetworkHandler {
|
|||||||
*
|
*
|
||||||
* @param ist Owned itemStack
|
* @param ist Owned itemStack
|
||||||
* @param player Player using the item
|
* @param player Player using the item
|
||||||
* @param drain
|
* @param drain The amount of LP to drain
|
||||||
* @return True if the action should be executed and false if it should not. Always returns false if client-sided.
|
* @return True if the action should be executed and false if it should not. Always returns false if client-sided.
|
||||||
*/
|
*/
|
||||||
public static boolean syphonAndDamageFromNetwork(ItemStack ist, EntityPlayer player, int drain) {
|
public static boolean syphonAndDamageFromNetwork(ItemStack ist, EntityPlayer player, int drain) {
|
||||||
@@ -132,7 +178,7 @@ public class SoulNetworkHandler {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").equals(""))) {
|
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").isEmpty())) {
|
||||||
String ownerName = ist.getTagCompound().getString("ownerName");
|
String ownerName = ist.getTagCompound().getString("ownerName");
|
||||||
|
|
||||||
ItemDrainNetworkEvent event = new ItemDrainNetworkEvent(player, ownerName, ist, drain);
|
ItemDrainNetworkEvent event = new ItemDrainNetworkEvent(player, ownerName, ist, drain);
|
||||||
@@ -164,15 +210,13 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
World world = player.worldObj;
|
World world = player.worldObj;
|
||||||
if (world != null) {
|
world.playSoundEffect(
|
||||||
world.playSoundEffect(
|
(float) player.posX + 0.5F,
|
||||||
(double) ((float) player.posX + 0.5F),
|
(float) player.posY + 0.5F,
|
||||||
(double) ((float) player.posY + 0.5F),
|
(float) player.posZ + 0.5F,
|
||||||
(double) ((float) player.posZ + 0.5F),
|
"random.fizz",
|
||||||
"random.fizz",
|
0.5F,
|
||||||
0.5F,
|
2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F);
|
||||||
2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F);
|
|
||||||
}
|
|
||||||
|
|
||||||
int amount = SoulNetworkHandler.syphonFromNetwork(ownerName, damageToBeDone);
|
int amount = SoulNetworkHandler.syphonFromNetwork(ownerName, damageToBeDone);
|
||||||
|
|
||||||
@@ -182,7 +226,7 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean canSyphonFromOnlyNetwork(ItemStack ist, int damageToBeDone) {
|
public static boolean canSyphonFromOnlyNetwork(ItemStack ist, int damageToBeDone) {
|
||||||
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").equals(""))) {
|
if (ist.getTagCompound() != null && !(ist.getTagCompound().getString("ownerName").isEmpty())) {
|
||||||
String ownerName = ist.getTagCompound().getString("ownerName");
|
String ownerName = ist.getTagCompound().getString("ownerName");
|
||||||
|
|
||||||
return canSyphonFromOnlyNetwork(ownerName, damageToBeDone);
|
return canSyphonFromOnlyNetwork(ownerName, damageToBeDone);
|
||||||
@@ -192,11 +236,12 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean canSyphonFromOnlyNetwork(String ownerName, int damageToBeDone) {
|
public static boolean canSyphonFromOnlyNetwork(String ownerName, int damageToBeDone) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -208,11 +253,12 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getCurrentEssence(String ownerName) {
|
public static int getCurrentEssence(String ownerName) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -224,11 +270,12 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setCurrentEssence(String ownerName, int essence) {
|
public static void setCurrentEssence(String ownerName, int essence) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -243,9 +290,6 @@ public class SoulNetworkHandler {
|
|||||||
/**
|
/**
|
||||||
* A method to add to an owner's network up to a maximum value.
|
* A method to add to an owner's network up to a maximum value.
|
||||||
*
|
*
|
||||||
* @param ownerName
|
|
||||||
* @param addedEssence
|
|
||||||
* @param maximum
|
|
||||||
* @return amount added to the network
|
* @return amount added to the network
|
||||||
*/
|
*/
|
||||||
public static int addCurrentEssenceToMaximum(String ownerName, int addedEssence, int maximum) {
|
public static int addCurrentEssenceToMaximum(String ownerName, int addedEssence, int maximum) {
|
||||||
@@ -255,11 +299,12 @@ public class SoulNetworkHandler {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = MinecraftServer.getServer().worldServers[0];
|
World world = mcServer.worldServers[0];
|
||||||
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, event.ownerNetwork);
|
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, event.ownerNetwork);
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@@ -273,7 +318,7 @@ public class SoulNetworkHandler {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int newEss = Math.min(event.maximum, currEss + event.addedAmount);
|
int newEss = (int) Math.min(Integer.MAX_VALUE, Math.min(event.maximum, (long) currEss + event.addedAmount));
|
||||||
if (event.getResult() != Event.Result.DENY) {
|
if (event.getResult() != Event.Result.DENY) {
|
||||||
data.currentEssence = newEss;
|
data.currentEssence = newEss;
|
||||||
}
|
}
|
||||||
@@ -319,7 +364,15 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checkAndSetItemPlayer(ItemStack item, EntityPlayer player) {
|
public static boolean checkAndSetItemPlayer(ItemStack item, EntityPlayer player) {
|
||||||
if (item.hasTagCompound() && !item.getTagCompound().getString("ownerName").equals("")) return true;
|
if (item.getItem() instanceof IBloodOrb orb) {
|
||||||
|
String currentOwner = item.hasTagCompound() ? item.getTagCompound().getString("ownerName") : "";
|
||||||
|
String thisPlayer = getUsername(player);
|
||||||
|
if (currentOwner.isEmpty() || currentOwner.equals(thisPlayer)) {
|
||||||
|
setMaxEssenceToMax(thisPlayer, orb.getMaxEssence());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.hasTagCompound() && !item.getTagCompound().getString("ownerName").isEmpty()) return true;
|
||||||
|
|
||||||
ItemBindEvent event = new ItemBindEvent(player, SoulNetworkHandler.getUsername(player), item);
|
ItemBindEvent event = new ItemBindEvent(player, SoulNetworkHandler.getUsername(player), item);
|
||||||
|
|
||||||
@@ -333,14 +386,9 @@ public class SoulNetworkHandler {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public static void checkAndSetItemOwner(ItemStack item, String ownerName) {
|
public static void checkAndSetItemOwner(ItemStack item, String ownerName) {
|
||||||
if (item.getTagCompound() == null) {
|
IBindable.checkAndSetItemOwner(item, ownerName);
|
||||||
item.setTagCompound(new NBTTagCompound());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (item.getTagCompound().getString("ownerName").equals("")) {
|
|
||||||
item.getTagCompound().setString("ownerName", ownerName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUsername(EntityPlayer player) {
|
public static String getUsername(EntityPlayer player) {
|
||||||
@@ -348,14 +396,15 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static EntityPlayer getPlayerForUsername(String str) {
|
public static EntityPlayer getPlayerForUsername(String str) {
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return MinecraftServer.getServer().getConfigurationManager().func_152612_a(str);
|
return mcServer.getConfigurationManager().func_152612_a(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void causeNauseaToPlayer(ItemStack stack) {
|
public static void causeNauseaToPlayer(ItemStack stack) {
|
||||||
if (stack.getTagCompound() != null && !(stack.getTagCompound().getString("ownerName").equals(""))) {
|
if (stack.getTagCompound() != null && !(stack.getTagCompound().getString("ownerName").isEmpty())) {
|
||||||
String ownerName = stack.getTagCompound().getString("ownerName");
|
String ownerName = stack.getTagCompound().getString("ownerName");
|
||||||
|
|
||||||
SoulNetworkHandler.causeNauseaToPlayer(ownerName);
|
SoulNetworkHandler.causeNauseaToPlayer(ownerName);
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.crafting.CraftingManager;
|
|
||||||
import net.minecraft.item.crafting.IRecipe;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.util.MathHelper;
|
import net.minecraft.util.MathHelper;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
@@ -21,14 +19,12 @@ import net.minecraft.world.World;
|
|||||||
import WayofTime.alchemicalWizardry.ModItems;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
|
|
||||||
public class APISpellHelper {
|
public class APISpellHelper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thanks Kihira! <3
|
* Thanks Kihira! <3
|
||||||
*
|
*
|
||||||
* @param player
|
|
||||||
* @return persistent data tag
|
* @return persistent data tag
|
||||||
*/
|
*/
|
||||||
private static NBTTagCompound getPersistentDataTag(EntityPlayer player) {
|
private static NBTTagCompound getPersistentDataTag(EntityPlayer player) {
|
||||||
@@ -174,22 +170,15 @@ public class APISpellHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack getOrbForLevel(int level) {
|
public static ItemStack getOrbForLevel(int level) {
|
||||||
switch (level) {
|
return switch (level) {
|
||||||
case 1:
|
case 1 -> new ItemStack(ModItems.weakBloodOrb);
|
||||||
return new ItemStack(ModItems.weakBloodOrb);
|
case 2 -> new ItemStack(ModItems.apprenticeBloodOrb);
|
||||||
case 2:
|
case 3 -> new ItemStack(ModItems.magicianBloodOrb);
|
||||||
return new ItemStack(ModItems.apprenticeBloodOrb);
|
case 4 -> new ItemStack(ModItems.masterBloodOrb);
|
||||||
case 3:
|
case 5 -> new ItemStack(ModItems.archmageBloodOrb);
|
||||||
return new ItemStack(ModItems.magicianBloodOrb);
|
case 6 -> new ItemStack(ModItems.transcendentBloodOrb);
|
||||||
case 4:
|
default -> new ItemStack(Blocks.fire);
|
||||||
return new ItemStack(ModItems.masterBloodOrb);
|
};
|
||||||
case 5:
|
|
||||||
return new ItemStack(ModItems.archmageBloodOrb);
|
|
||||||
case 6:
|
|
||||||
return new ItemStack(ModItems.transcendentBloodOrb);
|
|
||||||
default:
|
|
||||||
return new ItemStack(Blocks.fire);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range) {
|
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range) {
|
||||||
@@ -207,10 +196,6 @@ public class APISpellHelper {
|
|||||||
float f6 = MathHelper.sin(-f1 * 0.017453292F);
|
float f6 = MathHelper.sin(-f1 * 0.017453292F);
|
||||||
float f7 = f4 * f5;
|
float f7 = f4 * f5;
|
||||||
float f8 = f3 * f5;
|
float f8 = f3 * f5;
|
||||||
// if (player instanceof EntityPlayerMP)
|
|
||||||
{
|
|
||||||
// d3 = ((EntityPlayerMP) player).theItemInWorldManager.getBlockReachDistance();
|
|
||||||
}
|
|
||||||
Vec3 vec31 = vec3.addVector((double) f7 * range, (double) f6 * range, (double) f8 * range);
|
Vec3 vec31 = vec3.addVector((double) f7 * range, (double) f6 * range, (double) f8 * range);
|
||||||
return world.func_147447_a(vec3, vec31, par3, !par3, par3);
|
return world.func_147447_a(vec3, vec31, par3, !par3, par3);
|
||||||
}
|
}
|
||||||
@@ -259,90 +244,18 @@ public class APISpellHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getNumeralForInt(int num) {
|
public static String getNumeralForInt(int num) {
|
||||||
switch (num) {
|
return switch (num) {
|
||||||
case 1:
|
case 1 -> "I";
|
||||||
return "I";
|
case 2 -> "II";
|
||||||
case 2:
|
case 3 -> "III";
|
||||||
return "II";
|
case 4 -> "IV";
|
||||||
case 3:
|
case 5 -> "V";
|
||||||
return "III";
|
case 6 -> "VI";
|
||||||
case 4:
|
case 7 -> "VII";
|
||||||
return "IV";
|
case 8 -> "VIII";
|
||||||
case 5:
|
case 9 -> "IX";
|
||||||
return "V";
|
case 10 -> "X";
|
||||||
case 6:
|
default -> "";
|
||||||
return "VI";
|
};
|
||||||
case 7:
|
|
||||||
return "VII";
|
|
||||||
case 8:
|
|
||||||
return "VIII";
|
|
||||||
case 9:
|
|
||||||
return "IX";
|
|
||||||
case 10:
|
|
||||||
return "X";
|
|
||||||
default:
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Block getBlockForString(String str) {
|
|
||||||
String[] parts = str.split(":");
|
|
||||||
String modId = parts[0];
|
|
||||||
String name = parts[1];
|
|
||||||
return GameRegistry.findBlock(modId, name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Item getItemForString(String str) {
|
|
||||||
String[] parts = str.split(":");
|
|
||||||
String modId = parts[0];
|
|
||||||
String name = parts[1];
|
|
||||||
return GameRegistry.findItem(modId, name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ItemStack getItemStackForString(String str) {
|
|
||||||
String[] parts = str.split(":");
|
|
||||||
int meta = 0;
|
|
||||||
if (parts.length >= 3) {
|
|
||||||
meta = Integer.decode(parts[2]);
|
|
||||||
} else if (parts.length < 2) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
String modId = parts[0];
|
|
||||||
String name = parts[1];
|
|
||||||
|
|
||||||
String itemString = modId + ":" + name;
|
|
||||||
Item item = APISpellHelper.getItemForString(itemString);
|
|
||||||
if (item != null) {
|
|
||||||
return new ItemStack(item, 1, meta);
|
|
||||||
}
|
|
||||||
|
|
||||||
Block block = APISpellHelper.getBlockForString(itemString);
|
|
||||||
if (block != null) {
|
|
||||||
return new ItemStack(block, 1, meta);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static IRecipe getRecipeForItemStack(ItemStack reqStack) // Does not match NBT. Durrr! -smack-
|
|
||||||
{
|
|
||||||
if (reqStack == null) {
|
|
||||||
return null; // Why are you even doing this to yourself!? You know this can't be healthy!
|
|
||||||
}
|
|
||||||
List craftingList = CraftingManager.getInstance().getRecipeList();
|
|
||||||
for (Object posRecipe : craftingList) {
|
|
||||||
if (posRecipe instanceof IRecipe) {
|
|
||||||
ItemStack outputStack = ((IRecipe) posRecipe).getRecipeOutput();
|
|
||||||
if (outputStack != null) {
|
|
||||||
if (outputStack.getItem() == reqStack.getItem() && (outputStack.getItem().getHasSubtypes()
|
|
||||||
? outputStack.getItemDamage() == reqStack.getItemDamage()
|
|
||||||
: true)) {
|
|
||||||
return (IRecipe) posRecipe;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package WayofTime.alchemicalWizardry.api.spell;
|
package WayofTime.alchemicalWizardry.api.spell;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -43,35 +42,27 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
// Custom variables
|
// Custom variables
|
||||||
private int maxRicochet = 0;
|
private int maxRicochet = 0;
|
||||||
private float damage = 1;
|
private float damage = 1;
|
||||||
public List<IProjectileImpactEffect> impactList = new ArrayList();
|
public List<IProjectileImpactEffect> impactList = new ArrayList<>();
|
||||||
private boolean penetration = false;
|
private boolean penetration = false;
|
||||||
public List<IProjectileUpdateEffect> updateEffectList = new ArrayList();
|
public List<IProjectileUpdateEffect> updateEffectList = new ArrayList<>();
|
||||||
public List<SpellEffect> spellEffectList = new LinkedList();
|
public List<SpellEffect> spellEffectList = new LinkedList<>();
|
||||||
private int blocksBroken = 0;
|
private int blocksBroken = 0;
|
||||||
|
|
||||||
public EntitySpellProjectile(World par1World) {
|
public EntitySpellProjectile(World world) {
|
||||||
super(par1World);
|
super(world);
|
||||||
this.setSize(0.5F, 0.5F);
|
this.setSize(0.5F, 0.5F);
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntitySpellProjectile(World par1World, double par2, double par4, double par6) {
|
public EntitySpellProjectile(World world, EntityPlayer player) {
|
||||||
super(par1World);
|
super(world);
|
||||||
this.setSize(0.5F, 0.5F);
|
shootingEntity = player;
|
||||||
this.setPosition(par2, par4, par6);
|
|
||||||
yOffset = 0.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public EntitySpellProjectile(World par1World, EntityPlayer par2EntityPlayer) {
|
|
||||||
super(par1World);
|
|
||||||
shootingEntity = par2EntityPlayer;
|
|
||||||
float par3 = 0.8F;
|
|
||||||
this.setSize(0.1F, 0.1F);
|
this.setSize(0.1F, 0.1F);
|
||||||
this.setLocationAndAngles(
|
this.setLocationAndAngles(
|
||||||
par2EntityPlayer.posX,
|
player.posX,
|
||||||
par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(),
|
player.posY + player.getEyeHeight(),
|
||||||
par2EntityPlayer.posZ,
|
player.posZ,
|
||||||
par2EntityPlayer.rotationYaw,
|
player.rotationYaw,
|
||||||
par2EntityPlayer.rotationPitch);
|
player.rotationPitch);
|
||||||
posX -= MathHelper.cos(rotationYaw / 180.0F * (float) Math.PI) * 0.16F;
|
posX -= MathHelper.cos(rotationYaw / 180.0F * (float) Math.PI) * 0.16F;
|
||||||
posY -= 0.2D;
|
posY -= 0.2D;
|
||||||
posZ -= MathHelper.sin(rotationYaw / 180.0F * (float) Math.PI) * 0.16F;
|
posZ -= MathHelper.sin(rotationYaw / 180.0F * (float) Math.PI) * 0.16F;
|
||||||
@@ -82,7 +73,7 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
motionZ = MathHelper.cos(rotationYaw / 180.0F * (float) Math.PI)
|
motionZ = MathHelper.cos(rotationYaw / 180.0F * (float) Math.PI)
|
||||||
* MathHelper.cos(rotationPitch / 180.0F * (float) Math.PI);
|
* MathHelper.cos(rotationPitch / 180.0F * (float) Math.PI);
|
||||||
motionY = -MathHelper.sin(rotationPitch / 180.0F * (float) Math.PI);
|
motionY = -MathHelper.sin(rotationPitch / 180.0F * (float) Math.PI);
|
||||||
this.setThrowableHeading(motionX, motionY, motionZ, par3 * 1.5F, 1.0F);
|
this.setThrowableHeading(motionX, motionY, motionZ, 1.2f, 1.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -90,62 +81,48 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
dataWatcher.addObject(16, 0);
|
dataWatcher.addObject(16, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setThrowableHeading(double var1, double var3, double var5, float var7, float var8) {
|
public void setThrowableHeading(double x, double y, double z, float velocity, float inaccuracy) {
|
||||||
float var9 = MathHelper.sqrt_double(var1 * var1 + var3 * var3 + var5 * var5);
|
float distance = MathHelper.sqrt_double(x * x + y * y + z * z);
|
||||||
var1 /= var9;
|
x /= distance;
|
||||||
var3 /= var9;
|
y /= distance;
|
||||||
var5 /= var9;
|
z /= distance;
|
||||||
var1 += rand.nextGaussian() * 0.007499999832361937D * var8;
|
x += rand.nextGaussian() * 0.0075D * inaccuracy;
|
||||||
var3 += rand.nextGaussian() * 0.007499999832361937D * var8;
|
y += rand.nextGaussian() * 0.0075D * inaccuracy;
|
||||||
var5 += rand.nextGaussian() * 0.007499999832361937D * var8;
|
z += rand.nextGaussian() * 0.0075D * inaccuracy;
|
||||||
var1 *= var7;
|
x *= velocity;
|
||||||
var3 *= var7;
|
y *= velocity;
|
||||||
var5 *= var7;
|
z *= velocity;
|
||||||
motionX = var1;
|
motionX = x;
|
||||||
motionY = var3;
|
motionY = y;
|
||||||
motionZ = var5;
|
motionZ = z;
|
||||||
float var10 = MathHelper.sqrt_double(var1 * var1 + var5 * var5);
|
float horizontalDistance = MathHelper.sqrt_double(x * x + z * z);
|
||||||
prevRotationYaw = rotationYaw = (float) (Math.atan2(var1, var5) * 180.0D / Math.PI);
|
prevRotationYaw = rotationYaw = (float) (Math.atan2(x, z) * 180.0D / Math.PI);
|
||||||
prevRotationPitch = rotationPitch = (float) (Math.atan2(var3, var10) * 180.0D / Math.PI);
|
prevRotationPitch = rotationPitch = (float) (Math.atan2(y, horizontalDistance) * 180.0D / Math.PI);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
/**
|
public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int rotationIncrements) {
|
||||||
* Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX,
|
this.setPosition(x, y, z);
|
||||||
* posY, posZ, yaw, pitch
|
this.setRotation(yaw, pitch);
|
||||||
*/
|
|
||||||
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) {
|
|
||||||
this.setPosition(par1, par3, par5);
|
|
||||||
this.setRotation(par7, par8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
/**
|
public void setVelocity(double x, double y, double z) {
|
||||||
* Sets the velocity to the args. Args: x, y, z
|
motionX = x;
|
||||||
*/
|
motionY = y;
|
||||||
public void setVelocity(double par1, double par3, double par5) {
|
motionZ = z;
|
||||||
motionX = par1;
|
|
||||||
motionY = par3;
|
|
||||||
motionZ = par5;
|
|
||||||
if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {
|
if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {
|
||||||
float var7 = MathHelper.sqrt_double(par1 * par1 + par5 * par5);
|
float horizontalDistance = MathHelper.sqrt_double(x * x + z * z);
|
||||||
prevRotationYaw = rotationYaw = (float) (Math.atan2(par1, par5) * 180.0D / Math.PI);
|
prevRotationYaw = rotationYaw = (float) (Math.atan2(x, z) * 180.0D / Math.PI);
|
||||||
prevRotationPitch = rotationPitch = (float) (Math.atan2(par3, var7) * 180.0D / Math.PI);
|
prevRotationPitch = rotationPitch = (float) (Math.atan2(y, horizontalDistance) * 180.0D / Math.PI);
|
||||||
prevRotationPitch = rotationPitch;
|
|
||||||
prevRotationYaw = rotationYaw;
|
prevRotationYaw = rotationYaw;
|
||||||
this.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
|
this.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Called to update the entity's position/logic.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void onUpdate() {
|
public void onUpdate() {
|
||||||
super.onUpdate();
|
super.onUpdate();
|
||||||
@@ -154,17 +131,16 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
this.setDead();
|
this.setDead();
|
||||||
}
|
}
|
||||||
if (shootingEntity == null) {
|
if (shootingEntity == null) {
|
||||||
List players = worldObj.getEntitiesWithinAABB(
|
List<EntityPlayer> players = worldObj.getEntitiesWithinAABB(
|
||||||
EntityPlayer.class,
|
EntityPlayer.class,
|
||||||
AxisAlignedBB.getBoundingBox(posX - 1, posY - 1, posZ - 1, posX + 1, posY + 1, posZ + 1));
|
AxisAlignedBB.getBoundingBox(posX - 1, posY - 1, posZ - 1, posX + 1, posY + 1, posZ + 1));
|
||||||
Iterator i = players.iterator();
|
|
||||||
double closestDistance = Double.MAX_VALUE;
|
double closestDistance = Double.MAX_VALUE;
|
||||||
EntityPlayer closestPlayer = null;
|
EntityPlayer closestPlayer = null;
|
||||||
while (i.hasNext()) {
|
for (EntityPlayer player : players) {
|
||||||
EntityPlayer e = (EntityPlayer) i.next();
|
double distance = player.getDistanceToEntity(this);
|
||||||
double distance = e.getDistanceToEntity(this);
|
|
||||||
if (distance < closestDistance) {
|
if (distance < closestDistance) {
|
||||||
closestPlayer = e;
|
closestPlayer = player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (closestPlayer != null) {
|
if (closestPlayer != null) {
|
||||||
@@ -172,84 +148,69 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {
|
if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {
|
||||||
float var1 = MathHelper.sqrt_double(motionX * motionX + motionZ * motionZ);
|
float horizontalDistance = MathHelper.sqrt_double(motionX * motionX + motionZ * motionZ);
|
||||||
prevRotationYaw = rotationYaw = (float) (Math.atan2(motionX, motionZ) * 180.0D / Math.PI);
|
prevRotationYaw = rotationYaw = (float) (Math.atan2(motionX, motionZ) * 180.0D / Math.PI);
|
||||||
prevRotationPitch = rotationPitch = (float) (Math.atan2(motionY, var1) * 180.0D / Math.PI);
|
prevRotationPitch = rotationPitch = (float) (Math.atan2(motionY, horizontalDistance) * 180.0D / Math.PI);
|
||||||
}
|
}
|
||||||
Block var16 = worldObj.getBlock(xTile, yTile, zTile);
|
Block block = worldObj.getBlock(xTile, yTile, zTile);
|
||||||
|
|
||||||
if (var16 != null) {
|
if (block != null) {
|
||||||
var16.setBlockBoundsBasedOnState(worldObj, xTile, yTile, zTile);
|
block.setBlockBoundsBasedOnState(worldObj, xTile, yTile, zTile);
|
||||||
AxisAlignedBB var2 = var16.getCollisionBoundingBoxFromPool(worldObj, xTile, yTile, zTile);
|
AxisAlignedBB collision = block.getCollisionBoundingBoxFromPool(worldObj, xTile, yTile, zTile);
|
||||||
|
|
||||||
if (var2 != null && var2.isVecInside(APISpellHelper.createVec3(posX, posY, posZ))) {
|
if (collision != null && collision.isVecInside(APISpellHelper.createVec3(posX, posY, posZ))) {
|
||||||
inGround = true;
|
inGround = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inGround) {
|
if (!inGround) {
|
||||||
Block var18 = worldObj.getBlock(xTile, yTile, zTile);
|
|
||||||
int var19 = worldObj.getBlockMetadata(xTile, yTile, zTile);
|
|
||||||
|
|
||||||
// if (var18.equals(Block.getBlockById(inTile)) && var19 == inData)
|
|
||||||
{
|
|
||||||
// this.groundImpact();
|
|
||||||
// this.setDead();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
++ticksInAir;
|
++ticksInAir;
|
||||||
|
|
||||||
if (ticksInAir > 1 && ticksInAir < 3) {
|
if (ticksInAir == 2) {
|
||||||
// worldObj.spawnParticle("flame", posX + smallGauss(0.1D), posY + smallGauss(0.1D), posZ +
|
|
||||||
// smallGauss(0.1D), 0D, 0D, 0D);
|
|
||||||
for (int particles = 0; particles < 3; particles++) {
|
for (int particles = 0; particles < 3; particles++) {
|
||||||
this.doFiringParticles();
|
this.doFiringParticles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Vec3 var17 = APISpellHelper.createVec3(posX, posY, posZ);
|
Vec3 start = APISpellHelper.createVec3(posX, posY, posZ);
|
||||||
Vec3 var3 = APISpellHelper.createVec3(posX + motionX, posY + motionY, posZ + motionZ);
|
Vec3 end = APISpellHelper.createVec3(posX + motionX, posY + motionY, posZ + motionZ);
|
||||||
MovingObjectPosition var4 = worldObj.func_147447_a(var17, var3, true, false, false);
|
MovingObjectPosition movement = worldObj.func_147447_a(start, end, true, false, false);
|
||||||
var17 = APISpellHelper.createVec3(posX, posY, posZ);
|
start = APISpellHelper.createVec3(posX, posY, posZ);
|
||||||
var3 = APISpellHelper.createVec3(posX + motionX, posY + motionY, posZ + motionZ);
|
end = APISpellHelper.createVec3(posX + motionX, posY + motionY, posZ + motionZ);
|
||||||
|
|
||||||
if (var4 != null) {
|
if (movement != null) {
|
||||||
var3 = APISpellHelper.createVec3(var4.hitVec.xCoord, var4.hitVec.yCoord, var4.hitVec.zCoord);
|
end = APISpellHelper.createVec3(movement.hitVec.xCoord, movement.hitVec.yCoord, movement.hitVec.zCoord);
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity var5 = null;
|
Entity closestEntity = null;
|
||||||
List var6 = worldObj.getEntitiesWithinAABBExcludingEntity(
|
List<Entity> entitiesInRange = worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||||
this,
|
this,
|
||||||
boundingBox.addCoord(motionX, motionY, motionZ).expand(1.0D, 1.0D, 1.0D));
|
boundingBox.addCoord(motionX, motionY, motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||||
double var7 = 0.0D;
|
double closestDistance = 0.0D;
|
||||||
Iterator var9 = var6.iterator();
|
|
||||||
float var11;
|
|
||||||
|
|
||||||
while (var9.hasNext()) {
|
for (Entity entity : entitiesInRange) {
|
||||||
Entity var10 = (Entity) var9.next();
|
|
||||||
|
|
||||||
if (var10.canBeCollidedWith() && (var10 != shootingEntity || ticksInAir >= 5)) {
|
if (entity.canBeCollidedWith() && (entity != shootingEntity || ticksInAir >= 5)) {
|
||||||
var11 = 0.3F;
|
AxisAlignedBB box = entity.boundingBox.expand(0.3F, 0.3F, 0.3F);
|
||||||
AxisAlignedBB var12 = var10.boundingBox.expand(var11, var11, var11);
|
MovingObjectPosition intercept = box.calculateIntercept(start, end);
|
||||||
MovingObjectPosition var13 = var12.calculateIntercept(var17, var3);
|
|
||||||
|
|
||||||
if (var13 != null) {
|
if (intercept != null) {
|
||||||
double var14 = var17.distanceTo(var13.hitVec);
|
double distance = start.distanceTo(intercept.hitVec);
|
||||||
|
|
||||||
if (var14 < var7 || var7 == 0.0D) {
|
if (distance < closestDistance || closestDistance == 0.0D) {
|
||||||
var5 = var10;
|
closestEntity = entity;
|
||||||
var7 = var14;
|
closestDistance = distance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (var5 != null) {
|
if (closestEntity != null) {
|
||||||
var4 = new MovingObjectPosition(var5);
|
movement = new MovingObjectPosition(closestEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (var4 != null) {
|
if (movement != null) {
|
||||||
this.onImpact(var4);
|
this.onImpact(movement);
|
||||||
|
|
||||||
if (scheduledForDeath) {
|
if (scheduledForDeath) {
|
||||||
this.setDead();
|
this.setDead();
|
||||||
@@ -259,16 +220,7 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
posX += motionX;
|
posX += motionX;
|
||||||
posY += motionY;
|
posY += motionY;
|
||||||
posZ += motionZ;
|
posZ += motionZ;
|
||||||
MathHelper.sqrt_double(motionX * motionX + motionZ * motionZ);
|
|
||||||
this.setPosition(posX, posY, posZ);
|
this.setPosition(posX, posY, posZ);
|
||||||
// this.doBlockCollisions();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void doFlightParticles() {
|
|
||||||
if (ticksInAir % 3 == 0) {
|
|
||||||
double gauss = gaussian(1.0F);
|
|
||||||
worldObj.spawnParticle("mobSpell", posX, posY, posZ, gauss, gauss, 0.0F);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,17 +236,14 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
worldObj.spawnParticle("flame", posX, posY, posZ, gaussian(motionX), gaussian(motionY), gaussian(motionZ));
|
worldObj.spawnParticle("flame", posX, posY, posZ, gaussian(motionX), gaussian(motionY), gaussian(motionZ));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* (abstract) Protected helper method to write subclass entity data to NBT.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
|
public void writeEntityToNBT(NBTTagCompound tag) {
|
||||||
par1NBTTagCompound.setShort("xTile", (short) xTile);
|
tag.setShort("xTile", (short) xTile);
|
||||||
par1NBTTagCompound.setShort("yTile", (short) yTile);
|
tag.setShort("yTile", (short) yTile);
|
||||||
par1NBTTagCompound.setShort("zTile", (short) zTile);
|
tag.setShort("zTile", (short) zTile);
|
||||||
par1NBTTagCompound.setByte("inTile", (byte) inTile);
|
tag.setByte("inTile", (byte) inTile);
|
||||||
par1NBTTagCompound.setByte("inData", (byte) inData);
|
tag.setByte("inData", (byte) inData);
|
||||||
par1NBTTagCompound.setByte("inGround", (byte) (inGround ? 1 : 0));
|
tag.setByte("inGround", (byte) (inGround ? 1 : 0));
|
||||||
|
|
||||||
NBTTagList effectList = new NBTTagList();
|
NBTTagList effectList = new NBTTagList();
|
||||||
|
|
||||||
@@ -302,50 +251,34 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
effectList.appendTag(eff.getTag());
|
effectList.appendTag(eff.getTag());
|
||||||
}
|
}
|
||||||
|
|
||||||
// for (String str : this.effectList)
|
tag.setTag("Effects", effectList);
|
||||||
// {
|
tag.setInteger("blocksBroken", blocksBroken);
|
||||||
// if (str != null)
|
tag.setBoolean("isSilkTouch", isSilkTouch);
|
||||||
// {
|
|
||||||
// NBTTagCompound tag = new NBTTagCompound();
|
|
||||||
//
|
|
||||||
// tag.setString("Class", str);
|
|
||||||
// effectList.appendTag(tag);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
par1NBTTagCompound.setTag("Effects", effectList);
|
|
||||||
par1NBTTagCompound.setInteger("blocksBroken", blocksBroken);
|
|
||||||
par1NBTTagCompound.setBoolean("isSilkTouch", isSilkTouch);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* (abstract) Protected helper method to read subclass entity data from NBT.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
|
public void readEntityFromNBT(NBTTagCompound tag) {
|
||||||
xTile = par1NBTTagCompound.getShort("xTile");
|
xTile = tag.getShort("xTile");
|
||||||
yTile = par1NBTTagCompound.getShort("yTile");
|
yTile = tag.getShort("yTile");
|
||||||
zTile = par1NBTTagCompound.getShort("zTile");
|
zTile = tag.getShort("zTile");
|
||||||
inTile = par1NBTTagCompound.getByte("inTile") & 255;
|
inTile = tag.getByte("inTile") & 255;
|
||||||
inData = par1NBTTagCompound.getByte("inData") & 255;
|
inData = tag.getByte("inData") & 255;
|
||||||
inGround = par1NBTTagCompound.getByte("inGround") == 1;
|
inGround = tag.getByte("inGround") == 1;
|
||||||
blocksBroken = par1NBTTagCompound.getInteger("blocksBroken");
|
blocksBroken = tag.getInteger("blocksBroken");
|
||||||
isSilkTouch = par1NBTTagCompound.getBoolean("isSilkTouch");
|
isSilkTouch = tag.getBoolean("isSilkTouch");
|
||||||
|
|
||||||
NBTTagList tagList = par1NBTTagCompound.getTagList("Effects", Constants.NBT.TAG_COMPOUND);
|
NBTTagList tagList = tag.getTagList("Effects", Constants.NBT.TAG_COMPOUND);
|
||||||
|
|
||||||
List<SpellEffect> spellEffectList = new LinkedList();
|
List<SpellEffect> spellEffectList = new LinkedList<>();
|
||||||
for (int i = 0; i < tagList.tagCount(); i++) {
|
for (int i = 0; i < tagList.tagCount(); i++) {
|
||||||
NBTTagCompound tag = tagList.getCompoundTagAt(i);
|
SpellEffect eff = SpellEffect.getEffectFromTag(tagList.getCompoundTagAt(i));
|
||||||
|
|
||||||
SpellEffect eff = SpellEffect.getEffectFromTag(tag);
|
|
||||||
if (eff != null) {
|
if (eff != null) {
|
||||||
spellEffectList.add(eff);
|
spellEffectList.add(eff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.spellEffectList = spellEffectList;
|
this.spellEffectList = spellEffectList;
|
||||||
|
|
||||||
// this.effectList = new LinkedList();
|
// this.effectList = new LinkedList<>();
|
||||||
// for (int i = 0; i < tagList.tagCount(); i++)
|
// for (int i = 0; i < tagList.tagCount(); i++)
|
||||||
// {
|
// {
|
||||||
// NBTTagCompound tag = (NBTTagCompound) tagList.tagAt(i);
|
// NBTTagCompound tag = (NBTTagCompound) tagList.tagAt(i);
|
||||||
@@ -374,39 +307,11 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
return 0.0F;
|
return 0.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the amount of knockback the arrow applies when it hits a mob.
|
|
||||||
*/
|
|
||||||
public void setKnockbackStrength(int par1) {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* If returns false, the item will not inflict any damage against entities.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canAttackWithItem() {
|
public boolean canAttackWithItem() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the arrow has a stream of critical hit particles flying behind it.
|
|
||||||
*/
|
|
||||||
public void setIsCritical(boolean par1) {
|
|
||||||
byte var2 = dataWatcher.getWatchableObjectByte(16);
|
|
||||||
if (par1) {
|
|
||||||
dataWatcher.updateObject(16, var2 | 1);
|
|
||||||
} else {
|
|
||||||
dataWatcher.updateObject(16, var2 & -2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the arrow has a stream of critical hit particles flying behind it.
|
|
||||||
*/
|
|
||||||
public boolean getIsCritical() {
|
|
||||||
byte var1 = dataWatcher.getWatchableObjectByte(16);
|
|
||||||
return (var1 & 1) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void onImpact(MovingObjectPosition mop) {
|
private void onImpact(MovingObjectPosition mop) {
|
||||||
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && mop.entityHit != null) {
|
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && mop.entityHit != null) {
|
||||||
if (mop.entityHit == shootingEntity) return;
|
if (mop.entityHit == shootingEntity) return;
|
||||||
@@ -471,87 +376,23 @@ public class EntitySpellProjectile extends Entity implements IProjectile {
|
|||||||
|
|
||||||
private void ricochet(int sideHit) {
|
private void ricochet(int sideHit) {
|
||||||
switch (sideHit) {
|
switch (sideHit) {
|
||||||
case 0:
|
case 0, 1 -> motionY = motionY * -1; // topHit, bottomHit, reflect Y
|
||||||
case 1:
|
case 2, 3 -> motionZ = motionZ * -1; // westHit, eastHit, reflect Z
|
||||||
// topHit, bottomHit, reflect Y
|
case 4, 5 -> motionX = motionX * -1; // southHit, northHit, reflect X
|
||||||
motionY = motionY * -1;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
// westHit, eastHit, reflect Z
|
|
||||||
motionZ = motionZ * -1;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
case 5:
|
|
||||||
// southHit, northHit, reflect X
|
|
||||||
motionX = motionX * -1;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
ricochetCounter++;
|
ricochetCounter++;
|
||||||
if (ricochetCounter > this.getRicochetMax()) {
|
if (ricochetCounter > this.getRicochetMax()) {
|
||||||
scheduledForDeath = true;
|
scheduledForDeath = true;
|
||||||
for (int particles = 0; particles < 4; particles++) {
|
for (int particles = 0; particles < 4; particles++) {
|
||||||
switch (sideHit) {
|
switch (sideHit) {
|
||||||
case 0:
|
case 0 -> worldObj
|
||||||
worldObj.spawnParticle(
|
.spawnParticle("smoke", posX, posY, posZ, gaussian(0.1D), -gaussian(0.1D), gaussian(0.1D));
|
||||||
"smoke",
|
case 1, 3, 5 -> worldObj
|
||||||
posX,
|
.spawnParticle("smoke", posX, posY, posZ, gaussian(0.1D), gaussian(0.1D), gaussian(0.1D));
|
||||||
posY,
|
case 2 -> worldObj
|
||||||
posZ,
|
.spawnParticle("smoke", posX, posY, posZ, gaussian(0.1D), gaussian(0.1D), -gaussian(0.1D));
|
||||||
gaussian(0.1D),
|
case 4 -> worldObj
|
||||||
-gaussian(0.1D),
|
.spawnParticle("smoke", posX, posY, posZ, -gaussian(0.1D), gaussian(0.1D), gaussian(0.1D));
|
||||||
gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
worldObj.spawnParticle(
|
|
||||||
"smoke",
|
|
||||||
posX,
|
|
||||||
posY,
|
|
||||||
posZ,
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
worldObj.spawnParticle(
|
|
||||||
"smoke",
|
|
||||||
posX,
|
|
||||||
posY,
|
|
||||||
posZ,
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D),
|
|
||||||
-gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
worldObj.spawnParticle(
|
|
||||||
"smoke",
|
|
||||||
posX,
|
|
||||||
posY,
|
|
||||||
posZ,
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
worldObj.spawnParticle(
|
|
||||||
"smoke",
|
|
||||||
posX,
|
|
||||||
posY,
|
|
||||||
posZ,
|
|
||||||
-gaussian(0.1D),
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
worldObj.spawnParticle(
|
|
||||||
"smoke",
|
|
||||||
posX,
|
|
||||||
posY,
|
|
||||||
posZ,
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D),
|
|
||||||
gaussian(0.1D));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
public interface IToolUpdateEffect {
|
public interface IToolUpdateEffect {
|
||||||
|
|
||||||
int onUpdate(ItemStack toolStack, World world, Entity par3Entity, int invSlot, boolean inHand);
|
int onUpdate(ItemStack toolStack, World world, Entity entity, int invSlot, boolean inHand);
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,8 @@ package WayofTime.alchemicalWizardry.api.spell;
|
|||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* New wrapper class to enclose the ComplexSpellEffect
|
* New wrapper class to enclose the ComplexSpellEffect
|
||||||
*/
|
*/
|
||||||
@@ -34,15 +36,9 @@ public class SpellEffect {
|
|||||||
public void enhanceEffect(SpellEnhancement enh) {
|
public void enhanceEffect(SpellEnhancement enh) {
|
||||||
if (enh != null) {
|
if (enh != null) {
|
||||||
switch (enh.getState()) {
|
switch (enh.getState()) {
|
||||||
case SpellEnhancement.POWER:
|
case SpellEnhancement.POWER -> this.powerEnhancement++;
|
||||||
this.powerEnhancement++;
|
case SpellEnhancement.EFFICIENCY -> this.costEnhancement++;
|
||||||
break;
|
case SpellEnhancement.POTENCY -> this.potencyEnhancement++;
|
||||||
case SpellEnhancement.EFFICIENCY:
|
|
||||||
this.costEnhancement++;
|
|
||||||
break;
|
|
||||||
case SpellEnhancement.POTENCY:
|
|
||||||
this.potencyEnhancement++;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,7 +56,7 @@ public class SpellEffect {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Class paraClass = parad.getClass();
|
Class<? extends SpellParadigm> paraClass = parad.getClass();
|
||||||
|
|
||||||
ComplexSpellEffect effect = SpellEffectRegistry
|
ComplexSpellEffect effect = SpellEffectRegistry
|
||||||
.getSpellEffect(paraClass, type, modifier, powerEnhancement, potencyEnhancement, costEnhancement);
|
.getSpellEffect(paraClass, type, modifier, powerEnhancement, potencyEnhancement, costEnhancement);
|
||||||
@@ -75,7 +71,7 @@ public class SpellEffect {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Class paraClass = parad.getClass();
|
Class<? extends SpellParadigm> paraClass = parad.getClass();
|
||||||
|
|
||||||
ComplexSpellEffect effect = SpellEffectRegistry
|
ComplexSpellEffect effect = SpellEffectRegistry
|
||||||
.getSpellEffect(paraClass, type, modifier, powerEnhancement, potencyEnhancement, costEnhancement);
|
.getSpellEffect(paraClass, type, modifier, powerEnhancement, potencyEnhancement, costEnhancement);
|
||||||
@@ -102,29 +98,23 @@ public class SpellEffect {
|
|||||||
|
|
||||||
public static SpellEffect getEffectFromTag(NBTTagCompound tag) {
|
public static SpellEffect getEffectFromTag(NBTTagCompound tag) {
|
||||||
try {
|
try {
|
||||||
Class clazz = Class.forName(tag.getString("Class"));
|
Class<?> clazz = Class.forName(tag.getString("Class"));
|
||||||
if (clazz != null) {
|
try {
|
||||||
try {
|
Object obj = clazz.newInstance();
|
||||||
Object obj = clazz.newInstance();
|
if (obj instanceof SpellEffect eff) {
|
||||||
if (obj instanceof SpellEffect) {
|
eff.type = SpellEffectRegistry.getTypeForKey(tag.getString("type"));
|
||||||
SpellEffect eff = (SpellEffect) obj;
|
eff.modifier = SpellEffectRegistry.getModifierForKey(tag.getString("modifier"));
|
||||||
|
eff.powerEnhancement = tag.getInteger("power");
|
||||||
|
eff.costEnhancement = tag.getInteger("cost");
|
||||||
|
eff.potencyEnhancement = tag.getInteger("potency");
|
||||||
|
|
||||||
eff.type = SpellEffectRegistry.getTypeForKey(tag.getString("type"));
|
return eff;
|
||||||
eff.modifier = SpellEffectRegistry.getModifierForKey(tag.getString("modifier"));
|
|
||||||
eff.powerEnhancement = tag.getInteger("power");
|
|
||||||
eff.costEnhancement = tag.getInteger("cost");
|
|
||||||
eff.potencyEnhancement = tag.getInteger("potency");
|
|
||||||
|
|
||||||
return eff;
|
|
||||||
}
|
|
||||||
} catch (InstantiationException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
} catch (IllegalAccessException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
|
} catch (InstantiationException | IllegalAccessException e) {
|
||||||
|
AlchemicalWizardry.logger.error(e);
|
||||||
}
|
}
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
e.printStackTrace();
|
AlchemicalWizardry.logger.error(e);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -141,339 +131,3 @@ public class SpellEffect {
|
|||||||
return this.costEnhancement;
|
return this.costEnhancement;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// package WayofTime.alchemicalWizardry.common.spell.complex.effect;
|
|
||||||
//
|
|
||||||
// import WayofTime.alchemicalWizardry.common.spell.complex.*;
|
|
||||||
// import WayofTime.alchemicalWizardry.common.spell.complex.enhancement.SpellEnhancement;
|
|
||||||
// import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
//
|
|
||||||
// public abstract class SpellEffect
|
|
||||||
// {
|
|
||||||
// protected int modifierState;
|
|
||||||
// protected int powerEnhancement;
|
|
||||||
// protected int costEnhancement;
|
|
||||||
// protected int potencyEnhancement;
|
|
||||||
//
|
|
||||||
// public SpellEffect()
|
|
||||||
// {
|
|
||||||
// this.modifierState = SpellModifier.DEFAULT;
|
|
||||||
// this.powerEnhancement = 0;
|
|
||||||
// this.costEnhancement = 0;
|
|
||||||
// this.potencyEnhancement = 0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void enhanceEffect(SpellEnhancement enh)
|
|
||||||
// {
|
|
||||||
// if (enh != null)
|
|
||||||
// {
|
|
||||||
// switch (enh.getState())
|
|
||||||
// {
|
|
||||||
// case SpellEnhancement.POWER:
|
|
||||||
// this.powerEnhancement++;
|
|
||||||
// break;
|
|
||||||
// case SpellEnhancement.EFFICIENCY:
|
|
||||||
// this.costEnhancement++;
|
|
||||||
// break;
|
|
||||||
// case SpellEnhancement.POTENCY:
|
|
||||||
// this.potencyEnhancement++;
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void modifyEffect(SpellModifier mod)
|
|
||||||
// {
|
|
||||||
// if (mod != null)
|
|
||||||
// modifierState = mod.getModifier();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void modifyParadigm(SpellParadigm parad) //When modifying the paradigm it will instead get the class name
|
|
||||||
// and ask the registry
|
|
||||||
// {
|
|
||||||
// if (parad instanceof SpellParadigmProjectile)
|
|
||||||
// {
|
|
||||||
// this.modifyProjectileParadigm((SpellParadigmProjectile) parad);
|
|
||||||
// }
|
|
||||||
// if (parad instanceof SpellParadigmSelf)
|
|
||||||
// {
|
|
||||||
// this.modifySelfParadigm((SpellParadigmSelf) parad);
|
|
||||||
// }
|
|
||||||
// if (parad instanceof SpellParadigmMelee)
|
|
||||||
// {
|
|
||||||
// this.modifyMeleeParadigm((SpellParadigmMelee) parad);
|
|
||||||
// }
|
|
||||||
// if (parad instanceof SpellParadigmTool)
|
|
||||||
// {
|
|
||||||
// this.modifyToolParadigm((SpellParadigmTool) parad);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void modifyProjectileParadigm(SpellParadigmProjectile parad)
|
|
||||||
// {
|
|
||||||
// switch (modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// this.defaultModificationProjectile(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// this.offensiveModificationProjectile(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// this.defensiveModificationProjectile(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// this.environmentalModificationProjectile(parad);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public abstract void defaultModificationProjectile(SpellParadigmProjectile parad);
|
|
||||||
//
|
|
||||||
// public abstract void offensiveModificationProjectile(SpellParadigmProjectile parad);
|
|
||||||
//
|
|
||||||
// public abstract void defensiveModificationProjectile(SpellParadigmProjectile parad);
|
|
||||||
//
|
|
||||||
// public abstract void environmentalModificationProjectile(SpellParadigmProjectile parad);
|
|
||||||
//
|
|
||||||
// public void modifySelfParadigm(SpellParadigmSelf parad)
|
|
||||||
// {
|
|
||||||
// switch (modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// this.defaultModificationSelf(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// this.offensiveModificationSelf(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// this.defensiveModificationSelf(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// this.environmentalModificationSelf(parad);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public abstract void defaultModificationSelf(SpellParadigmSelf parad);
|
|
||||||
//
|
|
||||||
// public abstract void offensiveModificationSelf(SpellParadigmSelf parad);
|
|
||||||
//
|
|
||||||
// public abstract void defensiveModificationSelf(SpellParadigmSelf parad);
|
|
||||||
//
|
|
||||||
// public abstract void environmentalModificationSelf(SpellParadigmSelf parad);
|
|
||||||
//
|
|
||||||
// public void modifyMeleeParadigm(SpellParadigmMelee parad)
|
|
||||||
// {
|
|
||||||
// switch (modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// this.defaultModificationMelee(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// this.offensiveModificationMelee(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// this.defensiveModificationMelee(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// this.environmentalModificationMelee(parad);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public abstract void defaultModificationMelee(SpellParadigmMelee parad);
|
|
||||||
//
|
|
||||||
// public abstract void offensiveModificationMelee(SpellParadigmMelee parad);
|
|
||||||
//
|
|
||||||
// public abstract void defensiveModificationMelee(SpellParadigmMelee parad);
|
|
||||||
//
|
|
||||||
// public abstract void environmentalModificationMelee(SpellParadigmMelee parad);
|
|
||||||
//
|
|
||||||
// public void modifyToolParadigm(SpellParadigmTool parad)
|
|
||||||
// {
|
|
||||||
// switch (modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// this.defaultModificationTool(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// this.offensiveModificationTool(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// this.defensiveModificationTool(parad);
|
|
||||||
// break;
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// this.environmentalModificationTool(parad);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public abstract void defaultModificationTool(SpellParadigmTool parad);
|
|
||||||
//
|
|
||||||
// public abstract void offensiveModificationTool(SpellParadigmTool parad);
|
|
||||||
//
|
|
||||||
// public abstract void defensiveModificationTool(SpellParadigmTool parad);
|
|
||||||
//
|
|
||||||
// public abstract void environmentalModificationTool(SpellParadigmTool parad);
|
|
||||||
//
|
|
||||||
// public int getCostForProjectile()
|
|
||||||
// {
|
|
||||||
// switch (this.modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// return this.getCostForDefaultProjectile();
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// return this.getCostForOffenseProjectile();
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// return this.getCostForDefenseProjectile();
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// return this.getCostForEnvironmentProjectile();
|
|
||||||
// }
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefaultProjectile();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForOffenseProjectile();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefenseProjectile();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForEnvironmentProjectile();
|
|
||||||
//
|
|
||||||
// public int getCostForSelf()
|
|
||||||
// {
|
|
||||||
// switch (this.modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// return this.getCostForDefaultSelf();
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// return this.getCostForOffenseSelf();
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// return this.getCostForDefenseSelf();
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// return this.getCostForEnvironmentSelf();
|
|
||||||
// }
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefaultSelf();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForOffenseSelf();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefenseSelf();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForEnvironmentSelf();
|
|
||||||
//
|
|
||||||
// public int getCostForMelee()
|
|
||||||
// {
|
|
||||||
// switch (this.modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// return this.getCostForDefaultMelee();
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// return this.getCostForOffenseMelee();
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// return this.getCostForDefenseMelee();
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// return this.getCostForEnvironmentMelee();
|
|
||||||
// }
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefaultMelee();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForOffenseMelee();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefenseMelee();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForEnvironmentMelee();
|
|
||||||
//
|
|
||||||
// public int getCostForTool()
|
|
||||||
// {
|
|
||||||
// switch (this.modifierState)
|
|
||||||
// {
|
|
||||||
// case SpellModifier.DEFAULT:
|
|
||||||
// return this.getCostForDefaultTool();
|
|
||||||
// case SpellModifier.OFFENSIVE:
|
|
||||||
// return this.getCostForOffenseTool();
|
|
||||||
// case SpellModifier.DEFENSIVE:
|
|
||||||
// return this.getCostForDefenseTool();
|
|
||||||
// case SpellModifier.ENVIRONMENTAL:
|
|
||||||
// return this.getCostForEnvironmentTool();
|
|
||||||
// }
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefaultTool();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForOffenseTool();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForDefenseTool();
|
|
||||||
//
|
|
||||||
// protected abstract int getCostForEnvironmentTool();
|
|
||||||
//
|
|
||||||
// public int getPowerEnhancements()
|
|
||||||
// {
|
|
||||||
// return this.powerEnhancement;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public int getCostEnhancements()
|
|
||||||
// {
|
|
||||||
// return this.costEnhancement;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public int getPotencyEnhancements()
|
|
||||||
// {
|
|
||||||
// return this.potencyEnhancement;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public NBTTagCompound getTag()
|
|
||||||
// {
|
|
||||||
// NBTTagCompound tag = new NBTTagCompound();
|
|
||||||
//
|
|
||||||
// tag.setString("Class", this.getClass().getName());
|
|
||||||
// tag.setInteger("modifier", modifierState);
|
|
||||||
// tag.setInteger("power", powerEnhancement);
|
|
||||||
// tag.setInteger("cost", costEnhancement);
|
|
||||||
// tag.setInteger("potency", potencyEnhancement);
|
|
||||||
//
|
|
||||||
// return tag;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public static SpellEffect getEffectFromTag(NBTTagCompound tag)
|
|
||||||
// {
|
|
||||||
// try
|
|
||||||
// {
|
|
||||||
// Class clazz = Class.forName(tag.getString("Class"));
|
|
||||||
// if (clazz != null)
|
|
||||||
// {
|
|
||||||
// try
|
|
||||||
// {
|
|
||||||
// Object obj = clazz.newInstance();
|
|
||||||
// if (obj instanceof SpellEffect)
|
|
||||||
// {
|
|
||||||
// SpellEffect eff = (SpellEffect) obj;
|
|
||||||
//
|
|
||||||
// eff.modifierState = tag.getInteger("modifier");
|
|
||||||
// eff.powerEnhancement = tag.getInteger("power");
|
|
||||||
// eff.costEnhancement = tag.getInteger("cost");
|
|
||||||
// eff.potencyEnhancement = tag.getInteger("potency");
|
|
||||||
//
|
|
||||||
// return eff;
|
|
||||||
// }
|
|
||||||
// } catch (InstantiationException e)
|
|
||||||
// {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// } catch (IllegalAccessException e)
|
|
||||||
// {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } catch (ClassNotFoundException e)
|
|
||||||
// {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
@@ -8,9 +8,9 @@ import java.util.Map.Entry;
|
|||||||
|
|
||||||
public class SpellEffectRegistry {
|
public class SpellEffectRegistry {
|
||||||
|
|
||||||
public static Map<Class<? extends SpellParadigm>, List<ComplexSpellEffect>> effectRegistry = new HashMap();
|
public static Map<Class<? extends SpellParadigm>, List<ComplexSpellEffect>> effectRegistry = new HashMap<>();
|
||||||
public static Map<String, ComplexSpellType> typeRegistry = new HashMap();
|
public static Map<String, ComplexSpellType> typeRegistry = new HashMap<>();
|
||||||
public static Map<String, ComplexSpellModifier> modifierRegistry = new HashMap();
|
public static Map<String, ComplexSpellModifier> modifierRegistry = new HashMap<>();
|
||||||
|
|
||||||
public static void registerSpellEffect(Class<? extends SpellParadigm> paraClass, ComplexSpellEffect effect) {
|
public static void registerSpellEffect(Class<? extends SpellParadigm> paraClass, ComplexSpellEffect effect) {
|
||||||
if (paraClass == null || effect == null) {
|
if (paraClass == null || effect == null) {
|
||||||
@@ -36,24 +36,12 @@ public class SpellEffectRegistry {
|
|||||||
|
|
||||||
effectList.add(effect);
|
effectList.add(effect);
|
||||||
} else {
|
} else {
|
||||||
List<ComplexSpellEffect> effectList = new LinkedList();
|
List<ComplexSpellEffect> effectList = new LinkedList<>();
|
||||||
effectList.add(effect);
|
effectList.add(effect);
|
||||||
effectRegistry.put(paraClass, effectList);
|
effectRegistry.put(paraClass, effectList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param paraClass
|
|
||||||
* @param type
|
|
||||||
* @param mod
|
|
||||||
* @return A copy of the spell effect
|
|
||||||
*/
|
|
||||||
public static ComplexSpellEffect getSpellEffect(Class<? extends SpellParadigm> paraClass, ComplexSpellType type,
|
|
||||||
ComplexSpellModifier mod) {
|
|
||||||
return SpellEffectRegistry.getSpellEffect(paraClass, type, mod, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ComplexSpellEffect getSpellEffect(Class<? extends SpellParadigm> paraClass, ComplexSpellType type,
|
public static ComplexSpellEffect getSpellEffect(Class<? extends SpellParadigm> paraClass, ComplexSpellType type,
|
||||||
ComplexSpellModifier mod, int power, int potency, int cost) {
|
ComplexSpellModifier mod, int power, int potency, int cost) {
|
||||||
if (paraClass == null || type == null || mod == null) {
|
if (paraClass == null || type == null || mod == null) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ public class SpellEnhancement {
|
|||||||
public static final int EFFICIENCY = 1;
|
public static final int EFFICIENCY = 1;
|
||||||
public static final int POTENCY = 2;
|
public static final int POTENCY = 2;
|
||||||
|
|
||||||
private int state = POWER;
|
private final int state;
|
||||||
|
|
||||||
protected SpellEnhancement(int state) {
|
protected SpellEnhancement(int state) {
|
||||||
this.state = state;
|
this.state = state;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
public abstract class SpellParadigm {
|
public abstract class SpellParadigm {
|
||||||
|
|
||||||
protected List<SpellEffect> bufferedEffectList = new LinkedList();
|
protected List<SpellEffect> bufferedEffectList = new LinkedList<>();
|
||||||
|
|
||||||
public void addBufferedEffect(SpellEffect effect) {
|
public void addBufferedEffect(SpellEffect effect) {
|
||||||
if (effect != null) {
|
if (effect != null) {
|
||||||
@@ -55,7 +55,7 @@ public abstract class SpellParadigm {
|
|||||||
if (bufferedEffectList.isEmpty()) {
|
if (bufferedEffectList.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return bufferedEffectList.get(bufferedEffectList.size() - 1);
|
return bufferedEffectList.getLast();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
|||||||
|
|
||||||
public class SpellParadigmMelee extends SpellParadigm {
|
public class SpellParadigmMelee extends SpellParadigm {
|
||||||
|
|
||||||
private List<IMeleeSpellEntityEffect> entityEffectList;
|
private final List<IMeleeSpellEntityEffect> entityEffectList;
|
||||||
private List<IMeleeSpellWorldEffect> worldEffectList;
|
private final List<IMeleeSpellWorldEffect> worldEffectList;
|
||||||
|
|
||||||
public SpellParadigmMelee() {
|
public SpellParadigmMelee() {
|
||||||
this.entityEffectList = new ArrayList();
|
this.entityEffectList = new ArrayList<>();
|
||||||
this.worldEffectList = new ArrayList();
|
this.worldEffectList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ public class SpellParadigmProjectile extends SpellParadigm {
|
|||||||
this.damageSource = DamageSource.generic;
|
this.damageSource = DamageSource.generic;
|
||||||
this.damage = 1;
|
this.damage = 1;
|
||||||
this.cost = 0;
|
this.cost = 0;
|
||||||
this.impactList = new ArrayList();
|
this.impactList = new ArrayList<>();
|
||||||
this.updateEffectList = new ArrayList();
|
this.updateEffectList = new ArrayList<>();
|
||||||
this.penetration = false;
|
this.penetration = false;
|
||||||
this.ricochetMax = 0;
|
this.ricochetMax = 0;
|
||||||
this.isSilkTouch = false;
|
this.isSilkTouch = false;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class SpellParadigmSelf extends SpellParadigm {
|
|||||||
public List<ISelfSpellEffect> selfSpellEffectList;
|
public List<ISelfSpellEffect> selfSpellEffectList;
|
||||||
|
|
||||||
public SpellParadigmSelf() {
|
public SpellParadigmSelf() {
|
||||||
selfSpellEffectList = new ArrayList();
|
selfSpellEffectList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -17,27 +17,28 @@ import net.minecraft.world.World;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
|
||||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
|
|
||||||
public class SpellParadigmTool extends SpellParadigm {
|
public class SpellParadigmTool extends SpellParadigm {
|
||||||
|
|
||||||
private List<ILeftClickEffect> leftClickEffectList;
|
private final List<ILeftClickEffect> leftClickEffectList;
|
||||||
private List<IRightClickEffect> rightClickEffectList;
|
private final List<IRightClickEffect> rightClickEffectList;
|
||||||
private List<IToolUpdateEffect> toolUpdateEffectList;
|
private final List<IToolUpdateEffect> toolUpdateEffectList;
|
||||||
private List<IOnSummonTool> toolSummonEffectList;
|
private final List<IOnSummonTool> toolSummonEffectList;
|
||||||
private List<IOnBanishTool> toolBanishEffectList;
|
private final List<IOnBanishTool> toolBanishEffectList;
|
||||||
private List<IOnBreakBlock> breakBlockEffectList;
|
private final List<IOnBreakBlock> breakBlockEffectList;
|
||||||
private List<IItemManipulator> itemManipulatorEffectList;
|
private final List<IItemManipulator> itemManipulatorEffectList;
|
||||||
private List<IDigAreaEffect> digAreaEffectList;
|
private final List<IDigAreaEffect> digAreaEffectList;
|
||||||
private List<ISpecialDamageEffect> specialDamageEffectList;
|
private final List<ISpecialDamageEffect> specialDamageEffectList;
|
||||||
|
|
||||||
private HashMap<String, Integer> harvestLevel;
|
private final HashMap<String, Integer> harvestLevel;
|
||||||
private HashMap<String, Float> digSpeed;
|
private final HashMap<String, Float> digSpeed;
|
||||||
private HashMap<String, Float> maxDamageHash;
|
private final HashMap<String, Float> maxDamageHash;
|
||||||
private HashMap<String, Float> critChanceHash;
|
private final HashMap<String, Float> critChanceHash;
|
||||||
private HashMap<String, Integer> durationHash;
|
private final HashMap<String, Integer> durationHash;
|
||||||
|
|
||||||
private HashMap<String, String> toolInfoString;
|
private final HashMap<String, String> toolInfoString;
|
||||||
|
|
||||||
private int fortuneLevel;
|
private int fortuneLevel;
|
||||||
private boolean silkTouch;
|
private boolean silkTouch;
|
||||||
@@ -47,31 +48,31 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
public static Item customTool;
|
public static Item customTool;
|
||||||
|
|
||||||
public SpellParadigmTool() {
|
public SpellParadigmTool() {
|
||||||
this.leftClickEffectList = new LinkedList();
|
this.leftClickEffectList = new LinkedList<>();
|
||||||
this.rightClickEffectList = new LinkedList();
|
this.rightClickEffectList = new LinkedList<>();
|
||||||
this.toolUpdateEffectList = new LinkedList();
|
this.toolUpdateEffectList = new LinkedList<>();
|
||||||
this.toolSummonEffectList = new LinkedList();
|
this.toolSummonEffectList = new LinkedList<>();
|
||||||
this.toolBanishEffectList = new LinkedList();
|
this.toolBanishEffectList = new LinkedList<>();
|
||||||
this.breakBlockEffectList = new LinkedList();
|
this.breakBlockEffectList = new LinkedList<>();
|
||||||
this.itemManipulatorEffectList = new LinkedList();
|
this.itemManipulatorEffectList = new LinkedList<>();
|
||||||
this.digAreaEffectList = new LinkedList();
|
this.digAreaEffectList = new LinkedList<>();
|
||||||
this.specialDamageEffectList = new LinkedList();
|
this.specialDamageEffectList = new LinkedList<>();
|
||||||
this.durationHash = new HashMap();
|
this.durationHash = new HashMap<>();
|
||||||
|
|
||||||
this.toolInfoString = new HashMap();
|
this.toolInfoString = new HashMap<>();
|
||||||
this.critChanceHash = new HashMap();
|
this.critChanceHash = new HashMap<>();
|
||||||
|
|
||||||
this.harvestLevel = new HashMap();
|
this.harvestLevel = new HashMap<>();
|
||||||
this.harvestLevel.put("pickaxe", -1);
|
this.harvestLevel.put("pickaxe", -1);
|
||||||
this.harvestLevel.put("shovel", -1);
|
this.harvestLevel.put("shovel", -1);
|
||||||
this.harvestLevel.put("axe", -1);
|
this.harvestLevel.put("axe", -1);
|
||||||
|
|
||||||
this.digSpeed = new HashMap();
|
this.digSpeed = new HashMap<>();
|
||||||
this.digSpeed.put("pickaxe", 1.0f);
|
this.digSpeed.put("pickaxe", 1.0f);
|
||||||
this.digSpeed.put("shovel", 1.0f);
|
this.digSpeed.put("shovel", 1.0f);
|
||||||
this.digSpeed.put("axe", 1.0f);
|
this.digSpeed.put("axe", 1.0f);
|
||||||
|
|
||||||
this.maxDamageHash = new HashMap();
|
this.maxDamageHash = new HashMap<>();
|
||||||
this.maxDamageHash.put("default", 5.0f);
|
this.maxDamageHash.put("default", 5.0f);
|
||||||
|
|
||||||
this.fortuneLevel = 0;
|
this.fortuneLevel = 0;
|
||||||
@@ -103,7 +104,6 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param crystalStack
|
|
||||||
* @return stack containing the new multitool
|
* @return stack containing the new multitool
|
||||||
*/
|
*/
|
||||||
public ItemStack prepareTool(ItemStack crystalStack, World world) {
|
public ItemStack prepareTool(ItemStack crystalStack, World world) {
|
||||||
@@ -144,11 +144,7 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
|
|
||||||
itemTool.setCritChance(toolStack, this.getCritChance() / 100f);
|
itemTool.setCritChance(toolStack, this.getCritChance() / 100f);
|
||||||
|
|
||||||
List<String> toolStringList = new LinkedList();
|
List<String> toolStringList = new LinkedList<>(this.toolInfoString.values());
|
||||||
|
|
||||||
for (String str : this.toolInfoString.values()) {
|
|
||||||
toolStringList.add(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
itemTool.setToolListString(toolStack, toolStringList);
|
itemTool.setToolListString(toolStack, toolStringList);
|
||||||
|
|
||||||
@@ -159,7 +155,7 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
itemTool.setDuration(toolStack, world, this.duration);
|
itemTool.setDuration(toolStack, world, this.duration);
|
||||||
itemTool.loadParadigmIntoStack(toolStack, this.bufferedEffectList);
|
itemTool.loadParadigmIntoStack(toolStack, this.bufferedEffectList);
|
||||||
|
|
||||||
SoulNetworkHandler.checkAndSetItemOwner(toolStack, SoulNetworkHandler.getOwnerName(crystalStack));
|
IBindable.checkAndSetItemOwner(toolStack, SoulNetworkHandler.getOwnerName(crystalStack));
|
||||||
|
|
||||||
itemTool.setContainedCrystal(toolStack, crystalStack);
|
itemTool.setContainedCrystal(toolStack, crystalStack);
|
||||||
|
|
||||||
@@ -255,7 +251,7 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onRightClickAir(ItemStack toolStack, World world, EntityPlayer player) {
|
public int onRightClickAir(ItemStack toolStack, EntityPlayer player) {
|
||||||
int total = 0;
|
int total = 0;
|
||||||
for (IRightClickEffect effect : this.rightClickEffectList) {
|
for (IRightClickEffect effect : this.rightClickEffectList) {
|
||||||
total += effect.onRightClickAir(toolStack, player);
|
total += effect.onRightClickAir(toolStack, player);
|
||||||
@@ -264,10 +260,10 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onUpdate(ItemStack toolStack, World world, Entity par3Entity, int invSlot, boolean inHand) {
|
public int onUpdate(ItemStack toolStack, World world, Entity entity, int invSlot, boolean inHand) {
|
||||||
int total = 0;
|
int total = 0;
|
||||||
for (IToolUpdateEffect effect : this.toolUpdateEffectList) {
|
for (IToolUpdateEffect effect : this.toolUpdateEffectList) {
|
||||||
total += effect.onUpdate(toolStack, world, par3Entity, invSlot, inHand);
|
total += effect.onUpdate(toolStack, world, entity, invSlot, inHand);
|
||||||
}
|
}
|
||||||
|
|
||||||
return total;
|
return total;
|
||||||
@@ -305,8 +301,7 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
List<ItemStack> heldList = items;
|
List<ItemStack> heldList = items;
|
||||||
|
|
||||||
for (IItemManipulator eff : this.itemManipulatorEffectList) {
|
for (IItemManipulator eff : this.itemManipulatorEffectList) {
|
||||||
List<ItemStack> newHeldList = eff.handleItemsOnBlockBroken(toolStack, heldList);
|
heldList = eff.handleItemsOnBlockBroken(toolStack, heldList);
|
||||||
heldList = newHeldList;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return heldList;
|
return heldList;
|
||||||
@@ -403,7 +398,7 @@ public class SpellParadigmTool extends SpellParadigm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public float getAddedDamageForEntity(Entity entity) {
|
public float getAddedDamageForEntity(Entity entity) {
|
||||||
HashMap<String, Float> hash = new HashMap();
|
HashMap<String, Float> hash = new HashMap<>();
|
||||||
|
|
||||||
for (ISpecialDamageEffect effect : this.specialDamageEffectList) {
|
for (ISpecialDamageEffect effect : this.specialDamageEffectList) {
|
||||||
hash.put(effect.getKey(), effect.getDamageForEntity(entity));
|
hash.put(effect.getKey(), effect.getDamageForEntity(entity));
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
public class SummoningRegistry {
|
public class SummoningRegistry {
|
||||||
|
|
||||||
public static List<SummoningRegistryComponent> summoningList = new ArrayList();
|
public static List<SummoningRegistryComponent> summoningList = new ArrayList<>();
|
||||||
|
|
||||||
public static void registerSummon(SummoningHelper s, ItemStack[] ring1, ItemStack[] ring2, ItemStack[] ring3,
|
public static void registerSummon(SummoningHelper s, ItemStack[] ring1, ItemStack[] ring2, ItemStack[] ring3,
|
||||||
int amountUsed, int bloodOrbLevel) {
|
int amountUsed, int bloodOrbLevel) {
|
||||||
|
|||||||
+11
-29
@@ -74,22 +74,11 @@ public class SummoningRegistryComponent {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ring) {
|
recipe = switch (ring) {
|
||||||
case 1:
|
case 2 -> ring2;
|
||||||
recipe = ring1;
|
case 3 -> ring3;
|
||||||
break;
|
default -> ring1;
|
||||||
|
};
|
||||||
case 2:
|
|
||||||
recipe = ring2;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
recipe = ring3;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
recipe = ring1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (recipe.length != 6) {
|
if (recipe.length != 6) {
|
||||||
ItemStack[] newRecipe = new ItemStack[6];
|
ItemStack[] newRecipe = new ItemStack[6];
|
||||||
@@ -175,19 +164,12 @@ public class SummoningRegistryComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack[] getRingRecipeForRing(int ring) {
|
public ItemStack[] getRingRecipeForRing(int ring) {
|
||||||
switch (ring) {
|
return switch (ring) {
|
||||||
case 1:
|
case 1 -> ring1;
|
||||||
return ring1;
|
case 2 -> ring2;
|
||||||
|
case 3 -> ring3;
|
||||||
case 2:
|
default -> null;
|
||||||
return ring2;
|
};
|
||||||
|
|
||||||
case 3:
|
|
||||||
return ring3;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSummoningHelperID() {
|
public String getSummoningHelperID() {
|
||||||
|
|||||||
@@ -12,56 +12,14 @@ import WayofTime.alchemicalWizardry.client.renderer.RenderHelper;
|
|||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.common.eventhandler.Event.Result;
|
import cpw.mods.fml.common.eventhandler.Event.Result;
|
||||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
import cpw.mods.fml.common.gameevent.InputEvent;
|
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
|
||||||
import cpw.mods.fml.common.gameevent.TickEvent.RenderTickEvent;
|
|
||||||
|
|
||||||
public class ClientEventHandler {
|
public class ClientEventHandler {
|
||||||
|
|
||||||
private Minecraft mc = FMLClientHandler.instance().getClient();
|
private final Minecraft mc = FMLClientHandler.instance().getClient();
|
||||||
|
|
||||||
public static ResourceLocation currentPlayerTexture = null;
|
public static ResourceLocation currentPlayerTexture = null;
|
||||||
|
|
||||||
// @SideOnly(Side.CLIENT)
|
|
||||||
// @SubscribeEvent
|
|
||||||
// public void renderPOVArmour(RenderHandEvent event)
|
|
||||||
// {
|
|
||||||
// if (this.mc.thePlayer.worldObj.isRemote && this.mc.gameSettings.thirdPersonView == 0 &&
|
|
||||||
// !this.mc.renderViewEntity.isPlayerSleeping() && !this.mc.gameSettings.hideGUI &&
|
|
||||||
// !this.mc.playerController.enableEverythingIsScrewedUpMode())
|
|
||||||
// {
|
|
||||||
// currentPlayerTexture = ((AbstractClientPlayer) mc.thePlayer).getLocationSkin();
|
|
||||||
//
|
|
||||||
// ClientUtils.renderPlayerArmourInPOV(mc.thePlayer, event.partialTicks);
|
|
||||||
// event.setCanceled(true);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// @SubscribeEvent(priority = EventPriority.LOWEST)
|
|
||||||
// public void onPlayerRenderTick(RenderPlayerEvent.Pre event)
|
|
||||||
// {
|
|
||||||
// ModelBiped model = ((BoundArmour)ModItems.boundPlate).getArmorModel(event.entityPlayer, new
|
|
||||||
// ItemStack(ModItems.boundPlate), 2);
|
|
||||||
// String texture = ((BoundArmour)ModItems.boundPlate).getArmorTexture(new ItemStack(ModItems.boundPlate),
|
|
||||||
// event.entityPlayer, 2, "");
|
|
||||||
//
|
|
||||||
// ResourceLocation resourcelocation = new ResourceLocation(texture);
|
|
||||||
// event.renderer.modelBipedMain.bipedBody.addChild(model.bipedBody);
|
|
||||||
// Minecraft.getMinecraft().renderEngine.bindTexture(resourcelocation);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public void onKeyInput(InputEvent.KeyInputEvent event) {
|
|
||||||
// if(KeyBindings.omegaTest.isPressed())
|
|
||||||
// {
|
|
||||||
// System.out.println("ping");
|
|
||||||
//// NewPacketHandler.INSTANCE.sendToServer(NewPacketHandler.getKeyboardPressPacket((byte)2));
|
|
||||||
// ClientToServerPacketHandler.INSTANCE.sendToServer(new
|
|
||||||
// MessageKeyPressed(MessageKeyPressed.Key.OMEGA_ACTIVE));
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onPlayerSoundEvent(SoundEvent event) {
|
public void onPlayerSoundEvent(SoundEvent event) {
|
||||||
if (Minecraft.getMinecraft() != null) {
|
if (Minecraft.getMinecraft() != null) {
|
||||||
@@ -89,21 +47,9 @@ public class ClientEventHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onTick(RenderTickEvent event) {
|
public void onTick(TickEvent.RenderTickEvent event) {
|
||||||
if (event.phase.equals(Phase.START)) return;
|
if (event.phase.equals(TickEvent.Phase.START)) return;
|
||||||
|
|
||||||
if (!RenderHelper.onTickInGame(mc)) {}
|
RenderHelper.onTickInGame(mc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @SubscribeEvent
|
|
||||||
// public void onRenderLivingPlayerPre(RenderPlayerEvent.Pre event)
|
|
||||||
// {
|
|
||||||
// GL11.glDisable(2929);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @SubscribeEvent
|
|
||||||
// public void onRenderLivingPlayerPost(RenderPlayerEvent.Post event)
|
|
||||||
// {
|
|
||||||
// GL11.glEnable(2929);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
@@ -250,7 +250,6 @@ public class ClientProxy extends CommonProxy {
|
|||||||
Object ob = new ClientEventHandler();
|
Object ob = new ClientEventHandler();
|
||||||
FMLCommonHandler.instance().bus().register(ob);
|
FMLCommonHandler.instance().bus().register(ob);
|
||||||
MinecraftForge.EVENT_BUS.register(ob);
|
MinecraftForge.EVENT_BUS.register(ob);
|
||||||
KeyBindings.init();
|
|
||||||
MinecraftForge.EVENT_BUS.register(new ScrollHelper());
|
MinecraftForge.EVENT_BUS.register(new ScrollHelper());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,344 +0,0 @@
|
|||||||
package WayofTime.alchemicalWizardry.client;
|
|
||||||
|
|
||||||
import static net.minecraftforge.client.IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON;
|
|
||||||
import static net.minecraftforge.client.IItemRenderer.ItemRenderType.FIRST_PERSON_MAP;
|
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.entity.EntityClientPlayerMP;
|
|
||||||
import net.minecraft.client.entity.EntityPlayerSP;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import net.minecraft.client.renderer.OpenGlHelper;
|
|
||||||
import net.minecraft.client.renderer.RenderHelper;
|
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
|
||||||
import net.minecraft.client.renderer.entity.Render;
|
|
||||||
import net.minecraft.client.renderer.entity.RenderManager;
|
|
||||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.EnumAction;
|
|
||||||
import net.minecraft.item.ItemCloth;
|
|
||||||
import net.minecraft.item.ItemMap;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.MathHelper;
|
|
||||||
import net.minecraft.util.ResourceLocation;
|
|
||||||
import net.minecraft.world.storage.MapData;
|
|
||||||
import net.minecraftforge.client.IItemRenderer;
|
|
||||||
import net.minecraftforge.client.MinecraftForgeClient;
|
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
|
||||||
import org.lwjgl.opengl.GL12;
|
|
||||||
|
|
||||||
public class ClientUtils {
|
|
||||||
|
|
||||||
public static Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
|
|
||||||
private static final ResourceLocation RES_MAP_BACKGROUND = new ResourceLocation("textures/map/map_background.png");
|
|
||||||
|
|
||||||
public static void renderPlayerArmourInPOV(EntityPlayer player, float partialTickTime) {
|
|
||||||
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
|
|
||||||
float f1 = 1.0f; // this.prevEquippedProgress + (this.equippedProgress - this.prevEquippedProgress) *
|
|
||||||
// partialTickTime;
|
|
||||||
EntityClientPlayerMP entityclientplayermp = mc.thePlayer;
|
|
||||||
float f2 = entityclientplayermp.prevRotationPitch
|
|
||||||
+ (entityclientplayermp.rotationPitch - entityclientplayermp.prevRotationPitch) * partialTickTime;
|
|
||||||
// GL11.glPushMatrix();
|
|
||||||
GL11.glRotatef(
|
|
||||||
180 - (entityclientplayermp.prevRotationYaw
|
|
||||||
+ (entityclientplayermp.rotationYaw - entityclientplayermp.prevRotationYaw) * partialTickTime),
|
|
||||||
0.0F,
|
|
||||||
1.0F,
|
|
||||||
0.0F);
|
|
||||||
GL11.glRotatef(-f2, 1.0F, 0.0F, 0.0F);
|
|
||||||
RenderHelper.enableStandardItemLighting();
|
|
||||||
// GL11.glPopMatrix();
|
|
||||||
EntityPlayerSP entityplayersp = (EntityPlayerSP) entityclientplayermp;
|
|
||||||
float f3 = entityplayersp.prevRenderArmPitch
|
|
||||||
+ (entityplayersp.renderArmPitch - entityplayersp.prevRenderArmPitch) * partialTickTime;
|
|
||||||
float f4 = entityplayersp.prevRenderArmYaw
|
|
||||||
+ (entityplayersp.renderArmYaw - entityplayersp.prevRenderArmYaw) * partialTickTime;
|
|
||||||
GL11.glRotatef((entityclientplayermp.rotationPitch - f3) * 0.1F, 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glRotatef((entityclientplayermp.rotationYaw - f4) * 0.1F, 0.0F, 1.0F, 0.0F);
|
|
||||||
ItemStack itemstack = player.getCurrentEquippedItem();
|
|
||||||
|
|
||||||
if (itemstack != null && itemstack.getItem() instanceof ItemCloth) {
|
|
||||||
GL11.glEnable(GL11.GL_BLEND);
|
|
||||||
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int i = mc.theWorld.getLightBrightnessForSkyBlocks(
|
|
||||||
MathHelper.floor_double(entityclientplayermp.posX),
|
|
||||||
MathHelper.floor_double(entityclientplayermp.posY),
|
|
||||||
MathHelper.floor_double(entityclientplayermp.posZ),
|
|
||||||
0);
|
|
||||||
int j = i % 65536;
|
|
||||||
int k = i / 65536;
|
|
||||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) j / 1.0F, (float) k / 1.0F);
|
|
||||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
|
||||||
float f5;
|
|
||||||
float f6;
|
|
||||||
float f7;
|
|
||||||
|
|
||||||
if (itemstack != null) {
|
|
||||||
int l = itemstack.getItem().getColorFromItemStack(itemstack, 0);
|
|
||||||
f5 = (float) (l >> 16 & 255) / 255.0F;
|
|
||||||
f6 = (float) (l >> 8 & 255) / 255.0F;
|
|
||||||
f7 = (float) (l & 255) / 255.0F;
|
|
||||||
GL11.glColor4f(f5, f6, f7, 1.0F);
|
|
||||||
} else {
|
|
||||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
float f8;
|
|
||||||
float f9;
|
|
||||||
float f10;
|
|
||||||
float f13;
|
|
||||||
Render render;
|
|
||||||
RenderPlayer renderplayer;
|
|
||||||
|
|
||||||
if (itemstack != null && itemstack.getItem() instanceof ItemMap) {
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
f13 = 0.8F;
|
|
||||||
f5 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f6 = MathHelper.sin(f5 * (float) Math.PI);
|
|
||||||
f7 = MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI);
|
|
||||||
GL11.glTranslatef(
|
|
||||||
-f7 * 0.4F,
|
|
||||||
MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI * 2.0F) * 0.2F,
|
|
||||||
-f6 * 0.2F);
|
|
||||||
f5 = 1.0F - f2 / 45.0F + 0.1F;
|
|
||||||
|
|
||||||
if (f5 < 0.0F) {
|
|
||||||
f5 = 0.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (f5 > 1.0F) {
|
|
||||||
f5 = 1.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
f5 = -MathHelper.cos(f5 * (float) Math.PI) * 0.5F + 0.5F;
|
|
||||||
GL11.glTranslatef(0.0F, 0.0F * f13 - (1.0F - f1) * 1.2F - f5 * 0.5F + 0.04F, -0.9F * f13);
|
|
||||||
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(f5 * -85.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
|
||||||
mc.getTextureManager().bindTexture(entityclientplayermp.getLocationSkin());
|
|
||||||
|
|
||||||
for (int i1 = 0; i1 < 2; ++i1) {
|
|
||||||
int j1 = i1 * 2 - 1;
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
GL11.glTranslatef(-0.0F, -0.6F, 1.1F * (float) j1);
|
|
||||||
GL11.glRotatef((float) (-45 * j1), 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(59.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef((float) (-65 * j1), 0.0F, 1.0F, 0.0F);
|
|
||||||
render = RenderManager.instance.getEntityRenderObject(mc.thePlayer);
|
|
||||||
renderplayer = (RenderPlayer) render;
|
|
||||||
f10 = 1.0F;
|
|
||||||
GL11.glScalef(f10, f10, f10);
|
|
||||||
renderFirstPersonArm(renderplayer, mc.thePlayer);
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
}
|
|
||||||
|
|
||||||
f6 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f7 = MathHelper.sin(f6 * f6 * (float) Math.PI);
|
|
||||||
f8 = MathHelper.sin(MathHelper.sqrt_float(f6) * (float) Math.PI);
|
|
||||||
GL11.glRotatef(-f7 * 20.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-f8 * 20.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(-f8 * 80.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
f9 = 0.38F;
|
|
||||||
GL11.glScalef(f9, f9, f9);
|
|
||||||
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glTranslatef(-1.0F, -1.0F, 0.0F);
|
|
||||||
f10 = 0.015625F;
|
|
||||||
GL11.glScalef(f10, f10, f10);
|
|
||||||
mc.getTextureManager().bindTexture(RES_MAP_BACKGROUND);
|
|
||||||
Tessellator tessellator = Tessellator.instance;
|
|
||||||
GL11.glNormal3f(0.0F, 0.0F, -1.0F);
|
|
||||||
tessellator.startDrawingQuads();
|
|
||||||
byte b0 = 7;
|
|
||||||
tessellator.addVertexWithUV((double) (0 - b0), (double) (128 + b0), 0.0D, 0.0D, 1.0D);
|
|
||||||
tessellator.addVertexWithUV((double) (128 + b0), (double) (128 + b0), 0.0D, 1.0D, 1.0D);
|
|
||||||
tessellator.addVertexWithUV((double) (128 + b0), (double) (0 - b0), 0.0D, 1.0D, 0.0D);
|
|
||||||
tessellator.addVertexWithUV((double) (0 - b0), (double) (0 - b0), 0.0D, 0.0D, 0.0D);
|
|
||||||
tessellator.draw();
|
|
||||||
|
|
||||||
IItemRenderer custom = MinecraftForgeClient.getItemRenderer(itemstack, FIRST_PERSON_MAP);
|
|
||||||
MapData mapdata = ((ItemMap) itemstack.getItem()).getMapData(itemstack, mc.theWorld);
|
|
||||||
|
|
||||||
if (custom == null) {
|
|
||||||
if (mapdata != null) {
|
|
||||||
mc.entityRenderer.getMapItemRenderer().func_148250_a(mapdata, false);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
custom.renderItem(FIRST_PERSON_MAP, itemstack, mc.thePlayer, mc.getTextureManager(), mapdata);
|
|
||||||
}
|
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
} else if (itemstack != null) {
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
f13 = 0.8F;
|
|
||||||
|
|
||||||
if (entityclientplayermp.getItemInUseCount() > 0) {
|
|
||||||
EnumAction enumaction = itemstack.getItemUseAction();
|
|
||||||
|
|
||||||
if (enumaction == EnumAction.eat || enumaction == EnumAction.drink) {
|
|
||||||
f6 = (float) entityclientplayermp.getItemInUseCount() - partialTickTime + 1.0F;
|
|
||||||
f7 = 1.0F - f6 / (float) itemstack.getMaxItemUseDuration();
|
|
||||||
f8 = 1.0F - f7;
|
|
||||||
f8 = f8 * f8 * f8;
|
|
||||||
f8 = f8 * f8 * f8;
|
|
||||||
f8 = f8 * f8 * f8;
|
|
||||||
f9 = 1.0F - f8;
|
|
||||||
GL11.glTranslatef(
|
|
||||||
0.0F,
|
|
||||||
MathHelper.abs(MathHelper.cos(f6 / 4.0F * (float) Math.PI) * 0.1F)
|
|
||||||
* (float) ((double) f7 > 0.2D ? 1 : 0),
|
|
||||||
0.0F);
|
|
||||||
GL11.glTranslatef(f9 * 0.6F, -f9 * 0.5F, 0.0F);
|
|
||||||
GL11.glRotatef(f9 * 90.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(f9 * 10.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glRotatef(f9 * 30.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
f5 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f6 = MathHelper.sin(f5 * (float) Math.PI);
|
|
||||||
f7 = MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI);
|
|
||||||
GL11.glTranslatef(
|
|
||||||
-f7 * 0.4F,
|
|
||||||
MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI * 2.0F) * 0.2F,
|
|
||||||
-f6 * 0.2F);
|
|
||||||
}
|
|
||||||
|
|
||||||
GL11.glTranslatef(0.7F * f13, -0.65F * f13 - (1.0F - f1) * 0.6F, -0.9F * f13);
|
|
||||||
GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
|
||||||
f5 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f6 = MathHelper.sin(f5 * f5 * (float) Math.PI);
|
|
||||||
f7 = MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI);
|
|
||||||
GL11.glRotatef(-f6 * 20.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-f7 * 20.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(-f7 * 80.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
f8 = 0.4F;
|
|
||||||
GL11.glScalef(f8, f8, f8);
|
|
||||||
float f11;
|
|
||||||
float f12;
|
|
||||||
|
|
||||||
if (entityclientplayermp.getItemInUseCount() > 0) {
|
|
||||||
EnumAction enumaction1 = itemstack.getItemUseAction();
|
|
||||||
|
|
||||||
if (enumaction1 == EnumAction.block) {
|
|
||||||
GL11.glTranslatef(-0.5F, 0.2F, 0.0F);
|
|
||||||
GL11.glRotatef(30.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-80.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glRotatef(60.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
} else if (enumaction1 == EnumAction.bow) {
|
|
||||||
GL11.glRotatef(-18.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(-12.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-8.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glTranslatef(-0.9F, 0.2F, 0.0F);
|
|
||||||
f10 = (float) itemstack.getMaxItemUseDuration()
|
|
||||||
- ((float) entityclientplayermp.getItemInUseCount() - partialTickTime + 1.0F);
|
|
||||||
f11 = f10 / 20.0F;
|
|
||||||
f11 = (f11 * f11 + f11 * 2.0F) / 3.0F;
|
|
||||||
|
|
||||||
if (f11 > 1.0F) {
|
|
||||||
f11 = 1.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (f11 > 0.1F) {
|
|
||||||
GL11.glTranslatef(0.0F, MathHelper.sin((f10 - 0.1F) * 1.3F) * 0.01F * (f11 - 0.1F), 0.0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
GL11.glTranslatef(0.0F, 0.0F, f11 * 0.1F);
|
|
||||||
GL11.glRotatef(-335.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(-50.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glTranslatef(0.0F, 0.5F, 0.0F);
|
|
||||||
f12 = 1.0F + f11 * 0.2F;
|
|
||||||
GL11.glScalef(1.0F, 1.0F, f12);
|
|
||||||
GL11.glTranslatef(0.0F, -0.5F, 0.0F);
|
|
||||||
GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemstack.getItem().shouldRotateAroundWhenRendering()) {
|
|
||||||
GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemstack.getItem().requiresMultipleRenderPasses()) {
|
|
||||||
RenderManager.instance.itemRenderer
|
|
||||||
.renderItem(entityclientplayermp, itemstack, 0, EQUIPPED_FIRST_PERSON);
|
|
||||||
for (int x = 1; x < itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); x++) {
|
|
||||||
int k1 = itemstack.getItem().getColorFromItemStack(itemstack, x);
|
|
||||||
f10 = (float) (k1 >> 16 & 255) / 255.0F;
|
|
||||||
f11 = (float) (k1 >> 8 & 255) / 255.0F;
|
|
||||||
f12 = (float) (k1 & 255) / 255.0F;
|
|
||||||
GL11.glColor4f(1.0F * f10, 1.0F * f11, 1.0F * f12, 1.0F);
|
|
||||||
RenderManager.instance.itemRenderer
|
|
||||||
.renderItem(entityclientplayermp, itemstack, x, EQUIPPED_FIRST_PERSON);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
RenderManager.instance.itemRenderer
|
|
||||||
.renderItem(entityclientplayermp, itemstack, 0, EQUIPPED_FIRST_PERSON);
|
|
||||||
}
|
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
} else if (!entityclientplayermp.isInvisible()) {
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
f13 = 0.8F;
|
|
||||||
f5 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f6 = MathHelper.sin(f5 * (float) Math.PI);
|
|
||||||
f7 = MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI);
|
|
||||||
GL11.glTranslatef(
|
|
||||||
-f7 * 0.3F,
|
|
||||||
MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI * 2.0F) * 0.4F,
|
|
||||||
-f6 * 0.4F);
|
|
||||||
GL11.glTranslatef(0.8F * f13, -0.75F * f13 - (1.0F - f1) * 0.6F, -0.9F * f13);
|
|
||||||
GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
|
||||||
f5 = entityclientplayermp.getSwingProgress(partialTickTime);
|
|
||||||
f6 = MathHelper.sin(f5 * f5 * (float) Math.PI);
|
|
||||||
f7 = MathHelper.sin(MathHelper.sqrt_float(f5) * (float) Math.PI);
|
|
||||||
GL11.glRotatef(f7 * 70.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-f6 * 20.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
mc.getTextureManager().bindTexture(entityclientplayermp.getLocationSkin());
|
|
||||||
GL11.glTranslatef(-1.0F, 3.6F, 3.5F);
|
|
||||||
GL11.glRotatef(120.0F, 0.0F, 0.0F, 1.0F);
|
|
||||||
GL11.glRotatef(200.0F, 1.0F, 0.0F, 0.0F);
|
|
||||||
GL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);
|
|
||||||
GL11.glScalef(1.0F, 1.0F, 1.0F);
|
|
||||||
GL11.glTranslatef(5.6F, 0.0F, 0.0F);
|
|
||||||
render = RenderManager.instance.getEntityRenderObject(mc.thePlayer);
|
|
||||||
renderplayer = (RenderPlayer) render;
|
|
||||||
f10 = 1.0F;
|
|
||||||
GL11.glScalef(f10, f10, f10);
|
|
||||||
renderFirstPersonArm(renderplayer, mc.thePlayer);
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemstack != null && itemstack.getItem() instanceof ItemCloth) {
|
|
||||||
GL11.glDisable(GL11.GL_BLEND);
|
|
||||||
}
|
|
||||||
|
|
||||||
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
|
|
||||||
RenderHelper.disableStandardItemLighting();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void renderFirstPersonArm(RenderPlayer renderer, EntityPlayer player) {
|
|
||||||
float f = 1.0F;
|
|
||||||
GL11.glColor3f(f, f, f);
|
|
||||||
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
ModelRenderer mRenderer = new POVArmourModelWrapper(renderer.modelBipedMain);
|
|
||||||
renderer.modelBipedMain.onGround = 0.0F;
|
|
||||||
renderer.modelBipedMain.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, player);
|
|
||||||
renderer.modelBipedMain.bipedRightArm.render(0.0625F);
|
|
||||||
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
mRenderer.rotateAngleX = renderer.modelBipedMain.bipedRightArm.rotateAngleX;
|
|
||||||
mRenderer.rotateAngleY = renderer.modelBipedMain.bipedRightArm.rotateAngleY;
|
|
||||||
mRenderer.rotateAngleZ = renderer.modelBipedMain.bipedRightArm.rotateAngleZ;
|
|
||||||
mRenderer.render(0.0625F);
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package WayofTime.alchemicalWizardry.client;
|
|
||||||
|
|
||||||
public class KeyBindings {
|
|
||||||
// public static KeyBinding omegaTest;
|
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
// omegaTest = new KeyBinding("key.ping", Keyboard.KEY_O, "key.categories.alchemicalwizardry");
|
|
||||||
//
|
|
||||||
// ClientRegistry.registerKeyBinding(omegaTest);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -10,7 +10,6 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.ModItems;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
@@ -23,12 +22,11 @@ public class POVArmourModelWrapper extends ModelRenderer {
|
|||||||
public POVArmourModelWrapper(ModelBase model) {
|
public POVArmourModelWrapper(ModelBase model) {
|
||||||
super(model);
|
super(model);
|
||||||
ItemStack plateStack = new ItemStack(ModItems.boundPlateFire);
|
ItemStack plateStack = new ItemStack(ModItems.boundPlateFire);
|
||||||
ModelBiped bipedModel = ((BoundArmour) ModItems.boundPlateFire)
|
ModelBiped bipedModel = ModItems.boundPlateFire
|
||||||
.getArmorModel(Minecraft.getMinecraft().thePlayer, plateStack, 1);
|
.getArmorModel(Minecraft.getMinecraft().thePlayer, plateStack, 1);
|
||||||
armModel = bipedModel.bipedRightArm;
|
armModel = bipedModel.bipedRightArm;
|
||||||
resource = new ResourceLocation(
|
resource = new ResourceLocation(
|
||||||
((BoundArmour) ModItems.boundPlateFire)
|
ModItems.boundPlateFire.getArmorTexture(plateStack, Minecraft.getMinecraft().thePlayer, 1, "POV"));
|
||||||
.getArmorTexture(plateStack, Minecraft.getMinecraft().thePlayer, 1, "POV"));
|
|
||||||
addBox(0, 0, 0, 0, 0, 0); // Adds in a blank box as it's required in certain cases such as rendering arrows in
|
addBox(0, 0, 0, 0, 0, 0); // Adds in a blank box as it's required in certain cases such as rendering arrows in
|
||||||
// entities
|
// entities
|
||||||
}
|
}
|
||||||
@@ -36,7 +34,6 @@ public class POVArmourModelWrapper extends ModelRenderer {
|
|||||||
@Override
|
@Override
|
||||||
public void render(float partialTicks) {
|
public void render(float partialTicks) {
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
// GL11.glTranslated(0.3, -.1, 0);
|
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(resource);
|
Minecraft.getMinecraft().renderEngine.bindTexture(resource);
|
||||||
armModel.rotateAngleX = this.rotateAngleX;
|
armModel.rotateAngleX = this.rotateAngleX;
|
||||||
armModel.rotateAngleY = this.rotateAngleY;
|
armModel.rotateAngleY = this.rotateAngleY;
|
||||||
|
|||||||
Loaded 100 of 941 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user