mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 22:34:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
023ce67a09 | ||
|
|
b895140eaa | ||
|
|
f5010bcdf9 | ||
|
|
fca0feb92a | ||
|
|
ba203f4a57 | ||
|
|
f1c08b6f5f | ||
|
|
b4d4246577 | ||
|
|
49652c32e5 | ||
|
|
2a98bb16ff | ||
|
|
301cdce23c | ||
|
|
708b3bcae1 | ||
|
|
be88ceed7b | ||
|
|
ff25437d14 | ||
|
|
69b43d2874 | ||
|
|
aae438a098 | ||
|
|
97dcff302c | ||
|
|
57b7e8e841 | ||
|
|
e4df980eac | ||
|
|
632f0fb2f7 | ||
|
|
dfb6ca1735 | ||
|
|
77dc95d4d5 | ||
|
|
f3ef2a4244 | ||
|
|
a332cabdf7 | ||
|
|
69b64368f8 | ||
|
|
ccfc699180 | ||
|
|
6c5443c859 | ||
|
|
b4c34554c2 | ||
|
|
1f1795e635 | ||
|
|
9bf423b0da | ||
|
|
e97b70cab5 | ||
|
|
b6a965af46 | ||
|
|
584f5bd4f6 | ||
|
|
eea1549684 | ||
|
|
8246b036f3 | ||
|
|
228508a755 | ||
|
|
0e26ab800f | ||
|
|
281ab32e95 |
No files matched your search
@@ -0,0 +1,62 @@
|
||||
|
||||
# Electro-Magic-Tools
|
||||
|
||||
Changelog of Electro-Magic-Tools.
|
||||
|
||||
|
||||
### [#22 fix(textures): deprecated use of CASING_BLOCKS](https://github.com/GTNewHorizons/Electro-Magic-Tools/pull/22)
|
||||
**Merge pull request #22 from GTNewHorizons/fix_CASING_BLOCKS**
|
||||
* fix(textures): deprecated use of CASING_BLOCKS
|
||||
|
||||
[69b43d28740ac13](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/69b43d28740ac13)
|
||||
by Léa Gris *2021-05-22 21:45:02*
|
||||
### No issue
|
||||
**bump version**
|
||||
|
||||
[ff25437d148f471](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/ff25437d148f471)
|
||||
by DreamMasterXXL *2021-06-15 19:54:07*
|
||||
|
||||
**fix(textures): deprecated use of CASING_BLOCKS**
|
||||
|
||||
[aae438a09871b7d](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/aae438a09871b7d)
|
||||
by Léa Gris *2021-05-22 19:49:01*
|
||||
|
||||
### [#19 Essentia gen fixes](https://github.com/GTNewHorizons/Electro-Magic-Tools/pull/19)
|
||||
**Merge pull request #19 from GTNewHorizons/essentiaGenFix**
|
||||
* Essentia gen fixes
|
||||
|
||||
[e4df980eacf77fa](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/e4df980eacf77fa)
|
||||
by Martin Robertz *2021-01-10 14:17:56*
|
||||
### [#20 fixed gens outputting their amps up to 6 times](https://github.com/GTNewHorizons/Electro-Magic-Tools/pull/20)
|
||||
**fixed gens outputting their amps up to 6 times (#20)**
|
||||
* fixed gens outputting their amps up to 6 times
|
||||
* change according to review
|
||||
|
||||
[57b7e8e84176818](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/57b7e8e84176818)
|
||||
by KiloJoel *2021-02-12 16:58:07*
|
||||
### No issue
|
||||
**bump version**
|
||||
|
||||
[97dcff302ca936e](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/97dcff302ca936e)
|
||||
by DreamMasterXXL *2021-02-26 06:23:40*
|
||||
|
||||
**fixed essentia gens accepting essentia when full**
|
||||
|
||||
[632f0fb2f74fcac](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/632f0fb2f74fcac)
|
||||
by KiloJoel *2021-01-10 08:16:36*
|
||||
|
||||
**fixed other server-client problems**
|
||||
|
||||
[dfb6ca173567017](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/dfb6ca173567017)
|
||||
by KiloJoel *2021-01-10 07:44:38*
|
||||
|
||||
**fixed log spam from essentia gens**
|
||||
|
||||
[77dc95d4d5c51d7](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/77dc95d4d5c51d7)
|
||||
by KiloJoel *2021-01-10 07:33:58*
|
||||
|
||||
**updated gradle wrapper**
|
||||
|
||||
[f3ef2a42440344a](https://github.com/GTNewHorizons/Electro-Magic-Tools/commit/f3ef2a42440344a)
|
||||
by KiloJoel *2021-01-10 07:27:39*
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
package_group=emt
|
||||
mc_version=1.7.10
|
||||
forge_version=10.13.4.1614
|
||||
mod_version=1.2.7.8
|
||||
mod_version=1.2.8.4
|
||||
mod_name=ElectroMagicTools
|
||||
Vendored
BIN
Binary file not shown.
+2
-2
@@ -1,6 +1,6 @@
|
||||
#Fri Nov 27 18:08:08 MSK 2015
|
||||
#Sat Jan 04 01:56:22 CET 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -52,6 +52,8 @@ public class ConainerGenerator
|
||||
if (i == 0) {
|
||||
this.tileentity.generating = (((int) j) * 400);
|
||||
} else if (i == 1) {
|
||||
if (j == 0 || this.tileentity.fuel != j)
|
||||
this.tileentity.tick = 0;
|
||||
this.tileentity.fuel = ((byte) j);
|
||||
} else if (i == 2) {
|
||||
this.tileentity.mpshownstroage = (short) j;
|
||||
|
||||
+2
-2
@@ -68,9 +68,9 @@ public class EMT_Large_Essentia_Gen extends GT_MetaTileEntity_MultiBlockBase {
|
||||
@Override
|
||||
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
|
||||
if (aSide == aFacing) {
|
||||
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[CASING_INDEX], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER)};
|
||||
return new ITexture[]{Textures.BlockIcons.getCasingTextureForId(CASING_INDEX), new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER)};
|
||||
}
|
||||
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[CASING_INDEX]};
|
||||
return new ITexture[]{Textures.BlockIcons.getCasingTextureForId(CASING_INDEX)};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -16,7 +16,9 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.IIcon;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
import thaumcraft.api.IWarpingGear;
|
||||
|
||||
@@ -56,6 +58,14 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
||||
return "item." + EMT.MOD_ID + ".bauble." + name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par4) {
|
||||
String colourCode = ""+ EnumChatFormatting.DARK_RED;
|
||||
list.add(colourCode+"The Ring whispers to you, promising power. But at what cost? Long-term usage is NOT advised.");
|
||||
list.add(colourCode+"Can RUIN your game if you don't understand what this does. READ THE QUEST!!");
|
||||
super.addInformation(itemStack, player, list, par4);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister ri) {
|
||||
this.icon[0] = ri.registerIcon(EMT.TEXTURE_PATH + ":onering");
|
||||
@@ -164,11 +174,24 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
||||
player.addPotionEffect(new PotionEffect(Potion.wither.id, 100, 4, false));
|
||||
}
|
||||
|
||||
if (corruption >= 300) {
|
||||
if (random.nextInt(100) == 0) {
|
||||
if (corruption >= 300) { //worn more than 5 minutes
|
||||
if (random.nextInt(100) == 0) { //every 100 seconds
|
||||
getItemWarpLevel(stack, true);
|
||||
((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring suddenly starts to glow purple"));
|
||||
}
|
||||
if (random.nextInt(300) == 0) { //randomly every 5 minutes
|
||||
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 1, false); //adds 1 perm warp
|
||||
ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, random.nextInt(1)); //adds 0-1 sticky warp
|
||||
((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple"));
|
||||
}
|
||||
if (corruption >= 3600) { //if you wear it for more than an hour total
|
||||
if (random.nextInt(300) == 0) {
|
||||
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5), false); //adds 5-10 perm warp
|
||||
ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5)); //adds 5-10 sticky warp
|
||||
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 10 + random.nextInt(40), true); //adds 10-50 temp warp, but this is ultra easy to remove
|
||||
((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body resonates with the Ring and suddenly starts to glow purple ominously"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
forgeTag.setInteger(NBT_TAG_MIND_CORRUPTION, ++corruption);
|
||||
|
||||
@@ -475,7 +475,10 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
|
||||
byte f = nbt.getByte("f");
|
||||
|
||||
nbt.setBoolean("isHolding", true);
|
||||
nbt.setByte("f", (byte) (f + 1));
|
||||
if (IC2.keyboard.isSneakKeyDown(player))
|
||||
nbt.setByte("f", (byte) (0));
|
||||
else
|
||||
nbt.setByte("f", (byte) (f + 1));
|
||||
|
||||
if (f > 7) {
|
||||
nbt.setByte("f", (byte) 7);
|
||||
@@ -483,21 +486,23 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
|
||||
} else if (nbt.getBoolean("isHolding")) {
|
||||
byte f = nbt.getByte("f");
|
||||
nbt.setBoolean("isHolding", false);
|
||||
player.motionY = motionY * f;
|
||||
if (!IC2.keyboard.isSneakKeyDown(player)) {
|
||||
player.motionY = motionY * f;
|
||||
|
||||
if (isElectric) {
|
||||
ElectricItem.manager.use(stack, ((motionY * f) * 10) * amount, player);
|
||||
}
|
||||
if (isElectric) {
|
||||
ElectricItem.manager.use(stack, ((motionY * f) * 10) * amount, player);
|
||||
}
|
||||
|
||||
if (player.motionX < 0.5 && player.motionZ < 0.5 && player.motionX > -0.5 && player.motionZ > -0.5) {
|
||||
player.motionX /= motionXZ;
|
||||
player.motionZ /= motionXZ;
|
||||
}
|
||||
if (player.motionX < 0.5 && player.motionZ < 0.5 && player.motionX > -0.5 && player.motionZ > -0.5) {
|
||||
player.motionX /= motionXZ;
|
||||
player.motionZ /= motionXZ;
|
||||
}
|
||||
|
||||
world.playSoundEffect(player.posX, player.posY, player.posZ, "mob.ghast.fireball", 1, 1);
|
||||
world.playSoundEffect(player.posX, player.posY, player.posZ, "mob.ghast.fireball", 1, 1);
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
world.spawnParticle("cloud", player.posX - 1 + (world.rand.nextInt(100) / 50d), player.posY - 1, player.posZ - 1 + (world.rand.nextInt(100) / 50d), 0, -0.5, 0);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
world.spawnParticle("cloud", player.posX - 1 + (world.rand.nextInt(100) / 50d), player.posY - 1, player.posZ - 1 + (world.rand.nextInt(100) / 50d), 0, -0.5, 0);
|
||||
}
|
||||
}
|
||||
|
||||
nbt.setByte("f", (byte) 0);
|
||||
|
||||
@@ -77,21 +77,26 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
||||
if (isJmuping) {
|
||||
byte f = nbtData.getByte("f");
|
||||
nbtData.setBoolean("isHolding", true);
|
||||
nbtData.setByte("f", (byte) (f + 1));
|
||||
if (IC2.keyboard.isSneakKeyDown(player))
|
||||
nbtData.setByte("f", (byte) (0));
|
||||
else
|
||||
nbtData.setByte("f", (byte) (f + 1));
|
||||
if (f > 7)
|
||||
nbtData.setByte("f", (byte) 7);
|
||||
} else if (isHolding) {
|
||||
byte f = nbtData.getByte("f");
|
||||
nbtData.setBoolean("isHolding", false);
|
||||
player.motionY = motionY * f;
|
||||
ElectricItem.manager.use(stack, ((motionY * f) * 10) * amount, player);
|
||||
if (player.motionX < 0.5 && player.motionZ < 0.5 && player.motionX > -0.5 && player.motionZ > -0.5) {
|
||||
player.motionX /= motionXZ;
|
||||
player.motionZ /= motionXZ;
|
||||
}
|
||||
world.playSoundEffect(player.posX, player.posY, player.posZ, "mob.ghast.fireball", 1, 1);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
world.spawnParticle("cloud", player.posX - 1 + (world.rand.nextInt(100) / 50d), player.posY - 1, player.posZ - 1 + (world.rand.nextInt(100) / 50d), 0, -0.5, 0);
|
||||
if (!IC2.keyboard.isSneakKeyDown(player)) {
|
||||
player.motionY = motionY * f;
|
||||
ElectricItem.manager.use(stack, ((motionY * f) * 10) * amount, player);
|
||||
if (player.motionX < 0.5 && player.motionZ < 0.5 && player.motionX > -0.5 && player.motionZ > -0.5) {
|
||||
player.motionX /= motionXZ;
|
||||
player.motionZ /= motionXZ;
|
||||
}
|
||||
world.playSoundEffect(player.posX, player.posY, player.posZ, "mob.ghast.fireball", 1, 1);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
world.spawnParticle("cloud", player.posX - 1 + (world.rand.nextInt(100) / 50d), player.posY - 1, player.posZ - 1 + (world.rand.nextInt(100) / 50d), 0, -0.5, 0);
|
||||
}
|
||||
}
|
||||
nbtData.setByte("f", (byte) 0);
|
||||
}
|
||||
|
||||
@@ -2,13 +2,9 @@ package emt.tile;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -118,7 +114,7 @@ public class TileEntityEtherealMacerator extends TileEntityEMT implements ISided
|
||||
}
|
||||
|
||||
public void updateEntity() {
|
||||
if (this.canSmelt() && isOverLimit(1) == false && isOverLimit(2) == false && isOP() == false) {
|
||||
if (this.canSmelt() && !isOverLimit(1) && !isOverLimit(2) && isAllowed()) {
|
||||
++this.cookTime;
|
||||
this.isOn = true;
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
@@ -226,18 +222,17 @@ public class TileEntityEtherealMacerator extends TileEntityEMT implements ISided
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isOP() {
|
||||
final int cobblestoneId = OreDictionary.getOreID("blockCobble");
|
||||
public boolean isAllowed() {
|
||||
|
||||
if (OreDictionary.getOreID(this.slots[0]) == cobblestoneId || this.slots[0].getItem() == Item.getItemFromBlock(Blocks.sand) || this.slots[0].getItem() == Items.potato || this.slots[0].getItem() == Items.porkchop || this.slots[0].getItem() == Items.beef || this.slots[0].getItem() == Items.chicken || this.slots[0].getItem() == Items.fish
|
||||
|| this.slots[0].getItem() == IC2Items.getItem("coalDust").getItem()
|
||||
|| (OreDictionary.getOreName(OreDictionary.getOreID(this.slots[0])).toLowerCase().contains("dust") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("armour") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("armor") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("helm")
|
||||
|| this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("legging") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("boot") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("chestp") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("pick")
|
||||
|| this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("shovel") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("axe") || this.slots[0].getItem().getUnlocalizedName(this.slots[0]).toLowerCase().contains("pick"))) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
int[] oreDictIDs = OreDictionary.getOreIDs(this.slots[0]);
|
||||
for (int oreDictID : oreDictIDs) {
|
||||
String tName = OreDictionary.getOreName(oreDictID);
|
||||
for (String allowed : EMTConfigHandler.etherealMaceratorWhiteList) {
|
||||
if (tName.indexOf(allowed) == 0) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -96,6 +96,9 @@ public class TileEntityBaseGenerator
|
||||
|
||||
|
||||
public void storeFuel() {
|
||||
if (!side)
|
||||
return;
|
||||
|
||||
if (this.fuel < this.maxfuel) {
|
||||
for (int x = this.xCoord - 4; x < this.xCoord + 4; x++) {
|
||||
for (int y = this.yCoord - 4; y < this.yCoord + 4; y++) {
|
||||
@@ -116,6 +119,12 @@ public class TileEntityBaseGenerator
|
||||
}
|
||||
|
||||
public void fillfrompipe() {
|
||||
if (!side)
|
||||
return;
|
||||
|
||||
if (this.fuel == this.maxfuel)
|
||||
return;
|
||||
|
||||
TileEntity[] te = new TileEntity[ForgeDirection.VALID_DIRECTIONS.length];
|
||||
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
|
||||
te[i] = ThaumcraftApiHelper.getConnectableTile(this.worldObj, this.xCoord, this.yCoord, this.zCoord, ForgeDirection.VALID_DIRECTIONS[i]);
|
||||
@@ -136,31 +145,24 @@ public class TileEntityBaseGenerator
|
||||
}
|
||||
|
||||
public void createEnergy() {
|
||||
if (!side) {
|
||||
if (this.isActive && this.tick < 400) {
|
||||
this.tick += 1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.fuel > 0) {
|
||||
if (this.storage + this.generating / 20.0D / 20.0D < this.maxstorage) {
|
||||
this.isActive = true;
|
||||
if (side) {
|
||||
this.energySource.addEnergy(this.generating / 20.0D / 20.0D);
|
||||
this.storage = ((int) this.energySource.getEnergyStored());
|
||||
}
|
||||
this.tick += 1;
|
||||
if (this.tick == 400) {
|
||||
this.fuel -= 1;
|
||||
this.tick = 0;
|
||||
}
|
||||
} else if (this.storage == this.maxstorage) {
|
||||
this.isActive = false;
|
||||
} else if ((this.storage + this.generating / 20.0D / 20.0D > this.maxstorage)) {
|
||||
this.isActive = true;
|
||||
if (side) {
|
||||
this.energySource.setEnergyStored(this.maxstorage);
|
||||
this.storage = this.maxstorage;
|
||||
}
|
||||
this.energySource.addEnergy(this.generating / 20.0D / 20.0D);
|
||||
this.storage = ((int) this.energySource.getEnergyStored());
|
||||
this.tick += 1;
|
||||
if (this.tick == 400) {
|
||||
this.fuel -= 1;
|
||||
this.tick = 0;
|
||||
}
|
||||
} else {
|
||||
this.isActive = false;
|
||||
}
|
||||
} else {
|
||||
@@ -300,7 +302,7 @@ public class TileEntityBaseGenerator
|
||||
}
|
||||
|
||||
public int getSuctionAmount(ForgeDirection face) {
|
||||
return 128;
|
||||
return this.fuel == this.maxfuel ? 0 : 128;
|
||||
}
|
||||
|
||||
public int takeEssentia(Aspect aspect, int amount, ForgeDirection face) {
|
||||
@@ -331,14 +333,22 @@ public class TileEntityBaseGenerator
|
||||
}
|
||||
|
||||
public void inputintoGTnet() {
|
||||
if (!side)
|
||||
return;
|
||||
|
||||
if (checkForGtTile() && isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits((byte) 0, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkForGtTile() {
|
||||
for (byte i = 0; i < 6; i = (byte) (i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null) {
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public byte getColorization() {
|
||||
|
||||
@@ -118,10 +118,10 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
return 2F;
|
||||
}
|
||||
case AER:
|
||||
case TERRA:
|
||||
case IGNIS: {
|
||||
case TERRA: {
|
||||
return 3F;
|
||||
}
|
||||
case IGNIS:
|
||||
case AQUA: {
|
||||
return 6F;
|
||||
}
|
||||
@@ -169,12 +169,14 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
return 1F;
|
||||
}
|
||||
case IGNIS: {
|
||||
float mult = 1F;
|
||||
|
||||
if (VisNetHandler.drainVis(worldObj, xCoord, yCoord, zCoord, Aspect.FIRE, 10) >= 10)
|
||||
return 3F;
|
||||
else if (this.worldObj.provider.dimensionId == (-1))
|
||||
return 2F;
|
||||
else
|
||||
return 1F;
|
||||
mult *= 3F;
|
||||
if (this.worldObj.provider.dimensionId == (-1))
|
||||
mult *= 2F;
|
||||
|
||||
return mult;
|
||||
}
|
||||
default:
|
||||
return 1f;
|
||||
@@ -379,14 +381,22 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
}
|
||||
|
||||
public void inputintoGTnet() {
|
||||
if (!side)
|
||||
return;
|
||||
|
||||
if (checkForGtTile() && isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits((byte) 0, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkForGtTile() {
|
||||
for (byte i = 0; i < 6; i = (byte) (i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null) {
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public byte getColorization() {
|
||||
|
||||
@@ -5,6 +5,9 @@ import gregtech.api.enums.GT_Values;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* TODO: Need to rewrite...
|
||||
@@ -72,6 +75,7 @@ public class EMTConfigHandler {
|
||||
public static boolean smoke;
|
||||
public static boolean oneRingSpawn;
|
||||
public static boolean removeAmberAndCinnabarMacerating;
|
||||
public static List<String> etherealMaceratorWhiteList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Loot chance
|
||||
@@ -151,11 +155,12 @@ public class EMTConfigHandler {
|
||||
nightVisionOff = config.get(RANDOM, "Disable nightvision helmets", false, "This was added because of mods making you totally blind if using nightvision. For example, enable that when in the Deep Dark.").getBoolean(nightVisionOff);
|
||||
enchanting = config.get(RANDOM, "Enable enchanting tools", false, "Warning: the enchantability is low.").getBoolean(enchanting);
|
||||
smoke = config.get(RANDOM, "Disable smoke effect for boots", false, "This effect only appears when the player isn't on the ground").getBoolean(smoke);
|
||||
oneRingSpawn = config.get(RANDOM, "Disable One Ring in dungeon chests", false, "There is no other way to get this item.").getBoolean(oneRingSpawn);
|
||||
oneRingSpawn = config.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.").getBoolean(oneRingSpawn);
|
||||
chanceTaintedMjolnir = config.get(RANDOM, "Tainted Mjolnir spawning change", 25, "If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
|
||||
chanceOneRing = config.get(RANDOM, "One Ring spawning chance", 15, "If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
|
||||
removeAmberAndCinnabarMacerating = config.get(RANDOM, "Clear Amber/Cinnabar Macerating", true, "This is here because of conflicts between mods that add the same input and different outputs").getBoolean(removeAmberAndCinnabarMacerating);
|
||||
impactOfRain = config.get(RANDOM, "Impact of rain", true, "The impact of rain on all wings").getBoolean(impactOfRain);
|
||||
etherealMaceratorWhiteList.addAll(Arrays.asList(config.get(RANDOM, "White List for Ethereal Processor", new String[]{"ore", "cluster"}, "The allowed ore dictionary prefix for Ethereal Processor.").getStringList()));
|
||||
|
||||
// DEFAULTS - Aer - 15,000 Aqua - 5,000 Ignis - 20,000 Ordo - 16,000 Perditio - 10,000 Terra - 2,000
|
||||
airOutput = config.get(OUTPUTS, "Aer Output", 15000).getDouble(airOutput);
|
||||
@@ -190,7 +195,6 @@ public class EMTConfigHandler {
|
||||
inventoryBaubleProdution = config.get(VALUES, "Inventory Charging Ring production", 32, "Default is 32").getInt();
|
||||
wandChargeFocusCost = config.get(VALUES, "Wand Focus: Wand Charging Cost", 40000, "Default is 40000").getInt();
|
||||
|
||||
|
||||
nanoBootsMinDrop = config.get(VALUES, "Nano Boots of the Traveller minimum drop", 6.0, "The distance allowed to fall without any damage").getDouble(nanoBootsMinDrop);
|
||||
nanoBootsMaxDrop = config.get(VALUES, "Nano Boots of the Traveller maximum healthy drop", 35.0, "Energy amount drained will tripled if player drops more than this amount of blocks").getDouble(nanoBootsMaxDrop);
|
||||
quantumBootsMinDrop = config.get(VALUES, "Quantum Boots of the Traveller minimum drop", 10.0, "The distance allowed to fall without any damage").getDouble(quantumBootsMinDrop);
|
||||
|
||||
@@ -141,7 +141,7 @@ tile.EMT.solar2.tripleearth.name=Earth Infused Triple Compressed Solar Panel
|
||||
#===============Gregtech Compat===============
|
||||
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing
|
||||
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell
|
||||
EMT_GTBLOCK_CASEING.2.name=Iridium Osmiridium Framebox
|
||||
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
||||
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
||||
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell
|
||||
|
||||
Reference in new issue
Block a user