mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52b4415e8c | ||
|
|
3f9641b861 | ||
|
|
1fd6ac323b | ||
|
|
38f2dbb395 | ||
|
|
84e41cc920 | ||
|
|
5bfdabb5f6 | ||
|
|
2e95450cf0 | ||
|
|
8ff0421f55 | ||
|
|
ba0a0e3357 | ||
|
|
222ad1645e | ||
|
|
7b48d96988 | ||
|
|
baa2336b58 | ||
|
|
1341be8f49 | ||
|
|
89eaa78e51 | ||
|
|
a7d6f8e59b | ||
|
|
6c18cd1bee | ||
|
|
fcddb56254 | ||
|
|
4a185d64cb | ||
|
|
e14b1f23c9 | ||
|
|
0b70f3ed51 | ||
|
|
1c8ceacb7f | ||
|
|
3037e0f583 | ||
|
|
269eff14d3 | ||
|
|
ff2f889c76 |
No files matched your search
@@ -27,3 +27,4 @@ whitelist.json
|
|||||||
*.iws
|
*.iws
|
||||||
src/main/resources/mixins.*.json
|
src/main/resources/mixins.*.json
|
||||||
*.bat
|
*.bat
|
||||||
|
/layout.json
|
||||||
+2
-1602
File diff suppressed because it is too large.
Load diff
+11
-11
@@ -23,19 +23,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:waila:1.6.5:dev")
|
api("com.github.GTNewHorizons:waila:1.8.2:dev")
|
||||||
api("com.github.GTNewHorizons:NotEnoughItems:2.5.4-GTNH:dev")
|
api("com.github.GTNewHorizons:NotEnoughItems:2.7.22-GTNH:dev")
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.45.25:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.79:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Botania:1.10.3-GTNH:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:Botania:1.12.5-GTNH:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.8.2:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.1:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.4.7:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.2:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Chisel:2.13.4-GTNH:api") {transitive = false }
|
|
||||||
|
|
||||||
|
compileOnly("com.github.GTNewHorizons:Chisel:2.16.2-GTNH:api") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.3.0:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.0: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 }
|
||||||
|
|||||||
+159
-27
@@ -1,71 +1,203 @@
|
|||||||
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
|
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||||
# 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
|
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
|
||||||
|
mappingsVersion = 12
|
||||||
|
|
||||||
|
# Defines other MCP mappings for dependency deobfuscation.
|
||||||
|
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
||||||
|
|
||||||
|
# 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"
|
developmentEnvironmentUserName = "Developer"
|
||||||
|
|
||||||
|
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||||
|
# See https://github.com/bsideup/jabel for details on how this works.
|
||||||
|
enableModernJavaSyntax = false
|
||||||
|
|
||||||
# Generate a class with String fields for the mod id, name, version and group name named with the fields below
|
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||||
generateGradleTokenClass =WayofTime.alchemicalWizardry.Tags
|
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||||
gradleTokenModId =
|
enableGenericInjection = false
|
||||||
gradleTokenModName =
|
|
||||||
|
# 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.
|
||||||
|
# Example value: mymodid_at.cfg nei_at.cfg
|
||||||
accessTransformersFile = 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. You may only place Mixins in this package 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: GTNH Mixins 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 =
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# TODO: Remove when you modify this repository, it's been put in for automatic buildscript updates
|
# 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
|
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
|
||||||
|
|
||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
# 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
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@@ -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/HEAD/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/.
|
||||||
@@ -84,7 +86,8 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||||
|
' "$PWD" ) || exit
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
Vendored
+12
-10
@@ -13,6 +13,8 @@
|
|||||||
@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 ##########################################################################
|
||||||
@@ -43,11 +45,11 @@ 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
|
goto fail
|
||||||
|
|
||||||
@@ -57,11 +59,11 @@ 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
|
goto fail
|
||||||
|
|
||||||
|
|||||||
+3
-7
@@ -6,6 +6,7 @@ pluginManagement {
|
|||||||
name "GTNH Maven"
|
name "GTNH Maven"
|
||||||
url "https://nexus.gtnewhorizons.com/repository/public/"
|
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||||
mavenContent {
|
mavenContent {
|
||||||
|
includeGroup("com.gtnewhorizons")
|
||||||
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,12 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.diffplug.blowdryerSetup' version '1.7.1'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.31'
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' // Provides java toolchains
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blowdryerSetup {
|
|
||||||
repoSubfolder 'gtnhShared'
|
|
||||||
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.2.0')
|
|
||||||
//devLocal '.' // Use this when testing config updates locally
|
|
||||||
}
|
|
||||||
@@ -251,6 +251,7 @@ import WayofTime.alchemicalWizardry.common.spell.simple.SpellWateryGrave;
|
|||||||
import WayofTime.alchemicalWizardry.common.spell.simple.SpellWindGust;
|
import WayofTime.alchemicalWizardry.common.spell.simple.SpellWindGust;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.SummoningHelperAW;
|
import WayofTime.alchemicalWizardry.common.summoning.SummoningHelperAW;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.Meteor;
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.Meteor;
|
||||||
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorReagentRegistry;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAlchemicCalcinator;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAlchemicCalcinator;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEBellJar;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEBellJar;
|
||||||
@@ -718,8 +719,9 @@ public class AlchemicalWizardry {
|
|||||||
proxy.registerEntities();
|
proxy.registerEntities();
|
||||||
proxy.registerEntityTrackers();
|
proxy.registerEntityTrackers();
|
||||||
proxy.registerEvents();
|
proxy.registerEvents();
|
||||||
BloodMagicWailaPlugin.init();
|
if (Loader.isModLoaded("Waila")) {
|
||||||
|
BloodMagicWailaPlugin.init();
|
||||||
|
}
|
||||||
// ItemStacks used for crafting go here
|
// ItemStacks used for crafting go here
|
||||||
ItemStack lapisStack = new ItemStack(Items.dye, 1, 4);
|
ItemStack lapisStack = new ItemStack(Items.dye, 1, 4);
|
||||||
ItemStack lavaBucketStack = new ItemStack(Items.lava_bucket);
|
ItemStack lavaBucketStack = new ItemStack(Items.lava_bucket);
|
||||||
@@ -766,6 +768,7 @@ public class AlchemicalWizardry {
|
|||||||
ItemStack bloodRuneCraftedStack = new ItemStack(ModBlocks.bloodRune, 1);
|
ItemStack bloodRuneCraftedStack = new ItemStack(ModBlocks.bloodRune, 1);
|
||||||
ItemStack bloodRuneStack = new ItemStack(ModBlocks.bloodRune);
|
ItemStack bloodRuneStack = new ItemStack(ModBlocks.bloodRune);
|
||||||
ItemStack speedRuneStack = new ItemStack(ModBlocks.speedRune);
|
ItemStack speedRuneStack = new ItemStack(ModBlocks.speedRune);
|
||||||
|
ItemStack accelerationRuneStack = new ItemStack(ModBlocks.bloodRune, 1, 5);
|
||||||
ItemStack runeOfSacrificeStack = new ItemStack(ModBlocks.runeOfSacrifice);
|
ItemStack runeOfSacrificeStack = new ItemStack(ModBlocks.runeOfSacrifice);
|
||||||
ItemStack runeOfSelfSacrificeStack = new ItemStack(ModBlocks.runeOfSelfSacrifice);
|
ItemStack runeOfSelfSacrificeStack = new ItemStack(ModBlocks.runeOfSelfSacrifice);
|
||||||
ItemStack miningSigilStackCrafted = new ItemStack(ModItems.sigilOfTheFastMiner);
|
ItemStack miningSigilStackCrafted = new ItemStack(ModItems.sigilOfTheFastMiner);
|
||||||
@@ -2425,6 +2428,21 @@ public class AlchemicalWizardry {
|
|||||||
'o',
|
'o',
|
||||||
obsidianStack));
|
obsidianStack));
|
||||||
|
|
||||||
|
GameRegistry.addRecipe(
|
||||||
|
new ShapedBloodOrbRecipe(
|
||||||
|
new ItemStack(ModBlocks.bloodRune, 1, 6),
|
||||||
|
"eae",
|
||||||
|
"sos",
|
||||||
|
"eae",
|
||||||
|
'e',
|
||||||
|
etherealSlateStack,
|
||||||
|
's',
|
||||||
|
speedRuneStack,
|
||||||
|
'a',
|
||||||
|
accelerationRuneStack,
|
||||||
|
'o',
|
||||||
|
archmageBloodOrbStack));
|
||||||
|
|
||||||
AlchemyRecipeRegistry.registerRecipe(
|
AlchemyRecipeRegistry.registerRecipe(
|
||||||
crackedRunicPlateStackCrafted,
|
crackedRunicPlateStackCrafted,
|
||||||
10,
|
10,
|
||||||
@@ -3304,6 +3322,7 @@ public class AlchemicalWizardry {
|
|||||||
|
|
||||||
DemonVillageLootRegistry.init();
|
DemonVillageLootRegistry.init();
|
||||||
Meteor.loadConfig();
|
Meteor.loadConfig();
|
||||||
|
MeteorReagentRegistry.loadConfig();
|
||||||
|
|
||||||
this.initCompressionHandlers();
|
this.initCompressionHandlers();
|
||||||
}
|
}
|
||||||
@@ -4487,7 +4506,7 @@ public class AlchemicalWizardry {
|
|||||||
return strings;
|
return strings;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.EventHandler
|
@EventHandler
|
||||||
public void initCommands(FMLServerStartingEvent event) {
|
public void initCommands(FMLServerStartingEvent event) {
|
||||||
event.registerServerCommand(new CommandBloodMagic());
|
event.registerServerCommand(new CommandBloodMagic());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -611,35 +611,40 @@ public class BloodMagicConfiguration {
|
|||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5),
|
||||||
|
new BlockStack(ModBlocks.bloodRune, 6) });
|
||||||
AlchemicalWizardry.thirdTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.thirdTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
||||||
"thirdTier",
|
"thirdTier",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5),
|
||||||
|
new BlockStack(ModBlocks.bloodRune, 6) });
|
||||||
AlchemicalWizardry.fourthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.fourthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
||||||
"fourthTier",
|
"fourthTier",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5),
|
||||||
|
new BlockStack(ModBlocks.bloodRune, 6) });
|
||||||
AlchemicalWizardry.fifthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.fifthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
||||||
"fifthTier",
|
"fifthTier",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5),
|
||||||
|
new BlockStack(ModBlocks.bloodRune, 6) });
|
||||||
AlchemicalWizardry.sixthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
AlchemicalWizardry.sixthTierRunes = BloodMagicConfiguration.getAltarRunesForTier(
|
||||||
"sixthTier",
|
"sixthTier",
|
||||||
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
new BlockStack[] { new BlockStack(ModBlocks.bloodRune, 0), new BlockStack(ModBlocks.speedRune, 0),
|
||||||
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
new BlockStack(ModBlocks.efficiencyRune, 0), new BlockStack(ModBlocks.runeOfSacrifice, 0),
|
||||||
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
new BlockStack(ModBlocks.runeOfSelfSacrifice, 0), new BlockStack(ModBlocks.bloodRune, 1),
|
||||||
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
new BlockStack(ModBlocks.bloodRune, 2), new BlockStack(ModBlocks.bloodRune, 3),
|
||||||
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5) });
|
new BlockStack(ModBlocks.bloodRune, 4), new BlockStack(ModBlocks.bloodRune, 5),
|
||||||
|
new BlockStack(ModBlocks.bloodRune, 6) });
|
||||||
AlchemicalWizardry.specialAltarBlock = getAltarRunesForTier(
|
AlchemicalWizardry.specialAltarBlock = getAltarRunesForTier(
|
||||||
"specialBlocks",
|
"specialBlocks",
|
||||||
new BlockStack[] { new BlockStack(Blocks.stonebrick, 0), new BlockStack(Blocks.glowstone, 0),
|
new BlockStack[] { new BlockStack(Blocks.stonebrick, 0), new BlockStack(Blocks.glowstone, 0),
|
||||||
|
|||||||
@@ -6,7 +6,48 @@ 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.AirScribeTool;
|
||||||
|
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.DawnScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DuskScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EarthScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBazooka;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBlast;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergySword;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnhancedTelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.FireScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemAlchemyBase;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
|
||||||
|
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.TelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.WaterScribeTool;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
import WayofTime.alchemicalWizardry.common.items.armour.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;
|
||||||
|
|||||||
+24
-16
@@ -14,6 +14,7 @@ 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 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;
|
||||||
|
|
||||||
@@ -35,11 +36,12 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
@@ -51,11 +53,12 @@ public class SoulNetworkHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
@@ -96,7 +99,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;
|
||||||
}
|
}
|
||||||
@@ -192,11 +195,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 +212,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 +229,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) {
|
||||||
@@ -255,11 +261,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 +280,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;
|
||||||
}
|
}
|
||||||
@@ -348,10 +355,11 @@ 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) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.client.nei;
|
package WayofTime.alchemicalWizardry.client.nei;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Point;
|
||||||
|
import java.awt.Rectangle;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -10,12 +11,14 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
import com.google.common.base.Joiner;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorParadigm;
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorParadigm;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorParadigmComponent;
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorParadigmComponent;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
||||||
@@ -40,23 +43,26 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
int row = 0;
|
int row = 0;
|
||||||
int col = 0;
|
int col = 0;
|
||||||
|
|
||||||
float totalMeteorWeight = meteor.getTotalMeteorWeight();
|
float totalComponentWeight = meteor.getTotalListWeight(meteor.componentList);
|
||||||
|
int fillerChance = meteor.fillerChance;
|
||||||
List<MeteorParadigmComponent> sortedComponents = new ArrayList<>(meteor.componentList);
|
List<MeteorParadigmComponent> sortedComponents = new ArrayList<>(meteor.componentList);
|
||||||
sortedComponents.sort(Comparator.comparingInt(c -> -c.chance));
|
sortedComponents.sort(Comparator.comparingInt(c -> -c.getWeight()));
|
||||||
|
|
||||||
|
float fillerRatio = (float) (fillerChance / 100.0);
|
||||||
|
float componentRatio = 1 - fillerRatio;
|
||||||
|
|
||||||
for (MeteorParadigmComponent component : sortedComponents) {
|
for (MeteorParadigmComponent component : sortedComponents) {
|
||||||
ItemStack stack = component.getValidBlockParadigm();
|
ItemStack stack = component.getBlock();
|
||||||
int xPos = 3 + 18 * col;
|
int xPos = 3 + 18 * col;
|
||||||
int yPos = 37 + 18 * row;
|
int yPos = 37 + 18 * row;
|
||||||
|
|
||||||
List<String> tooltips = new ArrayList<>();
|
List<String> tooltips = new ArrayList<>();
|
||||||
if (stack == null) {
|
float chance = component.getWeight() / totalComponentWeight * componentRatio;
|
||||||
stack = new ItemStack(Blocks.fire);
|
|
||||||
tooltips.add(String.format("no entries found for oredict \"%s\"", component.getOreDictName()));
|
|
||||||
}
|
|
||||||
float chance = component.getChance() / totalMeteorWeight;
|
|
||||||
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
|
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
|
||||||
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
|
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
|
||||||
|
if (!component.getRequiredReagents().isEmpty()) {
|
||||||
|
tooltips.add(I18n.format("nei.recipe.meteor.reagent", getReagentStrings(component)));
|
||||||
|
}
|
||||||
this.outputs.add(new TooltipStack(stack, xPos, yPos, tooltips));
|
this.outputs.add(new TooltipStack(stack, xPos, yPos, tooltips));
|
||||||
|
|
||||||
col++;
|
col++;
|
||||||
@@ -65,14 +71,61 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (focusStack != null && matchItem(focusStack, stack)) {
|
if (matchItem(focusStack, stack)) {
|
||||||
this.focus = new Point(xPos - 1, yPos - 1);
|
this.focus = new Point(xPos - 1, yPos - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fillerChance > 0) {
|
||||||
|
if (col != 0) {
|
||||||
|
col = 0;
|
||||||
|
row++;
|
||||||
|
}
|
||||||
|
|
||||||
|
List<MeteorParadigmComponent> sortedFiller = new ArrayList<>(meteor.fillerList);
|
||||||
|
sortedFiller.sort(Comparator.comparingInt(c -> -c.getWeight()));
|
||||||
|
float totalFillerWeight = meteor.getTotalListWeight(meteor.fillerList);
|
||||||
|
|
||||||
|
for (MeteorParadigmComponent filler : sortedFiller) {
|
||||||
|
ItemStack stack = filler.getBlock();
|
||||||
|
int xPos = 3 + 18 * col;
|
||||||
|
int yPos = 37 + 18 * row;
|
||||||
|
|
||||||
|
List<String> tooltips = new ArrayList<>();
|
||||||
|
float chance = filler.getWeight() / totalFillerWeight * fillerRatio;
|
||||||
|
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
|
||||||
|
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
|
||||||
|
tooltips.add(I18n.format("nei.recipe.meteor.filler"));
|
||||||
|
if (!filler.getRequiredReagents().isEmpty()) {
|
||||||
|
tooltips.add(I18n.format("nei.recipe.meteor.reagent", getReagentStrings(filler)));
|
||||||
|
}
|
||||||
|
this.outputs.add(new TooltipStack(stack, xPos, yPos, tooltips));
|
||||||
|
|
||||||
|
col++;
|
||||||
|
if (col > 8) {
|
||||||
|
col = 0;
|
||||||
|
row++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (matchItem(focusStack, stack)) {
|
||||||
|
this.focus = new Point(xPos - 1, yPos - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.radius = meteor.radius;
|
this.radius = meteor.radius;
|
||||||
this.cost = meteor.cost;
|
this.cost = meteor.cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getReagentStrings(MeteorParadigmComponent component) {
|
||||||
|
ArrayList<Reagent> reagents = component.getRequiredReagents();
|
||||||
|
ArrayList<String> reagentNames = new ArrayList<>();
|
||||||
|
for (Reagent r : reagents) {
|
||||||
|
reagentNames.add(r.name);
|
||||||
|
}
|
||||||
|
return Joiner.on(", ").join(reagentNames);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PositionedStack> getIngredients() {
|
public List<PositionedStack> getIngredients() {
|
||||||
return this.input;
|
return this.input;
|
||||||
@@ -116,7 +169,10 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void loadCraftingRecipes(ItemStack result) {
|
public void loadCraftingRecipes(ItemStack result) {
|
||||||
for (MeteorParadigm meteor : getSortedMeteors()) {
|
for (MeteorParadigm meteor : getSortedMeteors()) {
|
||||||
if (meteor.componentList.stream().anyMatch(m -> matchItem(result, m.getValidBlockParadigm()))) {
|
if (meteor.componentList.stream().anyMatch(m -> matchItem(result, m.getBlock()))) {
|
||||||
|
arecipes.add(new CachedMeteorRecipe(meteor, result));
|
||||||
|
}
|
||||||
|
if (meteor.fillerList.stream().anyMatch(m -> matchItem(result, m.getBlock()))) {
|
||||||
arecipes.add(new CachedMeteorRecipe(meteor, result));
|
arecipes.add(new CachedMeteorRecipe(meteor, result));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -209,6 +265,6 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private int getEstimatedAmount(float chance, int radius) {
|
private int getEstimatedAmount(float chance, int radius) {
|
||||||
return (int) Math.ceil(4f / 3 * Math.PI * Math.pow(radius, 3) * chance);
|
return (int) Math.ceil(4f / 3 * Math.PI * Math.pow(radius + 0.5, 3) * chance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,26 +106,24 @@ public class RenderHelper {
|
|||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
int xSize = 32;
|
int xSize = 32;
|
||||||
int ySize = 32;
|
int ySize = 32;
|
||||||
|
|
||||||
int amount = Math.max((int) (256 * ((double) (maxAmount - lpAmount) / maxAmount)), 0);
|
int amount = Math.max((int) (256 * ((double) (maxAmount - lpAmount) / maxAmount)), 0);
|
||||||
|
|
||||||
int x = (lpBarX - xSize / 2) * 8;
|
int x = (lpBarX - xSize / 2) * 8;
|
||||||
int y = (lpBarY - ySize / 2) * 8;
|
int y = (lpBarY - ySize / 2) * 8;
|
||||||
|
|
||||||
ResourceLocation test2 = new ResourceLocation("alchemicalwizardry", "textures/gui/container1.png");
|
ResourceLocation test2 = new ResourceLocation("alchemicalwizardry", "textures/gui/container1.png");
|
||||||
GL11.glColor4f(1, 0, 0, 1.0F);
|
GL11.glColor4f(1, 0, 0, 1.0F);
|
||||||
mc.getTextureManager().bindTexture(test2);
|
GL11.glEnable(GL11.GL_BLEND);
|
||||||
|
mc.renderEngine.bindTexture(test2);
|
||||||
GL11.glScalef(1f / 8f, 1f / 8f, 1f / 8f);
|
GL11.glScalef(1f / 8f, 1f / 8f, 1f / 8f);
|
||||||
|
GL11.glPushMatrix();
|
||||||
drawTexturedModalRect(x, y + amount, 0, amount, 256, 256 - amount);
|
drawTexturedModalRect(x, y + amount, 0, amount, 256, 256 - amount);
|
||||||
|
GL11.glPopMatrix();
|
||||||
ResourceLocation test = new ResourceLocation("alchemicalwizardry", "textures/gui/lpVial.png");
|
ResourceLocation test = new ResourceLocation("alchemicalwizardry", "textures/gui/lpVial.png");
|
||||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
mc.getTextureManager().bindTexture(test);
|
mc.renderEngine.bindTexture(test);
|
||||||
|
GL11.glPushMatrix();
|
||||||
drawTexturedModalRect(x, y, 0, 0, 256, 256);
|
drawTexturedModalRect(x, y, 0, 0, 256, 256);
|
||||||
|
GL11.glPopMatrix();
|
||||||
|
GL11.glDisable(GL11.GL_BLEND);
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -11,6 +11,7 @@ import net.minecraft.server.MinecraftServer;
|
|||||||
import WayofTime.alchemicalWizardry.ModItems;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
import WayofTime.alchemicalWizardry.common.items.LavaCrystal;
|
import WayofTime.alchemicalWizardry.common.items.LavaCrystal;
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.IFuelHandler;
|
import cpw.mods.fml.common.IFuelHandler;
|
||||||
|
|
||||||
public class AlchemicalWizardryFuelHandler implements IFuelHandler {
|
public class AlchemicalWizardryFuelHandler implements IFuelHandler {
|
||||||
@@ -35,11 +36,12 @@ public class AlchemicalWizardryFuelHandler implements IFuelHandler {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MinecraftServer.getServer() == null) {
|
MinecraftServer mcServer = FMLCommonHandler.instance().getMinecraftServerInstance();
|
||||||
|
if (mcServer == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MinecraftServer.getServer().getConfigurationManager() == null) {
|
if (mcServer.getConfigurationManager() == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.common;
|
package WayofTime.alchemicalWizardry.common;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.BitSet;
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -10,6 +12,7 @@ import net.minecraft.entity.player.EntityPlayerMP;
|
|||||||
import net.minecraft.network.Packet;
|
import net.minecraft.network.Packet;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.chunk.Chunk;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
@@ -77,6 +80,8 @@ public enum NewPacketHandler {
|
|||||||
.addAfter(tileAltarCodec, "CurrentReagentBarMessageHandler", new CurrentReagentBarMessageHandler());
|
.addAfter(tileAltarCodec, "CurrentReagentBarMessageHandler", new CurrentReagentBarMessageHandler());
|
||||||
clientChannel.pipeline()
|
clientChannel.pipeline()
|
||||||
.addAfter(tileAltarCodec, "CurrentAddedHPMessageHandler", new CurrentAddedHPMessageHandler());
|
.addAfter(tileAltarCodec, "CurrentAddedHPMessageHandler", new CurrentAddedHPMessageHandler());
|
||||||
|
clientChannel.pipeline()
|
||||||
|
.addAfter(tileAltarCodec, "GaiaBiomeChangeHandler", new GaiaBiomeChangeMessageHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.SERVER)
|
@SideOnly(Side.SERVER)
|
||||||
@@ -283,6 +288,23 @@ public enum NewPacketHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static class GaiaBiomeChangeMessageHandler extends SimpleChannelInboundHandler<GaiaBiomeChangeMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void channelRead0(ChannelHandlerContext ctx, GaiaBiomeChangeMessage msg) throws Exception {
|
||||||
|
Chunk chunk = AlchemicalWizardry.proxy.getClientWorld().getChunkFromChunkCoords(msg.chunkX, msg.chunkZ);
|
||||||
|
if (chunk != null) {
|
||||||
|
byte[] biomeArray = chunk.getBiomeArray();
|
||||||
|
for (int i = 0; i < 16 * 16; ++i) {
|
||||||
|
if (msg.mask.get(i)) {
|
||||||
|
biomeArray[i] = msg.biome;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
chunk.setBiomeArray(biomeArray);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class BMMessage {
|
public static class BMMessage {
|
||||||
|
|
||||||
int index;
|
int index;
|
||||||
@@ -417,6 +439,16 @@ public enum NewPacketHandler {
|
|||||||
byte keyPressed;
|
byte keyPressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class GaiaBiomeChangeMessage extends BMMessage {
|
||||||
|
|
||||||
|
int chunkX;
|
||||||
|
int chunkZ;
|
||||||
|
byte biome;
|
||||||
|
BitSet mask;
|
||||||
|
// One bit per coordinate in a chunk, 16*16 bits = 32 bytes
|
||||||
|
public static final int maskByteCount = 32;
|
||||||
|
}
|
||||||
|
|
||||||
private class ClientToServerCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
|
private class ClientToServerCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
|
||||||
|
|
||||||
public ClientToServerCodec() {}
|
public ClientToServerCodec() {}
|
||||||
@@ -458,6 +490,7 @@ public enum NewPacketHandler {
|
|||||||
addDiscriminator(12, CurrentReagentBarMessage.class);
|
addDiscriminator(12, CurrentReagentBarMessage.class);
|
||||||
addDiscriminator(13, CurrentAddedHPMessage.class);
|
addDiscriminator(13, CurrentAddedHPMessage.class);
|
||||||
addDiscriminator(14, KeyboardMessage.class);
|
addDiscriminator(14, KeyboardMessage.class);
|
||||||
|
addDiscriminator(15, GaiaBiomeChangeMessage.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -669,6 +702,17 @@ public enum NewPacketHandler {
|
|||||||
|
|
||||||
target.writeByte(((KeyboardMessage) msg).keyPressed);
|
target.writeByte(((KeyboardMessage) msg).keyPressed);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 15:
|
||||||
|
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkX);
|
||||||
|
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkZ);
|
||||||
|
target.writeByte(((GaiaBiomeChangeMessage) msg).biome);
|
||||||
|
byte[] arr = Arrays.copyOf(
|
||||||
|
((GaiaBiomeChangeMessage) msg).mask.toByteArray(),
|
||||||
|
GaiaBiomeChangeMessage.maskByteCount);
|
||||||
|
target.writeBytes(arr);
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -894,6 +938,16 @@ public enum NewPacketHandler {
|
|||||||
System.out.println("Packet recieved: being decoded");
|
System.out.println("Packet recieved: being decoded");
|
||||||
((KeyboardMessage) msg).keyPressed = dat.readByte();
|
((KeyboardMessage) msg).keyPressed = dat.readByte();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 15:
|
||||||
|
((GaiaBiomeChangeMessage) msg).chunkX = dat.readInt();
|
||||||
|
((GaiaBiomeChangeMessage) msg).chunkZ = dat.readInt();
|
||||||
|
((GaiaBiomeChangeMessage) msg).biome = dat.readByte();
|
||||||
|
|
||||||
|
byte[] buffer = new byte[GaiaBiomeChangeMessage.maskByteCount];
|
||||||
|
dat.readBytes(buffer);
|
||||||
|
((GaiaBiomeChangeMessage) msg).mask = BitSet.valueOf(buffer);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1067,6 +1121,17 @@ public enum NewPacketHandler {
|
|||||||
return INSTANCE.channels.get(Side.CLIENT).generatePacketFrom(msg);
|
return INSTANCE.channels.get(Side.CLIENT).generatePacketFrom(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Packet getGaiaBiomeChangePacket(int x, int z, byte biome, BitSet mask) {
|
||||||
|
GaiaBiomeChangeMessage msg = new GaiaBiomeChangeMessage();
|
||||||
|
msg.index = 15;
|
||||||
|
msg.chunkX = x;
|
||||||
|
msg.chunkZ = z;
|
||||||
|
msg.biome = biome;
|
||||||
|
msg.mask = mask;
|
||||||
|
|
||||||
|
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
||||||
|
}
|
||||||
|
|
||||||
public void sendTo(Packet message, EntityPlayerMP player) {
|
public void sendTo(Packet message, EntityPlayerMP player) {
|
||||||
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
.set(FMLOutboundHandler.OutboundTarget.PLAYER);
|
.set(FMLOutboundHandler.OutboundTarget.PLAYER);
|
||||||
@@ -1087,6 +1152,13 @@ public enum NewPacketHandler {
|
|||||||
this.channels.get(Side.SERVER).writeAndFlush(message);
|
this.channels.get(Side.SERVER).writeAndFlush(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendToDimension(Packet message, Integer dimensionId) {
|
||||||
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
|
.set(FMLOutboundHandler.OutboundTarget.DIMENSION);
|
||||||
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(dimensionId);
|
||||||
|
this.channels.get(Side.SERVER).writeAndFlush(message);
|
||||||
|
}
|
||||||
|
|
||||||
public void sendToServer(Packet message) {
|
public void sendToServer(Packet message) {
|
||||||
this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
.set(FMLOutboundHandler.OutboundTarget.TOSERVER);
|
.set(FMLOutboundHandler.OutboundTarget.TOSERVER);
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ public class BloodRune extends Block {
|
|||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
private IIcon accelerationRuneIcon;
|
private IIcon accelerationRuneIcon;
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private IIcon quicknessRuneIcon;
|
||||||
|
|
||||||
public BloodRune() {
|
public BloodRune() {
|
||||||
super(Material.iron);
|
super(Material.iron);
|
||||||
this.setBlockName("bloodRune");
|
this.setBlockName("bloodRune");
|
||||||
@@ -50,6 +53,7 @@ public class BloodRune extends Block {
|
|||||||
this.orbCapacityRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:OrbCapacityRune");
|
this.orbCapacityRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:OrbCapacityRune");
|
||||||
this.betterCapacityRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:BetterCapacityRune");
|
this.betterCapacityRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:BetterCapacityRune");
|
||||||
this.accelerationRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:AccelerationRune");
|
this.accelerationRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:AccelerationRune");
|
||||||
|
this.quicknessRuneIcon = iconRegister.registerIcon("AlchemicalWizardry:QuicknessRune");
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getRuneEffect(int metaData) {
|
public int getRuneEffect(int metaData) {
|
||||||
@@ -71,6 +75,9 @@ public class BloodRune extends Block {
|
|||||||
|
|
||||||
case 5: // Acceleration rune
|
case 5: // Acceleration rune
|
||||||
return 9;
|
return 9;
|
||||||
|
|
||||||
|
case 6: // Quickness Rune
|
||||||
|
return 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -89,6 +96,7 @@ public class BloodRune extends Block {
|
|||||||
par3List.add(new ItemStack(par1, 1, 3));
|
par3List.add(new ItemStack(par1, 1, 3));
|
||||||
par3List.add(new ItemStack(par1, 1, 4));
|
par3List.add(new ItemStack(par1, 1, 4));
|
||||||
par3List.add(new ItemStack(par1, 1, 5));
|
par3List.add(new ItemStack(par1, 1, 5));
|
||||||
|
par3List.add(new ItemStack(par1, 1, 6));
|
||||||
} else {
|
} else {
|
||||||
super.getSubBlocks(par1, par2CreativeTabs, par3List);
|
super.getSubBlocks(par1, par2CreativeTabs, par3List);
|
||||||
}
|
}
|
||||||
@@ -115,6 +123,10 @@ public class BloodRune extends Block {
|
|||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
return this.accelerationRuneIcon;
|
return this.accelerationRuneIcon;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
return this.quicknessRuneIcon;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return blockIcon;
|
return blockIcon;
|
||||||
}
|
}
|
||||||
|
|||||||
+10
@@ -11,6 +11,7 @@ public class AltarUpgradeComponent {
|
|||||||
private int orbCapacitiveUpgrades;
|
private int orbCapacitiveUpgrades;
|
||||||
private int betterCapacitiveUpgrades;
|
private int betterCapacitiveUpgrades;
|
||||||
private int accelerationUpgrades;
|
private int accelerationUpgrades;
|
||||||
|
private int quicknessUpgrades;
|
||||||
|
|
||||||
public AltarUpgradeComponent() {
|
public AltarUpgradeComponent() {
|
||||||
speedUpgrades = 0;
|
speedUpgrades = 0;
|
||||||
@@ -22,6 +23,7 @@ public class AltarUpgradeComponent {
|
|||||||
orbCapacitiveUpgrades = 0;
|
orbCapacitiveUpgrades = 0;
|
||||||
betterCapacitiveUpgrades = 0;
|
betterCapacitiveUpgrades = 0;
|
||||||
accelerationUpgrades = 0;
|
accelerationUpgrades = 0;
|
||||||
|
quicknessUpgrades = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addSpeedUpgrade() {
|
public void addSpeedUpgrade() {
|
||||||
@@ -60,6 +62,10 @@ public class AltarUpgradeComponent {
|
|||||||
accelerationUpgrades++;
|
accelerationUpgrades++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addQuicknessUpgrade() {
|
||||||
|
quicknessUpgrades++;
|
||||||
|
}
|
||||||
|
|
||||||
public int getSpeedUpgrades() {
|
public int getSpeedUpgrades() {
|
||||||
return speedUpgrades;
|
return speedUpgrades;
|
||||||
}
|
}
|
||||||
@@ -95,4 +101,8 @@ public class AltarUpgradeComponent {
|
|||||||
public int getAccelerationUpgrades() {
|
public int getAccelerationUpgrades() {
|
||||||
return this.accelerationUpgrades;
|
return this.accelerationUpgrades;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getQuicknessUpgrades() {
|
||||||
|
return this.quicknessUpgrades;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+4
@@ -142,6 +142,10 @@ public class UpgradedAltars {
|
|||||||
case 9:
|
case 9:
|
||||||
upgrades.addAccelerationUpgrade();
|
upgrades.addAccelerationUpgrade();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 10:
|
||||||
|
upgrades.addQuicknessUpgrade();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -410,6 +410,12 @@ public class BloodMagicGuide {
|
|||||||
PageHelper.pagesForLongText(StatCollector.translateToLocal("aw.entries.architect.accelerationRune")));
|
PageHelper.pagesForLongText(StatCollector.translateToLocal("aw.entries.architect.accelerationRune")));
|
||||||
entries.add(new EntryUniText(accelerationRunePages, "guide.BloodMagic.entryName.architect.accelerationRune"));
|
entries.add(new EntryUniText(accelerationRunePages, "guide.BloodMagic.entryName.architect.accelerationRune"));
|
||||||
|
|
||||||
|
ArrayList<IPage> quicknessRuneRecipe = new ArrayList();
|
||||||
|
demonicOrbPages.add(getOrbPageForRecipe(RecipeHolder.quicknessRuneRecipe));
|
||||||
|
quicknessRuneRecipe.addAll(
|
||||||
|
PageHelper.pagesForLongText(StatCollector.translateToLocal("aw.entries.architect.quicknessRune")));
|
||||||
|
entries.add(new EntryUniText(quicknessRuneRecipe, "guide.BloodMagic.entryName.architect.quicknessRune"));
|
||||||
|
|
||||||
ArrayList<IPage> harvestPages = new ArrayList();
|
ArrayList<IPage> harvestPages = new ArrayList();
|
||||||
demonicOrbPages.add(getOrbPageForRecipe(RecipeHolder.harvestSigilRecipe));
|
demonicOrbPages.add(getOrbPageForRecipe(RecipeHolder.harvestSigilRecipe));
|
||||||
harvestPages
|
harvestPages
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.commands;
|
package WayofTime.alchemicalWizardry.common.commands;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import net.minecraft.command.CommandBase;
|
import net.minecraft.command.CommandBase;
|
||||||
import net.minecraft.command.ICommandSender;
|
import net.minecraft.command.ICommandSender;
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+10
-1
@@ -3,7 +3,16 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILeapAtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+9
-1
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+18
-29
@@ -1,22 +1,22 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.projectile;
|
package WayofTime.alchemicalWizardry.common.entity.projectile;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.util.DamageSource;
|
import net.minecraft.util.DamageSource;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
||||||
|
|
||||||
public class EntityMeteor extends EnergyBlastProjectile {
|
public class EntityMeteor extends EnergyBlastProjectile {
|
||||||
|
|
||||||
private int meteorID;
|
private int meteorID;
|
||||||
|
|
||||||
public boolean hasTerrae;
|
public ArrayList<Reagent> reagentList = new ArrayList<>();
|
||||||
public boolean hasOrbisTerrae;
|
|
||||||
public boolean hasCrystallos;
|
|
||||||
public boolean hasIncendium;
|
|
||||||
public boolean hasTennebrae;
|
|
||||||
|
|
||||||
public EntityMeteor(World par1World) {
|
public EntityMeteor(World par1World) {
|
||||||
super(par1World);
|
super(par1World);
|
||||||
@@ -33,11 +33,11 @@ public class EntityMeteor extends EnergyBlastProjectile {
|
|||||||
super.writeEntityToNBT(par1NBTTagCompound);
|
super.writeEntityToNBT(par1NBTTagCompound);
|
||||||
|
|
||||||
par1NBTTagCompound.setInteger("meteorID", meteorID);
|
par1NBTTagCompound.setInteger("meteorID", meteorID);
|
||||||
par1NBTTagCompound.setBoolean("hasTerrae", hasTerrae);
|
|
||||||
par1NBTTagCompound.setBoolean("hasOrbisTerrae", hasOrbisTerrae);
|
for (Reagent r : reagentList) {
|
||||||
par1NBTTagCompound.setBoolean("hasCrystallos", hasCrystallos);
|
par1NBTTagCompound.setBoolean("reagent." + r.name, true);
|
||||||
par1NBTTagCompound.setBoolean("hasIncendium", hasIncendium);
|
}
|
||||||
par1NBTTagCompound.setBoolean("hasTennebrae", hasTennebrae);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,11 +45,11 @@ public class EntityMeteor extends EnergyBlastProjectile {
|
|||||||
super.readEntityFromNBT(par1NBTTagCompound);
|
super.readEntityFromNBT(par1NBTTagCompound);
|
||||||
|
|
||||||
meteorID = par1NBTTagCompound.getInteger("meteorID");
|
meteorID = par1NBTTagCompound.getInteger("meteorID");
|
||||||
hasTerrae = par1NBTTagCompound.getBoolean("hasTerrae");
|
for (Reagent r : ReagentRegistry.reagentList.values()) {
|
||||||
hasOrbisTerrae = par1NBTTagCompound.getBoolean("hasOrbisTerrae");
|
if (par1NBTTagCompound.getBoolean("reagent." + r.name)) {
|
||||||
hasIncendium = par1NBTTagCompound.getBoolean("hasIncendium");
|
reagentList.add(r);
|
||||||
hasCrystallos = par1NBTTagCompound.getBoolean("hasCrystallos");
|
}
|
||||||
hasTennebrae = par1NBTTagCompound.getBoolean("hasTennebrae");
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -66,13 +66,7 @@ public class EntityMeteor extends EnergyBlastProjectile {
|
|||||||
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && mop.entityHit != null) {
|
if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && mop.entityHit != null) {
|
||||||
this.onImpact(mop.entityHit);
|
this.onImpact(mop.entityHit);
|
||||||
} else if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
|
} else if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
|
||||||
MeteorRegistry.createMeteorImpact(
|
MeteorRegistry.createMeteorImpact(worldObj, mop.blockX, mop.blockY, mop.blockZ, this.meteorID, reagentList);
|
||||||
worldObj,
|
|
||||||
mop.blockX,
|
|
||||||
mop.blockY,
|
|
||||||
mop.blockZ,
|
|
||||||
this.meteorID,
|
|
||||||
new boolean[] { hasTerrae, hasOrbisTerrae, hasCrystallos, hasIncendium, hasTennebrae });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setDead();
|
this.setDead();
|
||||||
@@ -80,13 +74,8 @@ public class EntityMeteor extends EnergyBlastProjectile {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onImpact(Entity mop) {
|
public void onImpact(Entity mop) {
|
||||||
MeteorRegistry.createMeteorImpact(
|
MeteorRegistry
|
||||||
worldObj,
|
.createMeteorImpact(worldObj, (int) this.posX, (int) this.posY, (int) this.posZ, meteorID, reagentList);
|
||||||
(int) this.posX,
|
|
||||||
(int) this.posY,
|
|
||||||
(int) this.posZ,
|
|
||||||
meteorID,
|
|
||||||
new boolean[] { hasTerrae, hasOrbisTerrae, hasCrystallos, hasIncendium, hasTennebrae });
|
|
||||||
|
|
||||||
this.setDead();
|
this.setDead();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public class RecipeHolder {
|
|||||||
public static IRecipe keyOfBindingRecipe;
|
public static IRecipe keyOfBindingRecipe;
|
||||||
public static IRecipe energyBazookaRecipe;
|
public static IRecipe energyBazookaRecipe;
|
||||||
public static IRecipe accelerationRuneRecipe;
|
public static IRecipe accelerationRuneRecipe;
|
||||||
|
public static IRecipe quicknessRuneRecipe;
|
||||||
public static IRecipe harvestSigilRecipe;
|
public static IRecipe harvestSigilRecipe;
|
||||||
public static IRecipe crystalCluserRecipe;
|
public static IRecipe crystalCluserRecipe;
|
||||||
public static IRecipe arcanePlinthRecipe;
|
public static IRecipe arcanePlinthRecipe;
|
||||||
@@ -152,6 +153,7 @@ public class RecipeHolder {
|
|||||||
harvestSigilRecipe = getRecipeForItemStack(new ItemStack(ModItems.itemHarvestSigil));
|
harvestSigilRecipe = getRecipeForItemStack(new ItemStack(ModItems.itemHarvestSigil));
|
||||||
crystalCluserRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockCrystal));
|
crystalCluserRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockCrystal));
|
||||||
weakRitualStoneRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.imperfectRitualStone));
|
weakRitualStoneRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.imperfectRitualStone));
|
||||||
|
quicknessRuneRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.bloodRune, 1, 6));
|
||||||
|
|
||||||
arcanePlinthRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockPlinth));
|
arcanePlinthRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockPlinth));
|
||||||
arcanePedestalRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockPedestal));
|
arcanePedestalRecipe = getRecipeForItemStack(new ItemStack(ModBlocks.blockPedestal));
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ public class ItemBloodRuneBlock extends ItemBlock {
|
|||||||
name = "acceleration";
|
name = "acceleration";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
name = "quickness";
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
name = "broken";
|
name = "broken";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import java.util.List;
|
|||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.server.MinecraftServer;
|
|
||||||
import net.minecraft.util.StatCollector;
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraft.world.WorldProvider;
|
import net.minecraft.world.WorldProvider;
|
||||||
@@ -13,6 +12,7 @@ import net.minecraftforge.common.DimensionManager;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.soulNetwork.LifeEssenceNetwork;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.LifeEssenceNetwork;
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ public class LavaCrystal extends EnergyItems {
|
|||||||
if (itemStack.getTagCompound() != null && !(itemStack.getTagCompound().getString("ownerName").equals(""))) {
|
if (itemStack.getTagCompound() != null && !(itemStack.getTagCompound().getString("ownerName").equals(""))) {
|
||||||
String ownerName = itemStack.getTagCompound().getString("ownerName");
|
String ownerName = itemStack.getTagCompound().getString("ownerName");
|
||||||
|
|
||||||
if (MinecraftServer.getServer() == null) {
|
if (FMLCommonHandler.instance().getMinecraftServerInstance() == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.util.StatCollector;
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.DimensionManager;
|
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
@@ -75,7 +75,8 @@ public class TelepositionFocus extends EnergyItems {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public World getWorld(ItemStack itemStack) {
|
public World getWorld(ItemStack itemStack) {
|
||||||
return DimensionManager.getWorld(getDimensionID(itemStack));
|
return FMLCommonHandler.instance().getMinecraftServerInstance()
|
||||||
|
.worldServerForDimension(getDimensionID(itemStack));
|
||||||
}
|
}
|
||||||
|
|
||||||
public int xCoord(ItemStack itemStack) {
|
public int xCoord(ItemStack itemStack) {
|
||||||
|
|||||||
+5
-1
@@ -19,7 +19,11 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.IReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainerInfo;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|||||||
+5
-1
@@ -17,7 +17,11 @@ import net.minecraft.world.World;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ISegmentedReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainerInfo;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ import net.minecraft.util.MovingObjectPosition;
|
|||||||
import net.minecraft.util.StatCollector;
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.*;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
|
import net.minecraftforge.fluids.FluidRegistry;
|
||||||
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
|
import net.minecraftforge.fluids.IFluidContainerItem;
|
||||||
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
|
|||||||
@@ -5,7 +5,13 @@ import net.minecraft.client.renderer.entity.RenderLiving;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.common.entity.mob.*;
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityAirElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityEarthElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityFireElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityHolyElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityShadeElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityWaterElemental;
|
||||||
|
|
||||||
public class RenderElemental extends RenderLiving {
|
public class RenderElemental extends RenderLiving {
|
||||||
|
|
||||||
|
|||||||
+8
-1
@@ -9,7 +9,14 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
import org.lwjgl.opengl.GL12;
|
import org.lwjgl.opengl.GL12;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.common.entity.projectile.*;
|
import WayofTime.alchemicalWizardry.common.entity.projectile.ExplosionProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.FireProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.HolyProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.IceProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.LightningBoltProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.MudProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.WaterProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.WindGustProjectile;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
|
|||||||
+59
-61
@@ -1,7 +1,11 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.rituals;
|
package WayofTime.alchemicalWizardry.common.rituals;
|
||||||
|
|
||||||
|
import java.util.ArrayDeque;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.BitSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Queue;
|
||||||
|
import java.util.function.BiConsumer;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.effect.EntityLightningBolt;
|
import net.minecraft.entity.effect.EntityLightningBolt;
|
||||||
@@ -24,6 +28,7 @@ import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
|||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
||||||
|
|
||||||
@@ -75,61 +80,38 @@ public class RitualEffectBiomeChanger extends RitualEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolList[range][range] = true;
|
boolList[range][range] = true;
|
||||||
boolean isReady = false;
|
|
||||||
|
|
||||||
while (!isReady) {
|
Queue<Integer> BFSqueue = new ArrayDeque<>();
|
||||||
isReady = true;
|
BFSqueue.add(x);
|
||||||
|
BFSqueue.add(z);
|
||||||
|
|
||||||
for (int i = 0; i < 2 * range + 1; i++) {
|
BiConsumer<Integer, Integer> tryEnqueue = (nextX, nextZ) -> {
|
||||||
for (int j = 0; j < 2 * range + 1; j++) {
|
if (Math.abs(nextX - x) > range || Math.abs(nextZ - z) > range) return;
|
||||||
if (boolList[i][j]) {
|
if (boolList[nextX - (x - range)][nextZ - (z - range)]) return;
|
||||||
if (i - 1 >= 0 && !boolList[i - 1][j]) {
|
|
||||||
Block block = world.getBlock(x - range + i - 1, y + 1, z - range + j);
|
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
Block block = world.getBlock(nextX, y + 1, nextZ);
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
if (block == null || block.equals(ModBlocks.bloodStoneBrick)
|
||||||
boolList[i - 1][j] = true;
|
|| block.equals(ModBlocks.largeBloodStoneBrick))
|
||||||
isReady = false;
|
return;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (j - 1 >= 0 && !boolList[i][j - 1]) {
|
boolList[nextX - (x - range)][nextZ - (z - range)] = true;
|
||||||
Block block = world.getBlock(x - range + i, y + 1, z - range + j - 1);
|
BFSqueue.add(nextX);
|
||||||
|
BFSqueue.add(nextZ);
|
||||||
|
};
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
while (!BFSqueue.isEmpty()) {
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
Integer curX = BFSqueue.remove();
|
||||||
boolList[i][j - 1] = true;
|
Integer curZ = BFSqueue.remove();
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i + 1 <= 2 * range && !boolList[i + 1][j]) {
|
tryEnqueue.accept(curX + 1, curZ);
|
||||||
Block block = world.getBlock(x - range + i + 1, y + 1, z - range + j);
|
tryEnqueue.accept(curX, curZ + 1);
|
||||||
|
tryEnqueue.accept(curX - 1, curZ);
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
tryEnqueue.accept(curX, curZ - 1);
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
|
||||||
boolList[i + 1][j] = true;
|
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (j + 1 <= 2 * range && !boolList[i][j + 1]) {
|
|
||||||
Block block = world.getBlock(x - range + i, y + 1, z - range + j + 1);
|
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
|
||||||
boolList[i][j + 1] = true;
|
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float temperature = 0.5f;
|
float temperature = 0.5f;
|
||||||
float humidity = 0.5f;
|
float humidity = 0.5f;
|
||||||
float acceptableRange = 0.1f;
|
float acceptableRange = 0.0999f;
|
||||||
int biomeSkip = 0;
|
int biomeSkip = 0;
|
||||||
|
|
||||||
for (int i = -1; i <= 1; i++) {
|
for (int i = -1; i <= 1; i++) {
|
||||||
@@ -240,26 +222,42 @@ public class RitualEffectBiomeChanger extends RitualEffect {
|
|||||||
biomeID = 1;
|
biomeID = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 2 * range + 1; i++) {
|
List<Chunk> chunkList = new ArrayList<>();
|
||||||
for (int j = 0; j < 2 * range + 1; j++) {
|
|
||||||
if (boolList[i][j]) {
|
|
||||||
Chunk chunk = world.getChunkFromBlockCoords(x - range + i, z - range + j);
|
|
||||||
byte[] byteArray = chunk.getBiomeArray();
|
|
||||||
int moduX = (x - range + i) % 16;
|
|
||||||
int moduZ = (z - range + j) % 16;
|
|
||||||
|
|
||||||
if (moduX < 0) {
|
for (int chunkX = (x - range) >> 4; chunkX <= (x + range) >> 4; ++chunkX) {
|
||||||
moduX = moduX + 16;
|
for (int chunkZ = (z - range) >> 4; chunkZ <= (z + range) >> 4; ++chunkZ) {
|
||||||
|
chunkList.add(world.getChunkFromChunkCoords(chunkX, chunkZ));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Chunk chunk : chunkList) {
|
||||||
|
byte[] byteArray = chunk.getBiomeArray();
|
||||||
|
BitSet mask = new BitSet();
|
||||||
|
boolean changed = false;
|
||||||
|
|
||||||
|
for (int cZ = 0; cZ < 16; ++cZ) {
|
||||||
|
int offsetZ = (chunk.zPosition << 4 | cZ) - (z - range);
|
||||||
|
if (0 <= offsetZ && offsetZ < 2 * range + 1) {
|
||||||
|
for (int cX = 0; cX < 16; ++cX) {
|
||||||
|
int offsetX = (chunk.xPosition << 4 | cX) - (x - range);
|
||||||
|
if (0 <= offsetX && offsetX < 2 * range + 1) {
|
||||||
|
if (boolList[offsetX][offsetZ]) {
|
||||||
|
mask.set(cZ << 4 | cX, true);
|
||||||
|
byteArray[cZ << 4 | cX] = (byte) biomeID;
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moduZ < 0) {
|
|
||||||
moduZ = moduZ + 16;
|
|
||||||
}
|
|
||||||
|
|
||||||
byteArray[moduZ * 16 + moduX] = (byte) biomeID;
|
|
||||||
chunk.setBiomeArray(byteArray);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
|
chunk.setBiomeArray(byteArray);
|
||||||
|
NewPacketHandler.INSTANCE.sendToDimension(
|
||||||
|
NewPacketHandler
|
||||||
|
.getGaiaBiomeChangePacket(chunk.xPosition, chunk.zPosition, (byte) biomeID, mask),
|
||||||
|
world.provider.dimensionId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh());
|
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh());
|
||||||
|
|||||||
+5
-14
@@ -11,6 +11,7 @@ import net.minecraft.util.AxisAlignedBB;
|
|||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||||
@@ -56,20 +57,10 @@ public class RitualEffectSummonMeteor extends RitualEffect {
|
|||||||
EntityMeteor meteor = new EntityMeteor(world, x + 0.5f, 257, z + 0.5f, meteorID);
|
EntityMeteor meteor = new EntityMeteor(world, x + 0.5f, 257, z + 0.5f, meteorID);
|
||||||
meteor.motionY = -1.0f;
|
meteor.motionY = -1.0f;
|
||||||
|
|
||||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.terraeReagent, 1000, true)) {
|
for (Reagent r : ReagentRegistry.reagentList.values()) {
|
||||||
meteor.hasTerrae = true;
|
if (this.canDrainReagent(ritualStone, r, 1000, true)) {
|
||||||
}
|
meteor.reagentList.add(r);
|
||||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.orbisTerraeReagent, 1000, true)) {
|
}
|
||||||
meteor.hasOrbisTerrae = true;
|
|
||||||
}
|
|
||||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.crystallosReagent, 1000, true)) {
|
|
||||||
meteor.hasCrystallos = true;
|
|
||||||
}
|
|
||||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.incendiumReagent, 1000, true)) {
|
|
||||||
meteor.hasIncendium = true;
|
|
||||||
}
|
|
||||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, 1000, true)) {
|
|
||||||
meteor.hasTennebrae = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
entityItem.setDead();
|
entityItem.setDead();
|
||||||
|
|||||||
+8
-14
@@ -21,10 +21,9 @@ public class RitualEffectWellOfSuffering extends RitualEffect {
|
|||||||
|
|
||||||
public static final int timeDelay = 25;
|
public static final int timeDelay = 25;
|
||||||
public static final int amount = AlchemicalWizardry.lpPerSacrificeWellOfSuffering;
|
public static final int amount = AlchemicalWizardry.lpPerSacrificeWellOfSuffering;
|
||||||
|
public static final int tennebraeDrain = 5;
|
||||||
private static final int tennebraeDrain = 5;
|
public static final int potentiaDrain = 10;
|
||||||
private static final int potentiaDrain = 10;
|
public static final int offensaDrain = 3;
|
||||||
private static final int offensaDrain = 3;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void performEffect(IMasterRitualStone ritualStone) {
|
public void performEffect(IMasterRitualStone ritualStone) {
|
||||||
@@ -36,7 +35,7 @@ public class RitualEffectWellOfSuffering extends RitualEffect {
|
|||||||
int y = ritualStone.getYCoord();
|
int y = ritualStone.getYCoord();
|
||||||
int z = ritualStone.getZCoord();
|
int z = ritualStone.getZCoord();
|
||||||
|
|
||||||
if (world.getWorldTime() % this.timeDelay != 0) {
|
if (world.getWorldTime() % timeDelay != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,13 +61,8 @@ public class RitualEffectWellOfSuffering extends RitualEffect {
|
|||||||
|
|
||||||
int d0 = 10;
|
int d0 = 10;
|
||||||
int vertRange = hasPotentia ? 20 : 10;
|
int vertRange = hasPotentia ? 20 : 10;
|
||||||
AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(
|
AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(x, y, z, (x + 1), (y + 1), (z + 1))
|
||||||
(double) x,
|
.expand(d0, vertRange, d0);
|
||||||
(double) y,
|
|
||||||
(double) z,
|
|
||||||
(double) (x + 1),
|
|
||||||
(double) (y + 1),
|
|
||||||
(double) (z + 1)).expand(d0, vertRange, d0);
|
|
||||||
List<EntityLivingBase> list = world.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);
|
List<EntityLivingBase> list = world.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);
|
||||||
|
|
||||||
int entityCount = 0;
|
int entityCount = 0;
|
||||||
@@ -93,7 +87,7 @@ public class RitualEffectWellOfSuffering extends RitualEffect {
|
|||||||
&& this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, tennebraeDrain, true);
|
&& this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, tennebraeDrain, true);
|
||||||
|
|
||||||
entityCount++;
|
entityCount++;
|
||||||
tileAltar.sacrificialDaggerCall(this.amount * (hasTennebrae ? 2 : 1) * (hasOffensa ? 2 : 1), true);
|
tileAltar.sacrificialDaggerCall(amount * (hasTennebrae ? 2 : 1) * (hasOffensa ? 2 : 1), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,7 +106,7 @@ public class RitualEffectWellOfSuffering extends RitualEffect {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RitualComponent> getRitualComponentList() {
|
public List<RitualComponent> getRitualComponentList() {
|
||||||
ArrayList<RitualComponent> wellOfSufferingRitual = new ArrayList();
|
ArrayList<RitualComponent> wellOfSufferingRitual = new ArrayList<>();
|
||||||
wellOfSufferingRitual.add(new RitualComponent(1, 0, 1, RitualComponent.FIRE));
|
wellOfSufferingRitual.add(new RitualComponent(1, 0, 1, RitualComponent.FIRE));
|
||||||
wellOfSufferingRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.FIRE));
|
wellOfSufferingRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.FIRE));
|
||||||
wellOfSufferingRitual.add(new RitualComponent(1, 0, -1, RitualComponent.FIRE));
|
wellOfSufferingRitual.add(new RitualComponent(1, 0, -1, RitualComponent.FIRE));
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
|
import com.google.gson.JsonSyntaxException;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
|
|
||||||
@@ -21,6 +22,8 @@ public class Meteor {
|
|||||||
public String focusModId;
|
public String focusModId;
|
||||||
public String focusName;
|
public String focusName;
|
||||||
public int focusMeta;
|
public int focusMeta;
|
||||||
|
private String[] filler;
|
||||||
|
private int fillerChance;
|
||||||
|
|
||||||
public static void loadConfig() {
|
public static void loadConfig() {
|
||||||
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||||
@@ -29,15 +32,20 @@ public class Meteor {
|
|||||||
if (files != null) {
|
if (files != null) {
|
||||||
try {
|
try {
|
||||||
for (File f : files) {
|
for (File f : files) {
|
||||||
|
if (f.isDirectory()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
BufferedReader br = new BufferedReader(new FileReader(f));
|
BufferedReader br = new BufferedReader(new FileReader(f));
|
||||||
Meteor m = gson.fromJson(br, Meteor.class);
|
Meteor m = gson.fromJson(br, Meteor.class);
|
||||||
MeteorRegistry.registerMeteorParadigm(
|
MeteorRegistry.registerMeteorParadigm(
|
||||||
findItemStack(m.focusModId, m.focusName, m.focusMeta),
|
findItemStack(m.focusModId, m.focusName, m.focusMeta),
|
||||||
m.ores,
|
m.ores,
|
||||||
m.radius,
|
m.radius,
|
||||||
m.cost);
|
m.cost,
|
||||||
|
m.filler,
|
||||||
|
m.fillerChance);
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException | JsonSyntaxException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+173
-119
@@ -1,92 +1,141 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||||
|
|
||||||
|
import static WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorReagentRegistry.getFillerList;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
import cpw.mods.fml.common.Optional;
|
import cpw.mods.fml.common.Optional;
|
||||||
import gregtech.common.blocks.GT_TileEntity_Ores;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
|
import gregtech.common.blocks.TileEntityOres;
|
||||||
|
|
||||||
public class MeteorParadigm {
|
public class MeteorParadigm {
|
||||||
|
|
||||||
public List<MeteorParadigmComponent> componentList = new ArrayList<>();
|
public List<MeteorParadigmComponent> componentList = new ArrayList<>();
|
||||||
|
public List<MeteorParadigmComponent> fillerList = new ArrayList<>();
|
||||||
public ItemStack focusStack;
|
public ItemStack focusStack;
|
||||||
public int radius;
|
public int radius;
|
||||||
public int cost;
|
public int cost;
|
||||||
|
public int fillerChance; // Out of 100
|
||||||
|
|
||||||
public static Random rand = new Random();
|
public static Random rand = new Random();
|
||||||
|
|
||||||
public MeteorParadigm(ItemStack focusStack, int radius, int cost) {
|
public MeteorParadigm(ItemStack focusStack, int radius, int cost, int fillerChance) {
|
||||||
this.focusStack = focusStack;
|
this.focusStack = focusStack;
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
this.cost = cost;
|
this.cost = cost;
|
||||||
|
this.fillerChance = fillerChance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void parseStringArray(String[] oreArray) {
|
// modId:itemName:meta:weight(:reagent1, reagent2, ... optional)
|
||||||
for (int i = 0; i + 1 < oreArray.length; i += 2) {
|
private static final Pattern itemNamePattern = Pattern.compile("(.*):(.*):(\\d+):(\\d+)(:.*)?");
|
||||||
String oreName = oreArray[i];
|
// OREDICT:oreDictName:weight(:reagent1, reagent2, ... optional)
|
||||||
int oreChance = Integer.parseInt(oreArray[i + 1]);
|
private static final Pattern oredictPattern = Pattern.compile("OREDICT:(.*):(\\d+)(:.*)?");
|
||||||
MeteorParadigmComponent mpc = new MeteorParadigmComponent(oreName, oreChance);
|
|
||||||
componentList.add(mpc);
|
public static List<MeteorParadigmComponent> parseStringArray(String[] blockArray) {
|
||||||
}
|
List<MeteorParadigmComponent> addList = new ArrayList<>();
|
||||||
}
|
for (int i = 0; i < blockArray.length; ++i) {
|
||||||
|
String blockName = blockArray[i];
|
||||||
|
boolean success = false;
|
||||||
|
|
||||||
|
Matcher matcher = itemNamePattern.matcher(blockName);
|
||||||
|
if (matcher.matches()) {
|
||||||
|
String modID = matcher.group(1);
|
||||||
|
String itemName = matcher.group(2);
|
||||||
|
int meta = Integer.parseInt(matcher.group(3));
|
||||||
|
int weight = Integer.parseInt(matcher.group(4));
|
||||||
|
String reagent = matcher.group(5);
|
||||||
|
|
||||||
|
ArrayList<Reagent> reagentList = getReagents(reagent, blockName);
|
||||||
|
|
||||||
|
ItemStack stack = GameRegistry.findItemStack(modID, itemName, 1);
|
||||||
|
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
||||||
|
stack.setItemDamage(meta);
|
||||||
|
addList.add(new MeteorParadigmComponent(stack, weight, reagentList));
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if ((matcher = oredictPattern.matcher(blockName)).matches()) {
|
||||||
|
String oreDict = matcher.group(1);
|
||||||
|
int weight = Integer.parseInt(matcher.group(2));
|
||||||
|
String reagent = matcher.group(3);
|
||||||
|
|
||||||
|
ArrayList<Reagent> reagentList = getReagents(reagent, blockName);
|
||||||
|
|
||||||
|
List<ItemStack> list = OreDictionary.getOres(oreDict);
|
||||||
|
for (ItemStack stack : list) {
|
||||||
|
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
||||||
|
addList.add(new MeteorParadigmComponent(stack, weight, reagentList));
|
||||||
|
success = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public int getTotalMeteorWeight() {
|
|
||||||
int totalMeteorWeight = 0;
|
|
||||||
for (MeteorParadigmComponent mpc : componentList) {
|
|
||||||
if (mpc == null || !mpc.isValidBlockParadigm()) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
totalMeteorWeight += mpc.getChance();
|
if (!success) {
|
||||||
|
AlchemicalWizardry.logger.warn("Unable to add Meteor Paradigm \"{}\"", blockName);
|
||||||
|
AlchemicalWizardry.logger.warn(
|
||||||
|
"Valid formats are \"modId:itemName:meta:weight(:reagent1, reagent2, ... optional)\" and \"OREDICT:oreDictName:weight(:reagent1, reagent2, ... optional)\".");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return totalMeteorWeight;
|
return addList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createMeteorImpact(World world, int x, int y, int z, boolean[] flags) {
|
private static ArrayList<Reagent> getReagents(String reagent, String blockName) {
|
||||||
boolean hasTerrae = false;
|
ArrayList<Reagent> reagentList = new ArrayList<>();
|
||||||
boolean hasOrbisTerrae = false;
|
if (reagent != null) {
|
||||||
boolean hasCrystallos = false;
|
String[] reagents = reagent.substring(1).split(", ?");
|
||||||
boolean hasIncendium = false;
|
for (String str : reagents) {
|
||||||
boolean hasTennebrae = false;
|
Reagent r = ReagentRegistry.getReagentForKey(str);
|
||||||
|
if (r == null) {
|
||||||
|
AlchemicalWizardry.logger.warn("Unable to add reagent \"{}\" for {}.", str, blockName);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
reagentList.add(r);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return reagentList;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags != null && flags.length >= 5) {
|
public int getTotalListWeight(List<MeteorParadigmComponent> blockList) {
|
||||||
hasTerrae = flags[0];
|
int totalWeight = 0;
|
||||||
hasOrbisTerrae = flags[1];
|
for (MeteorParadigmComponent mpc : blockList) {
|
||||||
hasCrystallos = flags[2];
|
totalWeight += mpc.getWeight();
|
||||||
hasIncendium = flags[3];
|
}
|
||||||
hasTennebrae = flags[4];
|
return totalWeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void createMeteorImpact(World world, int x, int y, int z, List<Reagent> reagents) {
|
||||||
|
int radius = getNewRadius(this.radius, reagents);
|
||||||
|
int fillerChance = getNewFillerChance(this.fillerChance, reagents);
|
||||||
|
|
||||||
|
if (MeteorReagentRegistry.doExplosions(reagents)) {
|
||||||
|
world.createExplosion(null, x, y, z, radius * 4, MeteorReagentRegistry.doMeteorsDestroyBlocks(reagents));
|
||||||
}
|
}
|
||||||
|
|
||||||
int newRadius = radius;
|
List<MeteorParadigmComponent> componentList = removeBlocksMissingRequiredReagents(this.componentList, reagents);
|
||||||
|
List<MeteorParadigmComponent> fillerList = getNewFillerList(this.fillerList, reagents);
|
||||||
|
|
||||||
if (hasOrbisTerrae) {
|
int totalComponentWeight = getTotalListWeight(componentList);
|
||||||
newRadius += 2;
|
int totalFillerWeight = getTotalListWeight(fillerList);
|
||||||
} else if (hasTerrae) {
|
|
||||||
newRadius += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
world.createExplosion(null, x, y, z, newRadius * 4, AlchemicalWizardry.doMeteorsDestroyBlocks);
|
for (int i = -radius; i <= radius; i++) {
|
||||||
|
for (int j = -radius; j <= radius; j++) {
|
||||||
float iceChance = hasCrystallos ? 1 : 0;
|
for (int k = -radius; k <= radius; k++) {
|
||||||
float soulChance = hasIncendium ? 1 : 0;
|
if (i * i + j * j + k * k >= (radius + 0.50f) * (radius + 0.50f)) {
|
||||||
float obsidChance = hasTennebrae ? 1 : 0;
|
|
||||||
|
|
||||||
float totalChance = iceChance + soulChance + obsidChance;
|
|
||||||
|
|
||||||
int totalMeteorWeight = getTotalMeteorWeight();
|
|
||||||
|
|
||||||
for (int i = -newRadius; i <= newRadius; i++) {
|
|
||||||
for (int j = -newRadius; j <= newRadius; j++) {
|
|
||||||
for (int k = -newRadius; k <= newRadius; k++) {
|
|
||||||
if (i * i + j * j + k * k >= (newRadius + 0.50f) * (newRadius + 0.50f)) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,79 +143,84 @@ public class MeteorParadigm {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int randNum = world.rand.nextInt(totalMeteorWeight);
|
if (fillerChance <= 0 || world.rand.nextInt(100) >= fillerChance) {
|
||||||
|
setMeteorBlock(x + i, y + j, z + k, world, componentList, totalComponentWeight);
|
||||||
boolean hasPlacedBlock = false;
|
} else {
|
||||||
|
setMeteorBlock(x + i, y + j, z + k, world, fillerList, totalFillerWeight);
|
||||||
for (MeteorParadigmComponent mpc : componentList) {
|
|
||||||
if (mpc == null || !mpc.isValidBlockParadigm()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
randNum -= mpc.getChance();
|
|
||||||
|
|
||||||
if (randNum < 0) {
|
|
||||||
ItemStack blockStack = mpc.getValidBlockParadigm();
|
|
||||||
if (blockStack != null && blockStack.getItem() instanceof ItemBlock) {
|
|
||||||
((ItemBlock) blockStack.getItem()).placeBlockAt(
|
|
||||||
blockStack,
|
|
||||||
null,
|
|
||||||
world,
|
|
||||||
x + i,
|
|
||||||
y + j,
|
|
||||||
z + k,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
blockStack.getItemDamage());
|
|
||||||
if (AlchemicalWizardry.isGregTechLoaded)
|
|
||||||
setGTOresNaturalIfNeeded(world, x + i, y + j, z + k);
|
|
||||||
world.markBlockForUpdate(x + i, y + j, z + k);
|
|
||||||
hasPlacedBlock = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// world.setBlock(x + i, y + j, z + k,
|
|
||||||
// Block.getBlockById(Item.getIdFromItem(blockStack.getItem())), blockStack.getItemDamage(),
|
|
||||||
// 3);
|
|
||||||
// hasPlacedBlock = true;
|
|
||||||
// break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!hasPlacedBlock) {
|
private int getNewRadius(int radius, List<Reagent> reagents) {
|
||||||
float randChance = rand.nextFloat() * totalChance;
|
radius += MeteorReagentRegistry.getLargestRadiusIncrease(reagents);
|
||||||
|
radius += MeteorReagentRegistry.getLargestRadiusDecrease(reagents);
|
||||||
|
return Math.max(radius, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (randChance < iceChance) {
|
private int getNewFillerChance(int fillerChance, List<Reagent> reagents) {
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.ice, 0, 3);
|
// Don't add filler to meteors with none
|
||||||
} else {
|
if (fillerChance <= 0) {
|
||||||
randChance -= iceChance;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (randChance < soulChance) {
|
int increase = MeteorReagentRegistry.getLargestFillerChanceIncrease(reagents);
|
||||||
switch (rand.nextInt(3)) {
|
int decrease = MeteorReagentRegistry.getLargestFillerChanceDecrease(reagents);
|
||||||
case 0:
|
// Avoid division by zero
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.soul_sand, 0, 3);
|
if (decrease == -100) {
|
||||||
break;
|
return 0;
|
||||||
case 1:
|
}
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.glowstone, 0, 3);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.netherrack, 0, 3);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
randChance -= soulChance;
|
|
||||||
|
|
||||||
if (randChance < obsidChance) {
|
fillerChance += MeteorReagentRegistry.getLargestRawFillerChanceIncrease(reagents);
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.obsidian, 0, 3);
|
fillerChance += MeteorReagentRegistry.getLargestRawFillerChanceDecrease(reagents);
|
||||||
} else {
|
if (increase > 0) {
|
||||||
randChance -= obsidChance;
|
fillerChance = (fillerChance + increase) * 100 / (100 + increase);
|
||||||
|
} else if (decrease < 0) {
|
||||||
|
fillerChance = (fillerChance + decrease) * 100 / (100 + decrease);
|
||||||
|
}
|
||||||
|
return Math.max(0, Math.min(fillerChance, 100));
|
||||||
|
}
|
||||||
|
|
||||||
world.setBlock(x + i, y + j, z + k, Blocks.stone, 0, 3);
|
private List<MeteorParadigmComponent> getNewFillerList(List<MeteorParadigmComponent> fillerList,
|
||||||
}
|
List<Reagent> reagents) {
|
||||||
}
|
List<MeteorParadigmComponent> reagentFillers = getFillerList(reagents);
|
||||||
}
|
reagentFillers = removeBlocksMissingRequiredReagents(reagentFillers, reagents);
|
||||||
}
|
if (!reagentFillers.isEmpty()) {
|
||||||
|
return reagentFillers;
|
||||||
|
}
|
||||||
|
List<MeteorParadigmComponent> newFillers = removeBlocksMissingRequiredReagents(fillerList, reagents);
|
||||||
|
if (newFillers.isEmpty()) { // Use the default if every filler requires a reagent
|
||||||
|
newFillers.add(MeteorRegistry.getDefaultMeteorParadigmComponent());
|
||||||
|
}
|
||||||
|
return newFillers;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<MeteorParadigmComponent> removeBlocksMissingRequiredReagents(List<MeteorParadigmComponent> blockList,
|
||||||
|
List<Reagent> reagents) {
|
||||||
|
ArrayList<MeteorParadigmComponent> newList = new ArrayList<>();
|
||||||
|
for (MeteorParadigmComponent mpc : blockList) {
|
||||||
|
if (mpc.checkForReagent(reagents)) {
|
||||||
|
newList.add(mpc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return newList;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setMeteorBlock(int x, int y, int z, World world, List<MeteorParadigmComponent> blockList,
|
||||||
|
int totalListWeight) {
|
||||||
|
int randNum = world.rand.nextInt(totalListWeight);
|
||||||
|
for (MeteorParadigmComponent mpc : blockList) {
|
||||||
|
randNum -= mpc.getWeight();
|
||||||
|
|
||||||
|
if (randNum < 0) {
|
||||||
|
ItemStack blockStack = mpc.getBlock();
|
||||||
|
if (blockStack != null && blockStack.getItem() instanceof ItemBlock) {
|
||||||
|
((ItemBlock) blockStack.getItem())
|
||||||
|
.placeBlockAt(blockStack, null, world, x, y, z, 0, 0, 0, 0, blockStack.getItemDamage());
|
||||||
|
if (AlchemicalWizardry.isGregTechLoaded) setGTOresNaturalIfNeeded(world, x, y, z);
|
||||||
|
world.markBlockForUpdate(x, y, z);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -175,8 +229,8 @@ public class MeteorParadigm {
|
|||||||
@Optional.Method(modid = "gregtech")
|
@Optional.Method(modid = "gregtech")
|
||||||
private static void setGTOresNaturalIfNeeded(World world, int x, int y, int z) {
|
private static void setGTOresNaturalIfNeeded(World world, int x, int y, int z) {
|
||||||
final TileEntity tileEntity = world.getTileEntity(x, y, z);
|
final TileEntity tileEntity = world.getTileEntity(x, y, z);
|
||||||
if (tileEntity instanceof GT_TileEntity_Ores) {
|
if (tileEntity instanceof TileEntityOres) {
|
||||||
((GT_TileEntity_Ores) tileEntity).mNatural = true;
|
((TileEntityOres) tileEntity).mNatural = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+34
-29
@@ -1,46 +1,51 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.item.ItemBlock;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
|
||||||
public class MeteorParadigmComponent {
|
public class MeteorParadigmComponent {
|
||||||
|
|
||||||
public String oreDictName;
|
protected int weight;
|
||||||
public int chance;
|
protected ItemStack itemStack;
|
||||||
|
protected ArrayList<Reagent> reagent = new ArrayList<>();
|
||||||
|
|
||||||
public MeteorParadigmComponent(String dictName, int chance) {
|
public MeteorParadigmComponent(ItemStack stack, int weight) {
|
||||||
this.oreDictName = dictName;
|
this(stack, weight, new ArrayList<>());
|
||||||
this.chance = chance;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidBlockParadigm() {
|
public MeteorParadigmComponent(ItemStack stack, int weight, ArrayList<Reagent> reagent) {
|
||||||
if (this.getValidBlockParadigm() != null) {
|
this.itemStack = stack;
|
||||||
|
this.weight = weight;
|
||||||
|
this.reagent = reagent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getWeight() {
|
||||||
|
return this.weight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemStack getBlock() {
|
||||||
|
return itemStack;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<Reagent> getRequiredReagents() {
|
||||||
|
return reagent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean checkForReagent(List<Reagent> reagentList) {
|
||||||
|
if (reagent.isEmpty()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
for (Reagent r1 : reagentList) {
|
||||||
return false;
|
for (Reagent r2 : reagent) {
|
||||||
}
|
if (r1.equals(r2)) {
|
||||||
|
return true;
|
||||||
public String getOreDictName() {
|
}
|
||||||
return this.oreDictName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getChance() {
|
|
||||||
return this.chance;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ItemStack getValidBlockParadigm() {
|
|
||||||
List<ItemStack> list = OreDictionary.getOres(getOreDictName());
|
|
||||||
|
|
||||||
for (ItemStack stack : list) {
|
|
||||||
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
|
||||||
return stack;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class MeteorReagent {
|
||||||
|
|
||||||
|
public boolean disableExplosions = false;
|
||||||
|
public boolean invertExplosionBlockDamage = false;
|
||||||
|
public int radiusChange = 0;
|
||||||
|
public int fillerChanceChange = 0;
|
||||||
|
public int rawFillerChanceChange = 0;
|
||||||
|
public String[] filler = {};
|
||||||
|
public List<MeteorParadigmComponent> parsedFiller = new ArrayList<>();
|
||||||
|
|
||||||
|
}
|
||||||
+221
@@ -0,0 +1,221 @@
|
|||||||
|
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||||
|
|
||||||
|
import static WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry.reagentList;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
import java.nio.file.StandardOpenOption;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.GsonBuilder;
|
||||||
|
import com.google.gson.JsonSyntaxException;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
|
||||||
|
public class MeteorReagentRegistry {
|
||||||
|
|
||||||
|
public static Map<Reagent, MeteorReagent> reagents = new HashMap<>();
|
||||||
|
|
||||||
|
public static void loadConfig() {
|
||||||
|
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||||
|
File file = new File("config/BloodMagic/meteors/reagents/");
|
||||||
|
if (!file.isDirectory()) {
|
||||||
|
MeteorReagentRegistry.generateDefaultConfig();
|
||||||
|
}
|
||||||
|
File[] files = file.listFiles();
|
||||||
|
if (files != null) {
|
||||||
|
try {
|
||||||
|
for (String reagent : reagentList.keySet()) {
|
||||||
|
File f = new File("config/BloodMagic/meteors/reagents/" + reagent + ".json");
|
||||||
|
if (!f.isFile()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
BufferedReader br = new BufferedReader(new FileReader(f));
|
||||||
|
MeteorReagent r = gson.fromJson(br, MeteorReagent.class);
|
||||||
|
if (r == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (r.filler.length > 0) {
|
||||||
|
r.parsedFiller = MeteorParadigm.parseStringArray(r.filler);
|
||||||
|
}
|
||||||
|
reagents.put(ReagentRegistry.getReagentForKey(reagent), r);
|
||||||
|
}
|
||||||
|
} catch (FileNotFoundException | JsonSyntaxException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest radius increase (positive config).
|
||||||
|
public static int getLargestRadiusIncrease(List<Reagent> reagentList) {
|
||||||
|
int increase = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).radiusChange;
|
||||||
|
if (change > increase) {
|
||||||
|
increase = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return increase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest radius decrease (negative config).
|
||||||
|
public static int getLargestRadiusDecrease(List<Reagent> reagentList) {
|
||||||
|
int decrease = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).radiusChange;
|
||||||
|
if (change < decrease) {
|
||||||
|
decrease = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return decrease;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest filler chance increase (positive config).
|
||||||
|
public static int getLargestFillerChanceIncrease(List<Reagent> reagentList) {
|
||||||
|
int increase = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).fillerChanceChange;
|
||||||
|
if (change > increase) {
|
||||||
|
increase = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return increase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest filler chance decrease (negative config).
|
||||||
|
public static int getLargestFillerChanceDecrease(List<Reagent> reagentList) {
|
||||||
|
int decrease = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).fillerChanceChange;
|
||||||
|
if (change < decrease) {
|
||||||
|
decrease = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return decrease;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest raw filler chance increase (positive config).
|
||||||
|
public static int getLargestRawFillerChanceIncrease(List<Reagent> reagentList) {
|
||||||
|
int increase = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).rawFillerChanceChange;
|
||||||
|
if (change > increase) {
|
||||||
|
increase = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return increase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the one largest raw filler chance decrease (negative config).
|
||||||
|
public static int getLargestRawFillerChanceDecrease(List<Reagent> reagentList) {
|
||||||
|
int decrease = 0;
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int change = reagents.get(r).rawFillerChanceChange;
|
||||||
|
if (change < decrease) {
|
||||||
|
decrease = change;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return decrease;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns a list of the blocks that the given reagents will use to replace filler.
|
||||||
|
public static List<MeteorParadigmComponent> getFillerList(List<Reagent> reagentList) {
|
||||||
|
List<MeteorParadigmComponent> fillerList = new ArrayList<>();
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
List<MeteorParadigmComponent> filler = reagents.get(r).parsedFiller;
|
||||||
|
if (filler != null && !filler.isEmpty()) {
|
||||||
|
fillerList.addAll(filler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return fillerList;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns false if any of the given reagents disable explosions, otherwise true
|
||||||
|
public static boolean doExplosions(List<Reagent> reagentList) {
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (reagents.get(r).disableExplosions) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the value of the config AlchemicalWizardry.doMeteorsDestroyBlocks if no reagent inverts explosion block
|
||||||
|
* damage Returns the inverse of the value of AlchemicalWizardry.doMeteorsDestroyBlocks if any reagent inverts
|
||||||
|
* explosion block damage
|
||||||
|
*/
|
||||||
|
public static boolean doMeteorsDestroyBlocks(List<Reagent> reagentList) {
|
||||||
|
for (Reagent r : reagentList) {
|
||||||
|
if (!reagents.containsKey(r)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (reagents.get(r).invertExplosionBlockDamage) {
|
||||||
|
return !AlchemicalWizardry.doMeteorsDestroyBlocks;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return AlchemicalWizardry.doMeteorsDestroyBlocks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void generateDefaultConfig() {
|
||||||
|
Map<String, String[]> lineMap = new HashMap<>();
|
||||||
|
lineMap.put("terrae", new String[] { "{", " \"radiusChange\": 1,", " \"fillerChanceChange\": 10", "}", });
|
||||||
|
lineMap.put(
|
||||||
|
"orbisTerrae",
|
||||||
|
new String[] { "{", " \"radiusChange\": 2,", " \"fillerChanceChange\": 20", "}", });
|
||||||
|
lineMap.put("tenebrae", new String[] { "{", " \"filler\": [\"minecraft:obsidian:0:180\"]", "}", });
|
||||||
|
lineMap.put(
|
||||||
|
"incendium",
|
||||||
|
new String[] { "{", " \"filler\": [", " \"minecraft:netherrack:0:60\",",
|
||||||
|
" \"minecraft:glowstone:0:60\",", " \"minecraft:soul_sand:0:60\"", " ]", "}", });
|
||||||
|
lineMap.put("crystallos", new String[] { "{", " \"filler\": [\"minecraft:ice:0:180\"]", "}", });
|
||||||
|
try {
|
||||||
|
Files.createDirectories(Paths.get("config/BloodMagic/meteors/reagents/"));
|
||||||
|
String[] reagents = { "terrae", "orbisTerrae", "tenebrae", "incendium", "crystallos" };
|
||||||
|
for (String reagent : reagents) {
|
||||||
|
Path path = Paths.get("config/BloodMagic/meteors/reagents/" + reagent + ".json");
|
||||||
|
Files.createFile(path);
|
||||||
|
Files.write(path, Arrays.asList(lineMap.get(reagent)), StandardOpenOption.WRITE);
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+23
-6
@@ -3,10 +3,13 @@ package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
|
||||||
public class MeteorRegistry {
|
public class MeteorRegistry {
|
||||||
|
|
||||||
public static List<MeteorParadigm> paradigmList = new ArrayList<>();
|
public static List<MeteorParadigm> paradigmList = new ArrayList<>();
|
||||||
@@ -15,17 +18,31 @@ public class MeteorRegistry {
|
|||||||
paradigmList.add(paradigm);
|
paradigmList.add(paradigm);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerMeteorParadigm(ItemStack stack, String[] oreList, int radius, int cost) {
|
public static void registerMeteorParadigm(ItemStack stack, String[] componentList, int radius, int cost) {
|
||||||
if (stack != null && oreList != null) {
|
registerMeteorParadigm(stack, componentList, radius, cost, null, 0);
|
||||||
MeteorParadigm meteor = new MeteorParadigm(stack, radius, cost);
|
}
|
||||||
meteor.parseStringArray(oreList);
|
|
||||||
|
public static void registerMeteorParadigm(ItemStack stack, String[] componentList, int radius, int cost,
|
||||||
|
String[] fillerList, int fillerChance) {
|
||||||
|
if (stack != null && componentList != null) {
|
||||||
|
MeteorParadigm meteor = new MeteorParadigm(stack, radius, cost, fillerChance);
|
||||||
|
meteor.componentList = MeteorParadigm.parseStringArray(componentList);
|
||||||
|
if (fillerList != null && fillerList.length > 0) {
|
||||||
|
meteor.fillerList = MeteorParadigm.parseStringArray(fillerList);
|
||||||
|
} else {
|
||||||
|
meteor.fillerList.add(getDefaultMeteorParadigmComponent());
|
||||||
|
}
|
||||||
paradigmList.add(meteor);
|
paradigmList.add(meteor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void createMeteorImpact(World world, int x, int y, int z, int paradigmID, boolean[] flags) {
|
public static MeteorParadigmComponent getDefaultMeteorParadigmComponent() {
|
||||||
|
return new MeteorParadigmComponent(new ItemStack(Blocks.stone), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void createMeteorImpact(World world, int x, int y, int z, int paradigmID, List<Reagent> reagents) {
|
||||||
if (paradigmID < paradigmList.size()) {
|
if (paradigmID < paradigmList.size()) {
|
||||||
paradigmList.get(paradigmID).createMeteorImpact(world, x, y, z, flags);
|
paradigmList.get(paradigmID).createMeteorImpact(world, x, y, z, reagents);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ import mcp.mobius.waila.api.IWailaDataAccessor;
|
|||||||
public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, IBloodAltar, IBloodMagicWailaProvider {
|
public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, IBloodAltar, IBloodMagicWailaProvider {
|
||||||
|
|
||||||
public static final int sizeInv = 1;
|
public static final int sizeInv = 1;
|
||||||
|
public static final int BASE_RECIPE_DELAY = 100;
|
||||||
|
public static final double CRAFTING_DELAY_RUNE_EFFICIENCY = 0.8D;
|
||||||
|
|
||||||
private int resultID;
|
private int resultID;
|
||||||
private int resultDamage;
|
private int resultDamage;
|
||||||
@@ -70,6 +72,8 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
protected FluidStack fluidOutput;
|
protected FluidStack fluidOutput;
|
||||||
protected FluidStack fluidInput;
|
protected FluidStack fluidInput;
|
||||||
private int progress;
|
private int progress;
|
||||||
|
private long nextForcedRecipeCheck;
|
||||||
|
private int maxDelayBeforeNextCraft;
|
||||||
|
|
||||||
private int lockdownDuration;
|
private int lockdownDuration;
|
||||||
private int demonBloodDuration;
|
private int demonBloodDuration;
|
||||||
@@ -97,6 +101,8 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
progress = 0;
|
progress = 0;
|
||||||
this.lockdownDuration = 0;
|
this.lockdownDuration = 0;
|
||||||
this.demonBloodDuration = 0;
|
this.demonBloodDuration = 0;
|
||||||
|
this.nextForcedRecipeCheck = -1;
|
||||||
|
this.maxDelayBeforeNextCraft = BASE_RECIPE_DELAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -447,7 +453,9 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!worldObj.isRemote && worldObj.getWorldTime() % 20 == 0) {
|
final long totalWorldTime = worldObj.getTotalWorldTime();
|
||||||
|
|
||||||
|
if (totalWorldTime % 20 == 0) {
|
||||||
{
|
{
|
||||||
Block block = worldObj.getBlock(xCoord + 1, yCoord, zCoord);
|
Block block = worldObj.getBlock(xCoord + 1, yCoord, zCoord);
|
||||||
block.onNeighborBlockChange(worldObj, xCoord + 1, yCoord, zCoord, block);
|
block.onNeighborBlockChange(worldObj, xCoord + 1, yCoord, zCoord, block);
|
||||||
@@ -496,7 +504,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (worldObj.getWorldTime() % Math.max(20 - this.accelerationUpgrades, 1) == 0) {
|
if (totalWorldTime % Math.max(20 - this.accelerationUpgrades, 1) == 0) {
|
||||||
int syphonMax = (int) (20 * this.dislocationMultiplier);
|
int syphonMax = (int) (20 * this.dislocationMultiplier);
|
||||||
int fluidInputted = 0;
|
int fluidInputted = 0;
|
||||||
int fluidOutputted = 0;
|
int fluidOutputted = 0;
|
||||||
@@ -510,7 +518,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
this.fluid.amount -= fluidOutputted;
|
this.fluid.amount -= fluidOutputted;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (worldObj.getWorldTime() % 100 == 0 && (this.isActive || this.cooldownAfterCrafting <= 0)) {
|
if (shouldTryToStartCycle(totalWorldTime) && (this.isActive || this.cooldownAfterCrafting <= 0)) {
|
||||||
startCycle();
|
startCycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -525,8 +533,6 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int worldTime = (int) (worldObj.getWorldTime() % 24000);
|
|
||||||
|
|
||||||
if (worldObj.isRemote) {
|
if (worldObj.isRemote) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -545,7 +551,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
fluid.amount = fluid.amount - liquidDrained;
|
fluid.amount = fluid.amount - liquidDrained;
|
||||||
progress += liquidDrained;
|
progress += liquidDrained;
|
||||||
|
|
||||||
if (worldTime % 4 == 0) {
|
if (totalWorldTime % 4 == 0) {
|
||||||
SpellHelper.sendIndexedParticleToAllAround(
|
SpellHelper.sendIndexedParticleToAllAround(
|
||||||
worldObj,
|
worldObj,
|
||||||
xCoord,
|
xCoord,
|
||||||
@@ -583,11 +589,14 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
zCoord + 0.5f);
|
zCoord + 0.5f);
|
||||||
}
|
}
|
||||||
this.isActive = false;
|
this.isActive = false;
|
||||||
|
if (this.nextForcedRecipeCheck < 0) {
|
||||||
|
this.nextForcedRecipeCheck = this.worldObj.getTotalWorldTime() + this.maxDelayBeforeNextCraft;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (progress > 0) {
|
} else if (progress > 0) {
|
||||||
progress -= (int) (efficiencyMultiplier * drainRate);
|
progress -= (int) (efficiencyMultiplier * drainRate);
|
||||||
|
|
||||||
if (worldTime % 2 == 0) {
|
if (totalWorldTime % 2 == 0) {
|
||||||
SpellHelper.sendIndexedParticleToAllAround(
|
SpellHelper.sendIndexedParticleToAllAround(
|
||||||
worldObj,
|
worldObj,
|
||||||
xCoord,
|
xCoord,
|
||||||
@@ -633,7 +642,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
|
|
||||||
fluid.amount = fluid.amount - drain;
|
fluid.amount = fluid.amount - drain;
|
||||||
|
|
||||||
if (worldTime % 4 == 0) {
|
if (totalWorldTime % 4 == 0) {
|
||||||
SpellHelper.sendIndexedParticleToAllAround(
|
SpellHelper.sendIndexedParticleToAllAround(
|
||||||
worldObj,
|
worldObj,
|
||||||
xCoord,
|
xCoord,
|
||||||
@@ -653,6 +662,23 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean shouldTryToStartCycle(final long totalWorldTime) {
|
||||||
|
// use total time instead of world time so that we can update even if doDaylightCycle is false
|
||||||
|
if (!this.isActive && this.nextForcedRecipeCheck >= 0) {
|
||||||
|
if (this.nextForcedRecipeCheck <= totalWorldTime) {
|
||||||
|
this.nextForcedRecipeCheck = -1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// if the regular recipe check occurs before the forced recipe check we can just un-schedule it.
|
||||||
|
if (totalWorldTime % BASE_RECIPE_DELAY == 0) {
|
||||||
|
this.nextForcedRecipeCheck = -1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public void setActive() {
|
public void setActive() {
|
||||||
isActive = false;
|
isActive = false;
|
||||||
}
|
}
|
||||||
@@ -771,6 +797,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
this.orbCapacityMultiplier = 1;
|
this.orbCapacityMultiplier = 1;
|
||||||
this.dislocationMultiplier = 1;
|
this.dislocationMultiplier = 1;
|
||||||
this.accelerationUpgrades = 0;
|
this.accelerationUpgrades = 0;
|
||||||
|
this.maxDelayBeforeNextCraft = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -788,6 +815,7 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
this.dislocationMultiplier = 1;
|
this.dislocationMultiplier = 1;
|
||||||
this.upgradeLevel = upgradeState;
|
this.upgradeLevel = upgradeState;
|
||||||
this.accelerationUpgrades = 0;
|
this.accelerationUpgrades = 0;
|
||||||
|
this.maxDelayBeforeNextCraft = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -804,6 +832,10 @@ public class TEAltar extends TEInventory implements IFluidTank, IFluidHandler, I
|
|||||||
this.capacity = (int) (FluidContainerRegistry.BUCKET_VOLUME * 10 * capacityMultiplier);
|
this.capacity = (int) (FluidContainerRegistry.BUCKET_VOLUME * 10 * capacityMultiplier);
|
||||||
this.bufferCapacity = (int) (FluidContainerRegistry.BUCKET_VOLUME * 1 * capacityMultiplier);
|
this.bufferCapacity = (int) (FluidContainerRegistry.BUCKET_VOLUME * 1 * capacityMultiplier);
|
||||||
this.accelerationUpgrades = upgrades.getAccelerationUpgrades();
|
this.accelerationUpgrades = upgrades.getAccelerationUpgrades();
|
||||||
|
this.maxDelayBeforeNextCraft = Math.max(
|
||||||
|
1,
|
||||||
|
(int) Math.floor(
|
||||||
|
BASE_RECIPE_DELAY * Math.pow(CRAFTING_DELAY_RUNE_EFFICIENCY, upgrades.getQuicknessUpgrades())));
|
||||||
|
|
||||||
if (this.fluid.amount > this.capacity) {
|
if (this.fluid.amount > this.capacity) {
|
||||||
this.fluid.amount = this.capacity;
|
this.fluid.amount = this.capacity;
|
||||||
|
|||||||
@@ -20,7 +20,12 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.IReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.TileSegmentedReagentHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.entity.projectile.EntityParticleBeam;
|
import WayofTime.alchemicalWizardry.common.entity.projectile.EntityParticleBeam;
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|||||||
@@ -41,6 +41,19 @@ public class FallingTower {
|
|||||||
MineTweakerAPI.apply(new Add(toStack(stack), radius, cost, components.split("\\s*,\\s*")));
|
MineTweakerAPI.apply(new Add(toStack(stack), radius, cost, components.split("\\s*,\\s*")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ZenMethod
|
||||||
|
public static void addFocus(IItemStack stack, int radius, int cost, String components, String filler,
|
||||||
|
int fillerChance) {
|
||||||
|
MineTweakerAPI.apply(
|
||||||
|
new Add(
|
||||||
|
toStack(stack),
|
||||||
|
radius,
|
||||||
|
cost,
|
||||||
|
components.split("\\s*,\\s*"),
|
||||||
|
filler.split("\\s*,\\s*"),
|
||||||
|
fillerChance));
|
||||||
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeFocus(IItemStack output) {
|
public static void removeFocus(IItemStack output) {
|
||||||
MineTweakerAPI.apply(new Remove(toStack(output)));
|
MineTweakerAPI.apply(new Remove(toStack(output)));
|
||||||
@@ -51,8 +64,15 @@ public class FallingTower {
|
|||||||
private MeteorParadigm paradigm;
|
private MeteorParadigm paradigm;
|
||||||
|
|
||||||
public Add(ItemStack stack, int radius, int cost, String[] components) {
|
public Add(ItemStack stack, int radius, int cost, String[] components) {
|
||||||
paradigm = new MeteorParadigm(stack, radius, cost);
|
new Add(stack, radius, cost, components, null, 0);
|
||||||
paradigm.parseStringArray(components);
|
}
|
||||||
|
|
||||||
|
public Add(ItemStack stack, int radius, int cost, String[] components, String[] filler, int fillerChance) {
|
||||||
|
paradigm = new MeteorParadigm(stack, radius, cost, fillerChance);
|
||||||
|
paradigm.componentList = MeteorParadigm.parseStringArray(components);
|
||||||
|
if (filler != null) {
|
||||||
|
paradigm.fillerList = MeteorParadigm.parseStringArray(filler);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
#Block Localization
|
#Block Localization
|
||||||
tile.bloodAltar.name=Blood Altar
|
tile.bloodAltar.name=Blood Altar
|
||||||
|
tile.bloodRune.name=Blood Rune
|
||||||
tile.bloodRune.blank.name=Blood Rune
|
tile.bloodRune.blank.name=Blood Rune
|
||||||
tile.bloodRune.fill.name=Rune of Augmented Capacity
|
tile.bloodRune.fill.name=Rune of Augmented Capacity
|
||||||
tile.bloodRune.empty.name=Rune of Dislocation
|
tile.bloodRune.empty.name=Rune of Dislocation
|
||||||
tile.bloodRune.orb.name=Rune of the Orb
|
tile.bloodRune.orb.name=Rune of the Orb
|
||||||
tile.bloodRune.betterCapacity.name=Rune of Superior Capacity
|
tile.bloodRune.betterCapacity.name=Rune of Superior Capacity
|
||||||
tile.bloodRune.acceleration.name=Rune of Acceleration
|
tile.bloodRune.acceleration.name=Rune of Acceleration
|
||||||
|
tile.bloodRune.quickness.name=Rune of Quickness
|
||||||
tile.speedRune.name=Speed Rune
|
tile.speedRune.name=Speed Rune
|
||||||
tile.efficiencyRune.name=Efficiency Rune
|
tile.efficiencyRune.name=Efficiency Rune
|
||||||
tile.runeOfSacrifice.name=Rune of Sacrifice
|
tile.runeOfSacrifice.name=Rune of Sacrifice
|
||||||
@@ -24,10 +26,12 @@ tile.bloodPedestal.name=Arcane Pedestal
|
|||||||
tile.bloodPlinth.name=Arcane Plinth
|
tile.bloodPlinth.name=Arcane Plinth
|
||||||
tile.bloodTeleposer.name=Teleposer
|
tile.bloodTeleposer.name=Teleposer
|
||||||
tile.blockConduit.name=Spell Conduit
|
tile.blockConduit.name=Spell Conduit
|
||||||
|
tile.blockSpellParadigm.name=Paradigm
|
||||||
tile.blockSpellParadigm.projectile.name=Particle Generator
|
tile.blockSpellParadigm.projectile.name=Particle Generator
|
||||||
tile.blockSpellParadigm.self.name=Self Augmentator
|
tile.blockSpellParadigm.self.name=Self Augmentator
|
||||||
tile.blockSpellParadigm.melee.name=Melee Aggregator
|
tile.blockSpellParadigm.melee.name=Melee Aggregator
|
||||||
tile.blockSpellParadigm.tool.name=Tool Forger
|
tile.blockSpellParadigm.tool.name=Tool Forger
|
||||||
|
tile.blockSpellEnhancement.name=Enhancement Spell
|
||||||
tile.blockSpellEnhancement.power1.name=Unstable Spell Empowerer
|
tile.blockSpellEnhancement.power1.name=Unstable Spell Empowerer
|
||||||
tile.blockSpellEnhancement.power2.name=Standard Spell Empowerer
|
tile.blockSpellEnhancement.power2.name=Standard Spell Empowerer
|
||||||
tile.blockSpellEnhancement.power3.name=Reinforced Spell Empowerer
|
tile.blockSpellEnhancement.power3.name=Reinforced Spell Empowerer
|
||||||
@@ -43,10 +47,12 @@ tile.blockSpellEnhancement.potency2.name=Standard Spell Augmentor
|
|||||||
tile.blockSpellEnhancement.potency3.name=Reinforced Spell Augmentor
|
tile.blockSpellEnhancement.potency3.name=Reinforced Spell Augmentor
|
||||||
tile.blockSpellEnhancement.potency4.name=Imbued Spell Augmentor
|
tile.blockSpellEnhancement.potency4.name=Imbued Spell Augmentor
|
||||||
tile.blockSpellEnhancement.potency5.name=Demonic Spell Augmentor
|
tile.blockSpellEnhancement.potency5.name=Demonic Spell Augmentor
|
||||||
|
tile.blockSpellModifier.name=Modifier Spell
|
||||||
tile.blockSpellModifier.default.name=Default Spell Modifier
|
tile.blockSpellModifier.default.name=Default Spell Modifier
|
||||||
tile.blockSpellModifier.offensive.name=Offensive Spell Modifier
|
tile.blockSpellModifier.offensive.name=Offensive Spell Modifier
|
||||||
tile.blockSpellModifier.defensive.name=Defensive Spell Modifier
|
tile.blockSpellModifier.defensive.name=Defensive Spell Modifier
|
||||||
tile.blockSpellModifier.environmental.name=Environmental Spell Modifier
|
tile.blockSpellModifier.environmental.name=Environmental Spell Modifier
|
||||||
|
tile.blockSpellEffect.name=Effect Spell
|
||||||
tile.blockSpellEffect.fire.name=Crucible of Fire
|
tile.blockSpellEffect.fire.name=Crucible of Fire
|
||||||
tile.blockSpellEffect.ice.name=Ice Maker
|
tile.blockSpellEffect.ice.name=Ice Maker
|
||||||
tile.blockSpellEffect.wind.name=Wind Generator
|
tile.blockSpellEffect.wind.name=Wind Generator
|
||||||
@@ -55,12 +61,15 @@ tile.alchemicCalcinator.name=Alchemic Calcinator
|
|||||||
tile.crystalBelljar.name=Crystal Belljar
|
tile.crystalBelljar.name=Crystal Belljar
|
||||||
tile.blockReagentConduit.name=Alchemy Relay
|
tile.blockReagentConduit.name=Alchemy Relay
|
||||||
tile.lifeEssenceFluidBlock.name=Life Essence
|
tile.lifeEssenceFluidBlock.name=Life Essence
|
||||||
|
tile.crystalBlock.name=Crystal Cluster
|
||||||
tile.crystalBlock.fullCrystal.name=Crystal Cluster
|
tile.crystalBlock.fullCrystal.name=Crystal Cluster
|
||||||
tile.crystalBlock.crystalBrick.name=Crystal Cluster Brick
|
tile.crystalBlock.crystalBrick.name=Crystal Cluster Brick
|
||||||
tile.demonPortal.name=Demon Portal
|
tile.demonPortal.name=Demon Portal
|
||||||
tile.demonChest.name=Demon's Chest
|
tile.demonChest.name=Demon's Chest
|
||||||
|
tile.enchantmentGlyph.name=Enchantment Glyph
|
||||||
tile.enchantmentGlyph.enchantability.name=Glyph of the Adept Enchanter
|
tile.enchantmentGlyph.enchantability.name=Glyph of the Adept Enchanter
|
||||||
tile.enchantmentGlyph.enchantmentLevel.name=Glyph of Arcane Potential
|
tile.enchantmentGlyph.enchantmentLevel.name=Glyph of Arcane Potential
|
||||||
|
tile.stabilityGlyph.name=Glyph of Rigid Stability
|
||||||
tile.stabilityGlyph.stability1.name=Glyph of Rigid Stability
|
tile.stabilityGlyph.stability1.name=Glyph of Rigid Stability
|
||||||
tile.schematicSaver.name=Schematic Saver
|
tile.schematicSaver.name=Schematic Saver
|
||||||
tile.blockMimic.name=Mimic Block
|
tile.blockMimic.name=Mimic Block
|
||||||
@@ -156,6 +165,7 @@ item.itemComplexSpellCrystal.name=Complex Spell Crystal
|
|||||||
item.itemSigilOfSupression.name=Sigil of Supression
|
item.itemSigilOfSupression.name=Sigil of Supression
|
||||||
item.itemSigilOfEnderSeverance.name=Sigil of Ender Severance
|
item.itemSigilOfEnderSeverance.name=Sigil of Ender Severance
|
||||||
item.bucketLife.name=Bucket of Life
|
item.bucketLife.name=Bucket of Life
|
||||||
|
item.baseItems.name=Base Item
|
||||||
item.bloodMagicBaseItem.QuartzRod.name=Quartz Rod
|
item.bloodMagicBaseItem.QuartzRod.name=Quartz Rod
|
||||||
item.bloodMagicBaseItem.EmptyCore.name=Empty Core
|
item.bloodMagicBaseItem.EmptyCore.name=Empty Core
|
||||||
item.bloodMagicBaseItem.MagicalesCable.name=Magicales Cable
|
item.bloodMagicBaseItem.MagicalesCable.name=Magicales Cable
|
||||||
@@ -188,6 +198,7 @@ item.bloodMagicBaseItem.LifeShard.name=Life Shard
|
|||||||
item.bloodMagicBaseItem.SoulShard.name=Soul Shard
|
item.bloodMagicBaseItem.SoulShard.name=Soul Shard
|
||||||
item.bloodMagicBaseItem.LifeBrace.name=Living Brace
|
item.bloodMagicBaseItem.LifeBrace.name=Living Brace
|
||||||
item.bloodMagicBaseItem.SoulRunicPlate.name=Soul Runic Plate
|
item.bloodMagicBaseItem.SoulRunicPlate.name=Soul Runic Plate
|
||||||
|
item.baseAlchemyItems.name=Base Alchemy Item
|
||||||
item.bloodMagicAlchemyItem.Offensa.name=Offensa
|
item.bloodMagicAlchemyItem.Offensa.name=Offensa
|
||||||
item.bloodMagicAlchemyItem.Praesidium.name=Praesidium
|
item.bloodMagicAlchemyItem.Praesidium.name=Praesidium
|
||||||
item.bloodMagicAlchemyItem.OrbisTerrae.name=Orbis Terrae
|
item.bloodMagicAlchemyItem.OrbisTerrae.name=Orbis Terrae
|
||||||
@@ -218,6 +229,7 @@ item.transcendentBloodOrb.name=Transcendent Blood Orb
|
|||||||
item.itemMailCatalogue.name=Mail Order Catalogue
|
item.itemMailCatalogue.name=Mail Order Catalogue
|
||||||
item.inputRoutingFocus.name=Input Routing Focus
|
item.inputRoutingFocus.name=Input Routing Focus
|
||||||
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
|
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
|
||||||
|
item.outputRoutingFocus.name=Output Routing Focus
|
||||||
item.outputRoutingFocus.default.name=Default Output Routing Focus
|
item.outputRoutingFocus.default.name=Default Output Routing Focus
|
||||||
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
|
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
|
||||||
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
|
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
|
||||||
@@ -241,6 +253,7 @@ item.boundPlateWater.name=Water Omega Plate
|
|||||||
item.boundLeggingsWater.name=Water Omega Leggings
|
item.boundLeggingsWater.name=Water Omega Leggings
|
||||||
item.boundBootsWater.name=Water Omega Boots
|
item.boundBootsWater.name=Water Omega Boots
|
||||||
|
|
||||||
|
item.bloodMagicIncenseItem.name=Incense Item
|
||||||
item.bloodMagicIncenseItem.Woodash.name=Wood Ash
|
item.bloodMagicIncenseItem.Woodash.name=Wood Ash
|
||||||
item.bloodMagicIncenseItem.Byrrus.name=Byrrus
|
item.bloodMagicIncenseItem.Byrrus.name=Byrrus
|
||||||
item.bloodMagicIncenseItem.Livens.name=Livens
|
item.bloodMagicIncenseItem.Livens.name=Livens
|
||||||
@@ -266,6 +279,8 @@ nei.recipe.meteor.cost=Cost: %s LP
|
|||||||
nei.recipe.meteor.radius=Radius: %s
|
nei.recipe.meteor.radius=Radius: %s
|
||||||
nei.recipe.meteor.chance=Chance: %s%%
|
nei.recipe.meteor.chance=Chance: %s%%
|
||||||
nei.recipe.meteor.amount=Estimated amount: %s
|
nei.recipe.meteor.amount=Estimated amount: %s
|
||||||
|
nei.recipe.meteor.filler=§7Filler block
|
||||||
|
nei.recipe.meteor.reagent=§nRequired reagent§r: %s
|
||||||
|
|
||||||
#Rituals
|
#Rituals
|
||||||
ritual.AW001Water.name=Ritual of the Full Spring
|
ritual.AW001Water.name=Ritual of the Full Spring
|
||||||
@@ -624,4 +639,4 @@ tooltip.waila.notActive=Ritual Not Active
|
|||||||
option.bm.bloodAltar=Blood Altar
|
option.bm.bloodAltar=Blood Altar
|
||||||
option.bm.ritualController=Ritual Stones
|
option.bm.ritualController=Ritual Stones
|
||||||
option.bm.teleposer=Teleposer
|
option.bm.teleposer=Teleposer
|
||||||
option.bm.chemistrySet=Alchemical Chemistry Set
|
option.bm.chemistrySet=Alchemical Chemistry Set
|
||||||
@@ -6,6 +6,7 @@ tile.bloodRune.empty.name=Rune de Dislocation
|
|||||||
tile.bloodRune.test.name=Rune de l’Orbe
|
tile.bloodRune.test.name=Rune de l’Orbe
|
||||||
tile.bloodRune.betterCapacity.name=Rune de la Capacité Supérieure
|
tile.bloodRune.betterCapacity.name=Rune de la Capacité Supérieure
|
||||||
tile.bloodRune.acceleration.name=Rune d'Accélération
|
tile.bloodRune.acceleration.name=Rune d'Accélération
|
||||||
|
tile.bloodRune.quickness.name=Rune de Rapidité
|
||||||
tile.speedRune.name=Rune de Vitesse
|
tile.speedRune.name=Rune de Vitesse
|
||||||
tile.efficiencyRune.name=Rune d’Efficacité
|
tile.efficiencyRune.name=Rune d’Efficacité
|
||||||
tile.runeOfSacrifice.name=Rune du Sacrifice
|
tile.runeOfSacrifice.name=Rune du Sacrifice
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 720 B |
@@ -245,6 +245,8 @@ The unspeakable power of the energy bazooka.1= First thing I created with this n
|
|||||||
The unspeakable power of the energy bazooka.2=explodes into twenty more smaller explosive projectiles to devastate other living things around it. I have tried tweaking it so that terrain isn't harmed, but there may be minor damage depending on what is hit. There is a "Slight" problem of recoil, but nothing we can't live with.
|
The unspeakable power of the energy bazooka.2=explodes into twenty more smaller explosive projectiles to devastate other living things around it. I have tried tweaking it so that terrain isn't harmed, but there may be minor damage depending on what is hit. There is a "Slight" problem of recoil, but nothing we can't live with.
|
||||||
Acceleration runes.1= Moving my attention on to runes for our wonderful new altar, I had revelation as I noticed a speed rune next to a dislocation rune: Increasing how much LP is moved from the buffer is fine, but how about increasing how often it transfers LP? Using a few materials like buckets and an ethereal slate, I have transformed a normal speed rune into something far greater. Instead of effecting crafting speed, one rune will
|
Acceleration runes.1= Moving my attention on to runes for our wonderful new altar, I had revelation as I noticed a speed rune next to a dislocation rune: Increasing how much LP is moved from the buffer is fine, but how about increasing how often it transfers LP? Using a few materials like buckets and an ethereal slate, I have transformed a normal speed rune into something far greater. Instead of effecting crafting speed, one rune will
|
||||||
Acceleration runes.2=lower the delay the altar has on moving the contents of the buffer by a twentieth of a second per rune. I have noticed a strange limitation, however: Any runes beyond nineteen seem to have so little effect it isn't noticeable anymore, so you can only have the altar transfer nineteen times a second. I will need to run some experimentation on the best ratios of acceleration to dislocation runes...
|
Acceleration runes.2=lower the delay the altar has on moving the contents of the buffer by a twentieth of a second per rune. I have noticed a strange limitation, however: Any runes beyond nineteen seem to have so little effect it isn't noticeable anymore, so you can only have the altar transfer nineteen times a second. I will need to run some experimentation on the best ratios of acceleration to dislocation runes...
|
||||||
|
Quickness runes.1= Ever since I automated the transmutation process, I've noticed that the altar always waits a certain amount of time before starting a new transmutation. This odd delay doesn't occur when I manually insert the items into the altar, but that seems counterproductive to my goal of automation. I tried reducing the delay by causing time anomalies around the altar. While this affected the transmutation speed, it did not affect the delay.
|
||||||
|
Quickness runes.2=After much trial and error, I found that I could reduce this trivial delay by using a new type of rune made from speed and acceleration runes. Every rune I add to the altar seems to reduce the delay by about 20%. The effect is multiplicative and not additive.
|
||||||
The Harvest goddess.1= Bella has dragged me with her to town so she can be sure I'm out of the lab for a while(I have noticed I'm a little pale, but I just assumed that was from all the sacrifices I've been making lately). As we ate two sandwiches at a bench on the edge of the village, I watched the farmers in the field slaving over the harvest while trying to outrun the storm just visible in the distance. Talking with Bella about ways to help
|
The Harvest goddess.1= Bella has dragged me with her to town so she can be sure I'm out of the lab for a while(I have noticed I'm a little pale, but I just assumed that was from all the sacrifices I've been making lately). As we ate two sandwiches at a bench on the edge of the village, I watched the farmers in the field slaving over the harvest while trying to outrun the storm just visible in the distance. Talking with Bella about ways to help
|
||||||
The Harvest goddess.2=them, I created the basic idea for the sigil now known as the "Harvest Goddess". It is to the "Reap of the Harvest Moon" what the "Sigil of the Green grove" is to the ritual of the green grove, performing a similar effect to the harvest moon around the user by summoning a little demonic imp(You can thank Bella for this part). As soon as we had a version ready, Bella ran out into the field with a green grove, haste, and magnetism sigil to
|
The Harvest goddess.2=them, I created the basic idea for the sigil now known as the "Harvest Goddess". It is to the "Reap of the Harvest Moon" what the "Sigil of the Green grove" is to the ritual of the green grove, performing a similar effect to the harvest moon around the user by summoning a little demonic imp(You can thank Bella for this part). As soon as we had a version ready, Bella ran out into the field with a green grove, haste, and magnetism sigil to
|
||||||
The Harvest goddess.3=quickly run through the field collecting the harvest behind her. Needless to say, the few farmers in the field were awe struck by this sight and a few of the newer ones thought she was a goddess sent to answer their prayers(And I liked the sound of it, so we now have a name for the sigil).
|
The Harvest goddess.3=quickly run through the field collecting the harvest behind her. Needless to say, the few farmers in the field were awe struck by this sight and a few of the newer ones thought she was a goddess sent to answer their prayers(And I liked the sound of it, so we now have a name for the sigil).
|
||||||
|
|||||||
@@ -354,6 +354,10 @@ First thing I created with this new orb was an improvement to the energy blaster
|
|||||||
|
|
||||||
//TITLE Acceleration runes
|
//TITLE Acceleration runes
|
||||||
Moving my attention on to runes for our wonderful new altar, I had revelation as I noticed a speed rune next to a dislocation rune: Increasing how much LP is moved from the buffer is fine, but how about increasing how often it transfers LP? Using a few materials like buckets and an ethereal slate, I have transformed a normal speed rune into something far greater. Instead of effecting crafting speed, one rune will lower the delay the altar has on moving the contents of the buffer by a twentieth of a second per rune. I have noticed a strange limitation, however: Any runes beyond nineteen seem to have so little effect it isn't noticeable anymore, so you can only have the altar transfer nineteen times a second. I will need to run some experimentation on the best ratios of acceleration to dislocation runes...
|
Moving my attention on to runes for our wonderful new altar, I had revelation as I noticed a speed rune next to a dislocation rune: Increasing how much LP is moved from the buffer is fine, but how about increasing how often it transfers LP? Using a few materials like buckets and an ethereal slate, I have transformed a normal speed rune into something far greater. Instead of effecting crafting speed, one rune will lower the delay the altar has on moving the contents of the buffer by a twentieth of a second per rune. I have noticed a strange limitation, however: Any runes beyond nineteen seem to have so little effect it isn't noticeable anymore, so you can only have the altar transfer nineteen times a second. I will need to run some experimentation on the best ratios of acceleration to dislocation runes...
|
||||||
|
|
||||||
|
//TITLE Quickness runes
|
||||||
|
Ever since I automated the transmutation process, I've noticed that the altar always waits a certain amount of time before starting a new transmutation. This odd delay doesn't occur when I manually insert the items into the altar, but that seems counterproductive to my goal of automation. I tried reducing the delay by causing time anomalies around the altar. While this affected the transmutation speed, it did not affect the delay. After much trial and error, I found that I could reduce this trivial delay by using a new type of rune made from speed and acceleration runes. Every rune I add to the altar seems to reduce the delay by about 20%. The effect is multiplicative and not additive.
|
||||||
|
|
||||||
//TITLE The Harvest goddess
|
//TITLE The Harvest goddess
|
||||||
Bella has dragged me with her to town so she can be sure I'm out of the lab for a while(I have noticed I'm a little pale, but I just assumed that was from all the sacrifices I've been making lately). As we ate two sandwiches at a bench on the edge of the village, I watched the farmers in the field slaving over the harvest while trying to outrun the storm just visible in the distance. Talking with Bella about ways to help them, I created the basic idea for the sigil now known as the “Harvest Goddess”. It is to the “Reap of the Harvest Moon” what the “Sigil of the Green grove” is to the ritual of the green grove, performing a similar effect to the harvest moon around the user by summoning a little demonic imp(You can thank Bella for this part). As soon as we had a version ready, Bella ran out into the field with a green grove, haste, and magnetism sigil to quickly run through the field collecting the harvest behind her. Needless to say, the few farmers in the field were awe struck by this sight and a few of the newer ones thought she was a goddess sent to answer their prayers(And I liked the sound of it, so we now have a name for the sigil).
|
Bella has dragged me with her to town so she can be sure I'm out of the lab for a while(I have noticed I'm a little pale, but I just assumed that was from all the sacrifices I've been making lately). As we ate two sandwiches at a bench on the edge of the village, I watched the farmers in the field slaving over the harvest while trying to outrun the storm just visible in the distance. Talking with Bella about ways to help them, I created the basic idea for the sigil now known as the “Harvest Goddess”. It is to the “Reap of the Harvest Moon” what the “Sigil of the Green grove” is to the ritual of the green grove, performing a similar effect to the harvest moon around the user by summoning a little demonic imp(You can thank Bella for this part). As soon as we had a version ready, Bella ran out into the field with a green grove, haste, and magnetism sigil to quickly run through the field collecting the harvest behind her. Needless to say, the few farmers in the field were awe struck by this sight and a few of the newer ones thought she was a goddess sent to answer their prayers(And I liked the sound of it, so we now have a name for the sigil).
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user