mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10a36f6413 | ||
|
|
951367919f | ||
|
|
7fee341e50 | ||
|
|
6776676ef2 | ||
|
|
431bc8fb41 | ||
|
|
9b7b10e5c3 | ||
|
|
fc58f5346c |
No files matched your search
@@ -27,4 +27,5 @@ whitelist.json
|
||||
*.iws
|
||||
src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
*.sh
|
||||
layout.json
|
||||
+10
-10
@@ -23,22 +23,22 @@
|
||||
*/
|
||||
|
||||
dependencies {
|
||||
api("com.github.GTNewHorizons:waila:1.19.25:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev")
|
||||
api("com.github.GTNewHorizons:waila:1.19.34:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.8.152-GTNH:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:GTNHLib:0.9.57:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.480:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GTNHLib:0.11.52:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.54.189:dev") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Botania:1.13.16-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.19:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.7.10:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:Botania:1.13.36-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.38:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.7.15:dev") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Chisel:2.17.26-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:Chisel:2.17.33-GTNH:api") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.7:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.8: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:endlessids-665730:7585931") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.34:dev")
|
||||
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.45:dev")
|
||||
}
|
||||
@@ -186,6 +186,11 @@ modrinthRelations =
|
||||
# Leave this empty if you don't want to publish on CurseForge.
|
||||
curseForgeProjectId =
|
||||
|
||||
# Comma-separated supported CurseForge environments: client, server (case-insensitive).
|
||||
# Use client or server for mods that only support one environment. Defaults to client,server.
|
||||
# These tags describe where the mod can run, not whether installation is required on both sides.
|
||||
curseForgeEnvironments = client,server
|
||||
|
||||
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
|
||||
# Syntax: type1:name1;type2:name2;...
|
||||
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#This file is generated by updateDaemonJvm
|
||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
|
||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
|
||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
|
||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
|
||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c2dd35c9d0aaf0ba6ad0791320f99dfc/redirect
|
||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/e5810bd7fd1f8a586644409d395a7e55/redirect
|
||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
|
||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
|
||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7b3c4877c0749019e6805bb61e421497/redirect
|
||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d76df094a9cbbabd3b08251f9e61444a/redirect
|
||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9064f22734b42ac03e85df04b632e167/redirect
|
||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/4d0277c49991306ac78048580fe34bcf/redirect
|
||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a9fa3b809e484a1e1ac4308a5dda661a/redirect
|
||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/aa99913fa6d767d899ffc96082da01ca/redirect
|
||||
toolchainVersion=25
|
||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
|
||||
networkTimeout=10000
|
||||
retries=0
|
||||
retryBackOffMs=500
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
# gradlew start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
@@ -29,7 +29,7 @@
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
# ksh gradlew
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
@@ -57,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
||||
Vendored
+12
-23
@@ -19,12 +19,12 @@
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem gradlew startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||
setlocal EnableExtensions
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@@ -51,7 +51,7 @@ echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
@@ -65,29 +65,18 @@ echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
@rem Execute gradlew
|
||||
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||
@rem which allows us to clear the local environment before executing the java command
|
||||
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
:exitWithErrorLevel
|
||||
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.32'
|
||||
}
|
||||
|
||||
|
||||
@@ -479,7 +479,7 @@ public class AlchemicalWizardry {
|
||||
public static int ritualWeakCostThunderstorm;
|
||||
public static int ritualWeakCostZombie;
|
||||
|
||||
public static boolean isGregTechLoaded;
|
||||
public static boolean isGregTech5UnofficialNewHorizonsLoaded;
|
||||
public static boolean isThaumcraftLoaded;
|
||||
public static boolean isForestryLoaded;
|
||||
public static boolean isBotaniaLoaded;
|
||||
@@ -773,11 +773,8 @@ public class AlchemicalWizardry {
|
||||
ItemStack reedStack = new ItemStack(Items.reeds);
|
||||
ItemStack blankSlateStack = new ItemStack(ModItems.blankSlate, 1, craftingConstant);
|
||||
ItemStack reinforcedSlateStack = new ItemStack(ModItems.reinforcedSlate, 1, craftingConstant);
|
||||
ItemStack weakBloodOrbStack = new ItemStack(ModItems.weakBloodOrb, 1, craftingConstant);
|
||||
ItemStack imbuedSlateStack = new ItemStack(ModItems.imbuedSlate, 1, craftingConstant);
|
||||
ItemStack demonSlateStack = new ItemStack(ModItems.demonicSlate, 1, craftingConstant);
|
||||
ItemStack apprenticeBloodOrbStack = new ItemStack(ModItems.apprenticeBloodOrb, 1, craftingConstant);
|
||||
ItemStack magicianBloodOrbStack = new ItemStack(ModItems.magicianBloodOrb, 1, craftingConstant);
|
||||
ItemStack waterSigilStackCrafted = new ItemStack(ModItems.waterSigil);
|
||||
ItemStack lavaSigilStackCrafted = new ItemStack(ModItems.lavaSigil);
|
||||
ItemStack voidSigilStackCrafted = new ItemStack(ModItems.voidSigil);
|
||||
@@ -824,7 +821,6 @@ public class AlchemicalWizardry {
|
||||
lavaCrystalStackCrafted.setItemDamage(lavaCrystalStackCrafted.getMaxDamage());
|
||||
miningSigilStackCrafted.setItemDamage(miningSigilStackCrafted.getMaxDamage());
|
||||
sigilOfElementalAffinityStackCrafted.setItemDamage(sigilOfElementalAffinityStackCrafted.getMaxDamage());
|
||||
ItemStack archmageBloodOrbStack = new ItemStack(ModItems.archmageBloodOrb);
|
||||
ItemStack sanctusStack = new ItemStack(ModItems.sanctus);
|
||||
ItemStack aetherStack = new ItemStack(ModItems.aether);
|
||||
ItemStack terraeStack = new ItemStack(ModItems.terrae);
|
||||
@@ -857,7 +853,7 @@ public class AlchemicalWizardry {
|
||||
'l',
|
||||
lavaBucketStack,
|
||||
'b',
|
||||
weakBloodOrbStack,
|
||||
1,
|
||||
'd',
|
||||
diamondStack,
|
||||
'o',
|
||||
@@ -873,7 +869,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
blankSlateStack,
|
||||
'o',
|
||||
weakBloodOrbStack));
|
||||
1));
|
||||
GameRegistry.addRecipe(
|
||||
lavaSigilStackCrafted,
|
||||
"lml",
|
||||
@@ -898,7 +894,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
reinforcedSlateStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
's',
|
||||
stringStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -923,7 +919,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
stoneStack,
|
||||
'o',
|
||||
weakBloodOrbStack,
|
||||
1,
|
||||
'r',
|
||||
blankSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -948,7 +944,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
stoneStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'b',
|
||||
emptyBucketStack,
|
||||
'r',
|
||||
@@ -962,7 +958,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
stoneStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'b',
|
||||
waterBucketStack,
|
||||
'r',
|
||||
@@ -976,9 +972,9 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
stoneStack,
|
||||
'o',
|
||||
new ItemStack(ModItems.masterBloodOrb),
|
||||
4,
|
||||
'w',
|
||||
weakBloodOrbStack,
|
||||
1,
|
||||
'r',
|
||||
new ItemStack(ModItems.demonicSlate)));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -990,7 +986,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
obsidianStack,
|
||||
'o',
|
||||
new ItemStack(ModItems.masterBloodOrb),
|
||||
4,
|
||||
'r',
|
||||
new ItemStack(ModItems.demonicSlate),
|
||||
'b',
|
||||
@@ -1010,7 +1006,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
reinforcedSlateStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack));
|
||||
2));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedBloodOrbRecipe(
|
||||
miningSigilStackCrafted,
|
||||
@@ -1018,7 +1014,7 @@ public class AlchemicalWizardry {
|
||||
"hra",
|
||||
"sos",
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
's',
|
||||
stoneStack,
|
||||
'p',
|
||||
@@ -1040,7 +1036,7 @@ public class AlchemicalWizardry {
|
||||
'g',
|
||||
goldIngotStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
'r',
|
||||
reinforcedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1054,7 +1050,7 @@ public class AlchemicalWizardry {
|
||||
'g',
|
||||
glowstoneDustStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
'r',
|
||||
reinforcedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1068,7 +1064,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
blankSlateStack,
|
||||
'o',
|
||||
weakBloodOrbStack));
|
||||
1));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedBloodOrbRecipe(
|
||||
seerSigilStackCrafted,
|
||||
@@ -1080,7 +1076,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
divinationSigilStackCrafted,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
'b',
|
||||
new ItemStack(ModItems.bucketLife)));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1092,7 +1088,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
obsidianStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
'r',
|
||||
reinforcedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1104,7 +1100,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
obsidianStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'r',
|
||||
ritualStoneStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1118,7 +1114,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
obsidianStack,
|
||||
'o',
|
||||
weakBloodOrbStack));
|
||||
1));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedBloodOrbRecipe(
|
||||
sigilOfElementalAffinityStackCrafted,
|
||||
@@ -1134,7 +1130,7 @@ public class AlchemicalWizardry {
|
||||
'l',
|
||||
lavaSigilStack,
|
||||
'r',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
's',
|
||||
imbuedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1150,7 +1146,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
imbuedSlateStack,
|
||||
'o',
|
||||
magicianBloodOrbStack));
|
||||
3));
|
||||
GameRegistry.addRecipe(
|
||||
emptySocketStack,
|
||||
"bgb",
|
||||
@@ -1173,7 +1169,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
stoneStack,
|
||||
'o',
|
||||
magicianBloodOrbStack));
|
||||
3));
|
||||
GameRegistry.addShapelessRecipe(largeBloodStoneBrickStackCrafted, weakBloodShardStack, stoneStack);
|
||||
GameRegistry.addRecipe(bloodStoneBrickStackCrafted, "bb", "bb", 'b', largeBloodStoneBrickStack);
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1187,7 +1183,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
reedStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack,
|
||||
2,
|
||||
'e',
|
||||
reinforcedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1203,7 +1199,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
bloodRuneStack,
|
||||
'o',
|
||||
apprenticeBloodOrbStack));
|
||||
2));
|
||||
GameRegistry.addShapelessRecipe(
|
||||
new ItemStack(Items.skull, 1, 2),
|
||||
new ItemStack(Items.skull, 1, 1),
|
||||
@@ -1232,7 +1228,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
obsidianStack,
|
||||
'o',
|
||||
weakBloodOrbStack));
|
||||
1));
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ModBlocks.blockPedestal),
|
||||
"ooo",
|
||||
@@ -1272,7 +1268,7 @@ public class AlchemicalWizardry {
|
||||
'r',
|
||||
obsidianStack,
|
||||
'o',
|
||||
new ItemStack(ModItems.masterBloodOrb)));
|
||||
4));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedBloodOrbRecipe(
|
||||
new ItemStack(ModItems.sigilOfWind),
|
||||
@@ -1286,13 +1282,13 @@ public class AlchemicalWizardry {
|
||||
'a',
|
||||
new ItemStack(ModItems.airSigil),
|
||||
'o',
|
||||
new ItemStack(ModItems.masterBloodOrb),
|
||||
4,
|
||||
'r',
|
||||
ModItems.demonicSlate));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessBloodOrbRecipe(
|
||||
new ItemStack(ModItems.weakBloodShard, 5, 0),
|
||||
new ItemStack(ModItems.masterBloodOrb),
|
||||
4,
|
||||
new ItemStack(ModItems.weakBloodShard),
|
||||
imbuedSlateStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -1327,7 +1323,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
imbuedSlateStack,
|
||||
'o',
|
||||
magicianBloodOrbStack));
|
||||
3));
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ModItems.armourInhibitor),
|
||||
" gg",
|
||||
@@ -1378,7 +1374,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
new ItemStack(ModItems.imbuedSlate),
|
||||
'o',
|
||||
magicianBloodOrbStack));
|
||||
3));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedBloodOrbRecipe(
|
||||
new ItemStack(ModItems.energyBazooka),
|
||||
@@ -1386,7 +1382,7 @@ public class AlchemicalWizardry {
|
||||
"cb ",
|
||||
"d w",
|
||||
'O',
|
||||
archmageBloodOrbStack,
|
||||
5,
|
||||
'c',
|
||||
crepitousStack,
|
||||
'b',
|
||||
@@ -1402,7 +1398,7 @@ public class AlchemicalWizardry {
|
||||
"sss",
|
||||
"bob",
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'b',
|
||||
glowstoneBlockStack,
|
||||
't',
|
||||
@@ -1472,9 +1468,6 @@ public class AlchemicalWizardry {
|
||||
customPotionAmphibian = (new PotionAmphibian(customPotionAmphibianID, false, 0)).setIconIndex(0, 0)
|
||||
.setPotionName("bm.buff.amphibian");
|
||||
|
||||
ItemStack masterBloodOrbStack = new ItemStack(ModItems.masterBloodOrb);
|
||||
ItemStack transcendentBloodOrbStack = new ItemStack(ModItems.transcendentBloodOrb);
|
||||
|
||||
// ModBlocks.blockLifeEssence.setUnlocalizedName("lifeEssenceBlock");
|
||||
FluidContainerRegistry.registerFluidContainer(
|
||||
lifeEssenceFluid,
|
||||
@@ -2134,7 +2127,7 @@ public class AlchemicalWizardry {
|
||||
'm',
|
||||
magicalesStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'a',
|
||||
new ItemStack(Items.arrow)));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -2150,7 +2143,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
weakBloodShardStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'n',
|
||||
glowstoneDustStack));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -2166,7 +2159,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
weakBloodShardStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'n',
|
||||
new ItemStack(Items.fire_charge)));
|
||||
GameRegistry.addRecipe(
|
||||
@@ -2182,7 +2175,7 @@ public class AlchemicalWizardry {
|
||||
'b',
|
||||
weakBloodShardStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'n',
|
||||
new ItemStack(Blocks.obsidian)));
|
||||
|
||||
@@ -2222,7 +2215,7 @@ public class AlchemicalWizardry {
|
||||
'c',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'd',
|
||||
diamondStack,
|
||||
's',
|
||||
@@ -2238,7 +2231,7 @@ public class AlchemicalWizardry {
|
||||
'c',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'd',
|
||||
diamondStack,
|
||||
's',
|
||||
@@ -2254,7 +2247,7 @@ public class AlchemicalWizardry {
|
||||
'c',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'd',
|
||||
diamondStack,
|
||||
's',
|
||||
@@ -2270,7 +2263,7 @@ public class AlchemicalWizardry {
|
||||
'c',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
'd',
|
||||
diamondStack,
|
||||
's',
|
||||
@@ -2301,7 +2294,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2317,7 +2310,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2333,7 +2326,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2349,7 +2342,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
magicianBloodOrbStack,
|
||||
3,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2366,7 +2359,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2382,7 +2375,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2398,7 +2391,7 @@ public class AlchemicalWizardry {
|
||||
'e',
|
||||
emptyCoreStack,
|
||||
'o',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
's',
|
||||
weakBloodShardStack,
|
||||
'g',
|
||||
@@ -2413,7 +2406,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
etherealSlateStack,
|
||||
'o',
|
||||
archmageBloodOrbStack,
|
||||
5,
|
||||
'g',
|
||||
new ItemStack(Items.golden_hoe),
|
||||
'm',
|
||||
@@ -2427,7 +2420,7 @@ public class AlchemicalWizardry {
|
||||
's',
|
||||
etherealSlateStack,
|
||||
'o',
|
||||
archmageBloodOrbStack,
|
||||
5,
|
||||
'r',
|
||||
speedRuneStack,
|
||||
'b',
|
||||
@@ -2441,7 +2434,7 @@ public class AlchemicalWizardry {
|
||||
"csc",
|
||||
"obo",
|
||||
'b',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
'p',
|
||||
new ItemStack(Blocks.piston),
|
||||
'c',
|
||||
@@ -2464,7 +2457,7 @@ public class AlchemicalWizardry {
|
||||
'a',
|
||||
accelerationRuneStack,
|
||||
'o',
|
||||
archmageBloodOrbStack));
|
||||
5));
|
||||
|
||||
AlchemyRecipeRegistry.registerRecipe(
|
||||
crackedRunicPlateStackCrafted,
|
||||
@@ -2959,7 +2952,7 @@ public class AlchemicalWizardry {
|
||||
't',
|
||||
new ItemStack(ModBlocks.blockTeleposer),
|
||||
'o',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
'l',
|
||||
lavaBucketStack,
|
||||
'w',
|
||||
@@ -2975,7 +2968,7 @@ public class AlchemicalWizardry {
|
||||
't',
|
||||
weakBloodShardStack,
|
||||
'o',
|
||||
masterBloodOrbStack,
|
||||
4,
|
||||
'e',
|
||||
new ItemStack(Items.ender_eye),
|
||||
'p',
|
||||
@@ -3057,7 +3050,7 @@ public class AlchemicalWizardry {
|
||||
"grg",
|
||||
"bob",
|
||||
'o',
|
||||
transcendentBloodOrbStack,
|
||||
6,
|
||||
'r',
|
||||
bloodRuneStack,
|
||||
'1',
|
||||
@@ -3075,7 +3068,7 @@ public class AlchemicalWizardry {
|
||||
"grg",
|
||||
"bob",
|
||||
'o',
|
||||
transcendentBloodOrbStack,
|
||||
6,
|
||||
'r',
|
||||
bloodRuneStack,
|
||||
'g',
|
||||
@@ -3093,7 +3086,7 @@ public class AlchemicalWizardry {
|
||||
"grg",
|
||||
"bob",
|
||||
'o',
|
||||
transcendentBloodOrbStack,
|
||||
6,
|
||||
'r',
|
||||
bloodRuneStack,
|
||||
'g',
|
||||
@@ -3246,7 +3239,7 @@ public class AlchemicalWizardry {
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
proxy.registerPostSideObjects();
|
||||
isGregTechLoaded = Loader.isModLoaded("gregtech");
|
||||
isGregTech5UnofficialNewHorizonsLoaded = Loader.isModLoaded("gregtech_nh");
|
||||
isEndlessIdsLoaded = Loader.isModLoaded("endlessids");
|
||||
// TODO Thaumcraft Integration
|
||||
if (Loader.isModLoaded("Thaumcraft")) {
|
||||
|
||||
@@ -86,25 +86,23 @@ public class ShapedBloodOrbRecipe implements IRecipe {
|
||||
Character chr = (Character) recipe[idx];
|
||||
Object in = recipe[idx + 1];
|
||||
|
||||
if (in instanceof IBloodOrb orb) {
|
||||
itemMap.put(chr, orb.getOrbLevel());
|
||||
} else if (in instanceof ItemStack stack && stack.getItem() instanceof IBloodOrb orb) {
|
||||
itemMap.put(chr, orb.getOrbLevel());
|
||||
} else if (in instanceof ItemStack stack) {
|
||||
itemMap.put(chr, stack.copy());
|
||||
} else if (in instanceof Item item) {
|
||||
itemMap.put(chr, new ItemStack(item));
|
||||
} else if (in instanceof Block block) {
|
||||
itemMap.put(chr, new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||
} else if (in instanceof String string) {
|
||||
itemMap.put(chr, OreDictionary.getOres(string));
|
||||
} else {
|
||||
StringBuilder ret = new StringBuilder("Invalid shaped ore recipe: ");
|
||||
for (Object tmp : recipe) {
|
||||
ret.append(tmp).append(", ");
|
||||
switch (in) {
|
||||
case IBloodOrb orb -> itemMap.put(chr, orb.getOrbLevel());
|
||||
case ItemStack stack when stack.getItem() instanceof IBloodOrb orb ->
|
||||
itemMap.put(chr, orb.getOrbLevel());
|
||||
case ItemStack stack -> itemMap.put(chr, stack.copy());
|
||||
case Integer i -> itemMap.put(chr, i);
|
||||
case Item item -> itemMap.put(chr, new ItemStack(item));
|
||||
case Block block -> itemMap.put(chr, new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||
case String string -> itemMap.put(chr, OreDictionary.getOres(string));
|
||||
case null, default -> {
|
||||
StringBuilder ret = new StringBuilder("Invalid shaped ore recipe: ");
|
||||
for (Object tmp : recipe) {
|
||||
ret.append(tmp).append(", ");
|
||||
}
|
||||
ret.append(output);
|
||||
throw new RuntimeException(ret.toString());
|
||||
}
|
||||
ret.append(output);
|
||||
throw new RuntimeException(ret.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,25 +34,22 @@ public class ShapelessBloodOrbRecipe implements IRecipe {
|
||||
public ShapelessBloodOrbRecipe(ItemStack result, Object... recipe) {
|
||||
output = result.copy();
|
||||
for (Object in : recipe) {
|
||||
if (in instanceof IBloodOrb orb) {
|
||||
input.add(orb.getOrbLevel());
|
||||
} else if (in instanceof ItemStack stack && stack.getItem() instanceof IBloodOrb orb) {
|
||||
input.add(orb.getOrbLevel());
|
||||
} else if (in instanceof ItemStack stack) {
|
||||
input.add(stack.copy());
|
||||
} else if (in instanceof Item item) {
|
||||
input.add(new ItemStack(item));
|
||||
} else if (in instanceof Block block) {
|
||||
input.add(new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||
} else if (in instanceof String string) {
|
||||
input.add(OreDictionary.getOres(string));
|
||||
} else {
|
||||
StringBuilder ret = new StringBuilder("Invalid shapeless ore recipe: ");
|
||||
for (Object tmp : recipe) {
|
||||
ret.append(tmp).append(", ");
|
||||
switch (in) {
|
||||
case IBloodOrb orb -> input.add(orb.getOrbLevel());
|
||||
case ItemStack stack when stack.getItem() instanceof IBloodOrb orb -> input.add(orb.getOrbLevel());
|
||||
case Integer i -> input.add(i);
|
||||
case ItemStack stack -> input.add(stack.copy());
|
||||
case Item item -> input.add(new ItemStack(item));
|
||||
case Block block -> input.add(new ItemStack(block, 1, OreDictionary.WILDCARD_VALUE));
|
||||
case String string -> input.add(OreDictionary.getOres(string));
|
||||
case null, default -> {
|
||||
StringBuilder ret = new StringBuilder("Invalid shapeless ore recipe: ");
|
||||
for (Object tmp : recipe) {
|
||||
ret.append(tmp).append(", ");
|
||||
}
|
||||
ret.append(output);
|
||||
throw new RuntimeException(ret.toString());
|
||||
}
|
||||
ret.append(output);
|
||||
throw new RuntimeException(ret.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -485,10 +485,12 @@ public class AlchemicalWizardryEventHooks {
|
||||
if (event.entityLiving.isPotionActive(AlchemicalWizardry.customPotionDrowning)
|
||||
&& !event.entityLiving.isPotionActive(Potion.waterBreathing)) {
|
||||
int i = event.entityLiving.getActivePotionEffect(AlchemicalWizardry.customPotionDrowning).getAmplifier();
|
||||
int amplifier = Math.max(1, (i + 1));
|
||||
int interval = Math.max(1, (20 / amplifier));
|
||||
|
||||
if (event.entityLiving.worldObj.getWorldTime() % (20 / (i + 1)) == 0) {
|
||||
if (event.entityLiving.worldObj.getWorldTime() % interval == 0) {
|
||||
event.entityLiving.attackEntityFrom(DamageSource.drown, 2);
|
||||
event.entityLiving.hurtResistantTime = Math.min(event.entityLiving.hurtResistantTime, 20 / (i + 1));
|
||||
event.entityLiving.hurtResistantTime = Math.min(event.entityLiving.hurtResistantTime, interval);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,8 @@ public class BoundPickaxe extends ItemPickaxe implements IBindable {
|
||||
dropMultiset.add(new ItemType(block, meta));
|
||||
} else {
|
||||
ArrayList<ItemStack> itemDropList;
|
||||
if (AlchemicalWizardry.isGregTechLoaded && block instanceof GTBlockOre ore) {
|
||||
if (AlchemicalWizardry.isGregTech5UnofficialNewHorizonsLoaded
|
||||
&& block instanceof GTBlockOre ore) {
|
||||
itemDropList = ore.getDropsForPlayer(world, x, y, z, meta, fortuneLvl, player);
|
||||
} else {
|
||||
itemDropList = block.getDrops(world, x, y, z, meta, fortuneLvl);
|
||||
|
||||
@@ -159,7 +159,7 @@ public class ItemIncense extends Item implements IIncense {
|
||||
new ItemStack(Items.redstone),
|
||||
leavesStack,
|
||||
leavesStack,
|
||||
new ItemStack(ModItems.weakBloodOrb)));
|
||||
1));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessBloodOrbRecipe(
|
||||
new ItemStack(ModItems.itemIncense, 1, 2),
|
||||
@@ -171,7 +171,7 @@ public class ItemIncense extends Item implements IIncense {
|
||||
glowstoneStack,
|
||||
stringStack,
|
||||
stringStack,
|
||||
new ItemStack(ModItems.apprenticeBloodOrb)));
|
||||
2));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessBloodOrbRecipe(
|
||||
new ItemStack(ModItems.itemIncense, 1, 3),
|
||||
@@ -182,7 +182,7 @@ public class ItemIncense extends Item implements IIncense {
|
||||
gunpowderStack,
|
||||
fermentedEyeStack,
|
||||
blankSlateStack,
|
||||
new ItemStack(ModItems.apprenticeBloodOrb)));
|
||||
2));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessBloodOrbRecipe(
|
||||
new ItemStack(ModItems.itemIncense, 1, 4),
|
||||
@@ -194,7 +194,7 @@ public class ItemIncense extends Item implements IIncense {
|
||||
blazePowderStack,
|
||||
fracturedBoneStack,
|
||||
reinforcedSlateStack,
|
||||
new ItemStack(ModItems.magicianBloodOrb)));
|
||||
3));
|
||||
}
|
||||
|
||||
public enum EnumIncense {
|
||||
@@ -205,6 +205,8 @@ public class ItemIncense extends Item implements IIncense {
|
||||
GREEN(1500, 2400, 4.0f, 2000, 0, 1.0f, 0),
|
||||
PURPLE(2400, 3500, 5.0f, 2000, 1.0f, 0, 1.0f);
|
||||
|
||||
public static final EnumIncense[] VALUES = values();
|
||||
|
||||
public final int minValue;
|
||||
public final int maxValue;
|
||||
public final float tickRate;
|
||||
@@ -226,10 +228,10 @@ public class ItemIncense extends Item implements IIncense {
|
||||
}
|
||||
|
||||
public static EnumIncense getEnumForIndex(int index) {
|
||||
if (index > EnumIncense.values().length || index < 0) {
|
||||
if (index > EnumIncense.VALUES.length || index < 0) {
|
||||
return WOODASH;
|
||||
} else {
|
||||
return EnumIncense.values()[index];
|
||||
return EnumIncense.VALUES[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ public class RitualEffectMagnetic extends RitualEffect {
|
||||
public static boolean isBlockOre(Block block, int meta) {
|
||||
// Special case for lit redstone ore
|
||||
if (block instanceof BlockOre || block instanceof BlockRedstoneOre
|
||||
|| (AlchemicalWizardry.isGregTechLoaded && block instanceof GTBlockOre)) {
|
||||
|| (AlchemicalWizardry.isGregTech5UnofficialNewHorizonsLoaded && block instanceof GTBlockOre)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -3,7 +3,6 @@ package WayofTime.alchemicalWizardry.common.spell.simple;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class HomSpellRegistry {
|
||||
@@ -22,7 +21,7 @@ public class HomSpellRegistry {
|
||||
for (HomSpellComponent hsc : spellList) {
|
||||
ItemStack item = hsc.item();
|
||||
|
||||
if (item != null && item.getItem() instanceof ItemBlock && testItem.getItem() == item.getItem()) {
|
||||
if (item != null && testItem.getItem() == item.getItem()) {
|
||||
return hsc.spell();
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ public class SpellLightningBolt extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onOffensiveRangedRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class SpellLightningBolt extends HomSpell {
|
||||
@Override
|
||||
public ItemStack onOffensiveMeleeRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
// TODO Make it work better...?
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public class SpellTeleport extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onOffensiveRangedRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class SpellTeleport extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onOffensiveMeleeRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SpellTeleport extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onDefensiveRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class SpellTeleport extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onEnvironmentalRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -29,7 +29,7 @@ public class SpellWateryGrave extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onOffensiveRangedRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class SpellWateryGrave extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onOffensiveMeleeRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public class SpellWateryGrave extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onDefensiveRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ public class SpellWateryGrave extends HomSpell {
|
||||
|
||||
@Override
|
||||
public ItemStack onEnvironmentalRightClick(ItemStack item, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
if (!IBindable.checkAndSetItemOwner(item, player) || player.isSneaking()) {
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
@@ -160,7 +160,8 @@ public class Meteor {
|
||||
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);
|
||||
if (AlchemicalWizardry.isGregTech5UnofficialNewHorizonsLoaded)
|
||||
setGTOresNaturalIfNeeded(world, x, y, z);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
break;
|
||||
}
|
||||
@@ -230,7 +231,7 @@ public class Meteor {
|
||||
this.fillerChance = Math.max(0f, Math.min(100f * (1 - ((float) getTotalListWeight(ores) / maxWeight)), 100.0f));
|
||||
}
|
||||
|
||||
@Optional.Method(modid = "gregtech")
|
||||
@Optional.Method(modid = "gregtech_nh")
|
||||
private static void setGTOresNaturalIfNeeded(World world, int x, int y, int z) {
|
||||
try (OreInfo<?> info = OreManager.getOreInfo(world, x, y, z)) {
|
||||
if (info == null) return;
|
||||
|
||||
Reference in new issue
Block a user