Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
801c1c9eb5 | ||
|
|
88002582b9 | ||
|
|
142fa182ae | ||
|
|
26580c10b3 | ||
|
|
03e5cb2a64 | ||
|
|
f3e594ad7f | ||
|
|
8d891552e9 | ||
|
|
99aab04584 | ||
|
|
96886c1125 |
No files matched your search
@@ -0,0 +1,17 @@
|
||||
name: Optimize images
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
push:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
jobs:
|
||||
optimize-images:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||
secrets: inherit
|
||||
@@ -23,23 +23,22 @@
|
||||
*/
|
||||
|
||||
dependencies {
|
||||
api("com.github.GTNewHorizons:waila:1.9.15:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.8.48-GTNH:dev")
|
||||
api("com.github.GTNewHorizons:waila:1.19.25:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:GTNHLib:0.8.41:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.188:dev") {transitive = false }
|
||||
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:Botania:1.13.6-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.4:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.7.2: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:Chisel:2.17.11-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:Chisel:2.17.26-GTNH:api") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.2:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.7:dev") {transitive = false }
|
||||
|
||||
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
|
||||
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.25:dev")
|
||||
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.34:dev")
|
||||
}
|
||||
@@ -39,14 +39,34 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
|
||||
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||
developmentEnvironmentUserName = Developer
|
||||
|
||||
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||
# See https://github.com/bsideup/jabel for details on how this works.
|
||||
enableModernJavaSyntax = true
|
||||
# Enables modern Java syntax support. Valid values:
|
||||
# - false: No modern syntax, Java 8 only
|
||||
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
|
||||
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
|
||||
# - modern: Native modern Java bytecode, no downgrading
|
||||
enableModernJavaSyntax = jabel
|
||||
|
||||
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
|
||||
# and should *not* be used in most situations. -1 disables this.
|
||||
# forceToolchainVersion = -1
|
||||
|
||||
# Target JVM version for JVM Downgrader bytecode downgrading.
|
||||
# Only used when enableModernJavaSyntax = jvmDowngrader
|
||||
# downgradeTargetVersion = 8
|
||||
|
||||
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
|
||||
# Classes will be available in META-INF/versions/N/ for each version N in this list.
|
||||
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
|
||||
# jvmDowngraderMultiReleaseVersions = 21,25
|
||||
|
||||
# Specifies how JVM Downgrader API stubs are provided. Options:
|
||||
# - shade: Shade minimized stubs into the jar
|
||||
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
|
||||
# - external: Another dependency provides stubs (no constraint, no warning)
|
||||
# - (empty): Warning reminding you to configure stubs
|
||||
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
|
||||
# jvmDowngraderStubsProvider =
|
||||
|
||||
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||
enableGenericInjection = true
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#This file is generated by updateDaemonJvm
|
||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/46949723aaa20c7b64d7ecfed7207034/redirect
|
||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d6690dfd71c4c91e08577437b5b2beb0/redirect
|
||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3cd7045fca9a72cd9bc7d14a385e594c/redirect
|
||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511/redirect
|
||||
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
|
||||
toolchainVersion=25
|
||||
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/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/.
|
||||
|
||||
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.9'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import java.util.ArrayList;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@@ -66,7 +67,10 @@ public class CostInfo extends BMNEIWidget {
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
drawCenteredText(x, y, String.format("%,d", cost));
|
||||
drawCenteredText(
|
||||
x,
|
||||
y,
|
||||
StatCollector.translateToLocalFormatted("nei.recipe.meteor.cost.gui", String.format("%,d", cost)));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +1,21 @@
|
||||
package WayofTime.alchemicalWizardry.common.block;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.api.Int3;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -41,6 +49,37 @@ public class BlockReagentConduit extends BlockContainer {
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float what,
|
||||
float these, float are) {
|
||||
if (!world.isRemote) {
|
||||
ItemStack held = player.getHeldItem();
|
||||
if (held == null || !(held.getItem() instanceof IReagentManipulator)) {
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
if (tile instanceof TEReagentConduit) {
|
||||
TEReagentConduit relay = (TEReagentConduit) tile;
|
||||
if (relay.reagentTargetList.isEmpty()) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.reagentconduit.noconnections"));
|
||||
} else {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.reagentconduit.connections"));
|
||||
for (Map.Entry<Reagent, List<Int3>> entry : relay.reagentTargetList.entrySet()) {
|
||||
Reagent reagent = entry.getKey();
|
||||
List<Int3> offsets = entry.getValue();
|
||||
if (offsets == null) continue;
|
||||
for (Int3 offset : offsets) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation(
|
||||
"message.reagentconduit.connection.entry",
|
||||
reagent.name,
|
||||
x + offset.xCoord,
|
||||
y + offset.yCoord,
|
||||
z + offset.zCoord));
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onBlockActivated(world, x, y, z, player, side, what, these, are);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,9 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.attunedcrystal.desc1"));
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.attunedcrystal.desc2"));
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.attunedcrystal.desc3"));
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.attunedcrystal.desc4"));
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.attunedcrystal.desc5"));
|
||||
|
||||
if (!(par1ItemStack.getTagCompound() == null)) {
|
||||
Reagent reagent = this.getReagent(par1ItemStack);
|
||||
@@ -142,6 +145,10 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
|
||||
if (movingobjectposition == null) {
|
||||
if (player.isSneaking()) {
|
||||
this.setHasSavedCoordinates(itemStack, false);
|
||||
if (!itemStack.hasTagCompound()) {
|
||||
itemStack.setTagCompound(new net.minecraft.nbt.NBTTagCompound());
|
||||
}
|
||||
itemStack.getTagCompound().setString("reagent", "");
|
||||
player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.clearing"));
|
||||
}
|
||||
|
||||
@@ -161,35 +168,101 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
|
||||
IReagentHandler relay = (IReagentHandler) tile;
|
||||
|
||||
if (player.isSneaking()) {
|
||||
ReagentContainerInfo[] infos = relay.getContainerInfo(ForgeDirection.UNKNOWN);
|
||||
if (infos != null) {
|
||||
List<Reagent> reagentList = new LinkedList();
|
||||
for (ReagentContainerInfo info : infos) {
|
||||
if (info != null) {
|
||||
ReagentStack reagentStack = info.reagent;
|
||||
if (reagentStack != null) {
|
||||
Reagent reagent = reagentStack.reagent;
|
||||
if (reagent != null) {
|
||||
reagentList.add(reagent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.getHasSavedCoordinates(itemStack)) {
|
||||
Int3 coords = this.getCoordinates(itemStack);
|
||||
int dimension = this.getDimension(itemStack);
|
||||
|
||||
Reagent pastReagent = this.getReagent(itemStack);
|
||||
|
||||
if (reagentList.size() <= 0) {
|
||||
if (coords == null) {
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
int reagentLocation;
|
||||
// Sneak+right-click saved source block again → clear all of reagent's connections
|
||||
if (coords.xCoord == x && coords.yCoord == y && coords.zCoord == z) {
|
||||
TileEntity pastTile = world.getTileEntity(coords.xCoord, coords.yCoord, coords.zCoord);
|
||||
if (!(pastTile instanceof TEReagentConduit)) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.cannotfind"));
|
||||
return itemStack;
|
||||
}
|
||||
Reagent reagent = this.getReagent(itemStack);
|
||||
if (reagent == null) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.noreagent"));
|
||||
return itemStack;
|
||||
}
|
||||
TEReagentConduit pastRelay = (TEReagentConduit) pastTile;
|
||||
pastRelay.reagentTargetList.remove(reagent);
|
||||
this.setHasSavedCoordinates(itemStack, false);
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation(
|
||||
"message.attunedcrystal.clearedreagent",
|
||||
reagent.name));
|
||||
world.markBlockForUpdate(coords.xCoord, coords.yCoord, coords.zCoord);
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
reagentLocation = reagentList.indexOf(pastReagent);
|
||||
if (dimension != world.provider.dimensionId || Math.abs(coords.xCoord - x) > maxDistance
|
||||
|| Math.abs(coords.yCoord - y) > maxDistance
|
||||
|| Math.abs(coords.zCoord - z) > maxDistance) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.toofar"));
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
if (reagentLocation == -1 || reagentLocation + 1 >= reagentList.size()) {
|
||||
this.setReagentWithNotification(itemStack, reagentList.get(0), player);
|
||||
} else {
|
||||
this.setReagentWithNotification(itemStack, reagentList.get(reagentLocation + 1), player);
|
||||
TileEntity pastTile = world.getTileEntity(coords.xCoord, coords.yCoord, coords.zCoord);
|
||||
if (!(pastTile instanceof TEReagentConduit)) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.cannotfind"));
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
Reagent reagent = this.getReagent(itemStack);
|
||||
if (reagent == null) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.noreagent"));
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
TEReagentConduit pastRelay = (TEReagentConduit) pastTile;
|
||||
boolean removed = pastRelay.removeReagentDestinationViaActual(reagent, x, y, z);
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation(
|
||||
removed ? "message.attunedcrystal.removed"
|
||||
: "message.attunedcrystal.error.notremoved"));
|
||||
world.markBlockForUpdate(coords.xCoord, coords.yCoord, coords.zCoord);
|
||||
} else {
|
||||
// No saved coords → cycle reagent selection
|
||||
ReagentContainerInfo[] infos = relay.getContainerInfo(ForgeDirection.UNKNOWN);
|
||||
if (infos != null) {
|
||||
List<Reagent> reagentList = new LinkedList();
|
||||
for (ReagentContainerInfo info : infos) {
|
||||
if (info != null) {
|
||||
ReagentStack reagentStack = info.reagent;
|
||||
if (reagentStack != null) {
|
||||
Reagent reagent = reagentStack.reagent;
|
||||
if (reagent != null) {
|
||||
reagentList.add(reagent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reagent pastReagent = this.getReagent(itemStack);
|
||||
|
||||
if (reagentList.size() <= 0) {
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
int reagentLocation = reagentList.indexOf(pastReagent);
|
||||
|
||||
if (reagentLocation == -1 || reagentLocation + 1 >= reagentList.size()) {
|
||||
this.setReagentWithNotification(itemStack, reagentList.get(0), player);
|
||||
} else {
|
||||
this.setReagentWithNotification(
|
||||
itemStack,
|
||||
reagentList.get(reagentLocation + 1),
|
||||
player);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -217,25 +290,28 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
|
||||
}
|
||||
|
||||
Reagent reagent = this.getReagent(itemStack);
|
||||
|
||||
if (reagent == null) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.noreagent"));
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
TEReagentConduit pastRelay = (TEReagentConduit) pastTile;
|
||||
|
||||
if (player.isSneaking()) {
|
||||
pastRelay.removeReagentDestinationViaActual(reagent, x, y, z);
|
||||
if (pastRelay.hasReagentDestination(reagent, x, y, z)) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.duplicate"));
|
||||
} else if (pastRelay.addReagentDestinationViaActual(reagent, x, y, z)) {
|
||||
int used = pastRelay.getTotalConnections();
|
||||
int max = pastRelay.maxConnextions;
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation(
|
||||
"message.attunedcrystal.linked",
|
||||
reagent.name,
|
||||
used,
|
||||
max));
|
||||
} else {
|
||||
if (pastRelay.addReagentDestinationViaActual(reagent, x, y, z)) {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentText(
|
||||
StatCollector.translateToLocal("message.attunedcrystal.linked") + " "
|
||||
+ reagent.name));
|
||||
} else {
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.noconnections"));
|
||||
}
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.error.noconnections"));
|
||||
}
|
||||
world.markBlockForUpdate(coords.xCoord, coords.yCoord, coords.zCoord);
|
||||
} else {
|
||||
@@ -244,7 +320,8 @@ public class ItemAttunedCrystal extends Item implements IReagentManipulator {
|
||||
this.setDimension(itemStack, dimension);
|
||||
this.setCoordinates(itemStack, new Int3(x, y, z));
|
||||
|
||||
player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.linking"));
|
||||
player.addChatComponentMessage(
|
||||
new ChatComponentTranslation("message.attunedcrystal.linking", x, y, z));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,10 +53,7 @@ public class SigilLava extends ItemBucket implements ArmourUpgrade, ISigil {
|
||||
|
||||
@Override
|
||||
public ItemStack getContainerItem(ItemStack itemStack) {
|
||||
ItemStack copiedStack = itemStack.copy();
|
||||
copiedStack.setItemDamage(copiedStack.getItemDamage() + getEnergyUsed());
|
||||
copiedStack.stackSize = 1;
|
||||
return copiedStack;
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -23,6 +23,7 @@ import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import WayofTime.alchemicalWizardry.common.ItemType;
|
||||
import WayofTime.alchemicalWizardry.common.block.BlockTeleposer;
|
||||
import gregtech.common.blocks.GTBlockOre;
|
||||
|
||||
public class RitualEffectMagnetic extends RitualEffect {
|
||||
|
||||
@@ -34,7 +35,10 @@ 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) return true;
|
||||
if (block instanceof BlockOre || block instanceof BlockRedstoneOre
|
||||
|| (AlchemicalWizardry.isGregTechLoaded && block instanceof GTBlockOre)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (block == null || Item.getItemFromBlock(block) == null) return false;
|
||||
|
||||
|
||||
@@ -417,17 +417,31 @@ public class TEReagentConduit extends TileSegmentedReagentHandler {
|
||||
readClientNBT(packet.func_148857_g());
|
||||
}
|
||||
|
||||
public boolean addReagentDestinationViaOffset(Reagent reagent, int xOffset, int yOffset, int zOffset) {
|
||||
int totalConnections = 0;
|
||||
|
||||
for (Entry<Reagent, List<Int3>> entry : this.reagentTargetList.entrySet()) {
|
||||
if (entry.getValue() != null) {
|
||||
totalConnections += entry.getValue().size();
|
||||
public int getTotalConnections() {
|
||||
int total = 0;
|
||||
for (List<Int3> list : this.reagentTargetList.values()) {
|
||||
if (list != null) {
|
||||
total += list.size();
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
if (totalConnections >= this.maxConnextions) {
|
||||
// Send message that it cannot be done? Maybe add a Player instance
|
||||
public boolean hasReagentDestination(Reagent reagent, int x, int y, int z) {
|
||||
int xOffset = x - this.xCoord;
|
||||
int yOffset = y - this.yCoord;
|
||||
int zOffset = z - this.zCoord;
|
||||
if (this.reagentTargetList.containsKey(reagent)) {
|
||||
List<Int3> coords = this.reagentTargetList.get(reagent);
|
||||
if (coords != null) {
|
||||
return coords.contains(new Int3(xOffset, yOffset, zOffset));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean addReagentDestinationViaOffset(Reagent reagent, int xOffset, int yOffset, int zOffset) {
|
||||
if (getTotalConnections() >= this.maxConnextions) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -444,6 +458,9 @@ public class TEReagentConduit extends TileSegmentedReagentHandler {
|
||||
newCoordList.add(newCoord);
|
||||
this.reagentTargetList.put(reagent, newCoordList);
|
||||
} else {
|
||||
if (coordList.contains(newCoord)) {
|
||||
return false;
|
||||
}
|
||||
coordList.add(newCoord);
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 272 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -281,6 +281,7 @@ text.recipe.alchemicCalcinator.reagent=%s AR
|
||||
nei.recipe.meteor.category=Meteor Ritual
|
||||
nei.recipe.meteor.cost=LP cost to summon this meteor
|
||||
nei.recipe.meteor.tooExpensive=Insufficient LP in Soul Network
|
||||
nei.recipe.meteor.cost.gui=%s
|
||||
nei.recipe.meteor.radius=Radius: %s
|
||||
nei.recipe.meteor.diameter=Diameter: %d (2r + 1)
|
||||
nei.recipe.meteor.chance=Chance: %s%%
|
||||
@@ -433,8 +434,11 @@ tooltip.alchemyflask.caution=CAUTION: Contents are throwable
|
||||
tooltip.alchemyflask.swigsleft=Swigs Left:
|
||||
tooltip.armorinhibitor.desc1=Used to suppress a soul's
|
||||
tooltip.armorinhibitor.desc2=unnatural abilities.
|
||||
tooltip.attunedcrystal.desc1=A tool to tune alchemy
|
||||
tooltip.attunedcrystal.desc2=reagent transmission
|
||||
tooltip.attunedcrystal.desc1=1) Sneak+right-click relay to select reagent
|
||||
tooltip.attunedcrystal.desc2=2) Right-click source relay
|
||||
tooltip.attunedcrystal.desc3=3) Right-click destination relay to link
|
||||
tooltip.attunedcrystal.desc4=Sneak+right-click air to clear selection.
|
||||
tooltip.attunedcrystal.desc5=Sneak+right-click relay to remove/clear links.
|
||||
tooltip.blankspell.desc=Crystal of infinite possibilities.
|
||||
tooltip.bloodframe.desc=Stirs bees into a frenzy.
|
||||
tooltip.bloodletterpack.desc=This pack really chafes...
|
||||
@@ -547,13 +551,21 @@ message.altar.progress=Altar's Progress: %,d LP / %,d LP
|
||||
message.altar.inputtank= Input Tank: %,d LP
|
||||
message.altar.outputtank= Output Tank: %,d LP
|
||||
message.altar.hunger=[BM] Your high regeneration rate has caused you to become hungry...
|
||||
message.attunedcrystal.clearing=Clearing saved container...
|
||||
message.attunedcrystal.clearing=Cleared saved source and reagent selection.
|
||||
message.attunedcrystal.error.cannotfind=Can no longer find linked container.
|
||||
message.attunedcrystal.error.noconnections=Linked container has no connections remaining!
|
||||
message.attunedcrystal.error.toofar=Linked container is either too far or is in a different dimension.
|
||||
message.attunedcrystal.linked=Container is now linked. Transmitting:
|
||||
message.attunedcrystal.linking=Linking to selected container.
|
||||
message.attunedcrystal.error.noreagent=No reagent selected! Sneak+right-click a relay to select one.
|
||||
message.attunedcrystal.error.duplicate=Already connected to that destination!
|
||||
message.attunedcrystal.error.notremoved=No matching connection found to remove.
|
||||
message.attunedcrystal.removed=Connection removed successfully.
|
||||
message.attunedcrystal.clearedreagent=Cleared all %s connections from this relay.
|
||||
message.attunedcrystal.linked=Linked! Transmitting %s. (%s/%s connections used)
|
||||
message.attunedcrystal.linking=Source relay saved at %s, %s, %s. Right-click a destination to link.
|
||||
message.attunedcrystal.setto=Attuned Crystal now set to:
|
||||
message.reagentconduit.noconnections=This relay has no routing connections.
|
||||
message.reagentconduit.connections=Routing connections:
|
||||
message.reagentconduit.connection.entry= %s -> (%s, %s, %s)
|
||||
message.demon.shallfollow=I shall follow and protect you!
|
||||
message.demon.willstay=I will stay here for now, Master.
|
||||
message.destinationclearer.cleared=Destination list now cleared.
|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 920 B |
|
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 566 B |
|
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 670 B |
|
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 399 B |
|
Before Width: | Height: | Size: 761 B After Width: | Height: | Size: 713 B |
|
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 771 B After Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 596 B |
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 194 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 974 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 969 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 403 B |
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 657 B |
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 451 B |
|
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 711 B |
|
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 663 B |
|
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 673 B |
|
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 706 B |
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 192 B |
|
Before Width: | Height: | Size: 779 B After Width: | Height: | Size: 678 B |
|
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 665 B |
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 690 B |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 569 B |
|
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 715 B |
|
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 619 B |
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 614 B |
|
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 485 B |
|
Before Width: | Height: | Size: 811 B After Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 604 B |
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 680 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 688 B |
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 783 B |
|
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 681 B |
|
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 518 B |
|
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 797 B After Width: | Height: | Size: 671 B |
|
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 548 B |
|
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 682 B |
|
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 281 B |
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 245 B |
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 218 B |
|
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 299 B |
|
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 218 B |