mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Optimisations & Factory energy port
This commit is contained in:
parent
0a8fa40773
commit
888d14440e
@ -271,6 +271,8 @@ item.cell_anti_schrabidium.name=Antischrabidiumzelle
|
||||
item.inf_water.name=Unendlicher Wassertank
|
||||
item.inf_deuterium.name=Unendlicher Deuteriumtank
|
||||
item.inf_tritium.name=Unendlicher Tritiumtank
|
||||
item.inf_coolant.name=Unendlicher Kühlflüssigkeitstank
|
||||
item.inf_sulfur.name=Unendlicher Schwefeltank
|
||||
|
||||
item.canister_empty.name=Leerer Kanister
|
||||
item.canister_fuel.name=Treibstoffkanister
|
||||
@ -616,4 +618,4 @@ item.alloy_shovel.name=Legierungsschaufel
|
||||
item.alloy_hoe.name=Legierungsfeldhacke
|
||||
|
||||
tile.red_cable.name=Rotes Kupferkabel
|
||||
tile.meteor.name=Meteoritenblock
|
||||
tile.block_meteor.name=Meteoritenblock
|
||||
@ -271,6 +271,8 @@ item.cell_anti_schrabidium.name=Antischrabidium Cell
|
||||
item.inf_water.name=Infinite Water Tank
|
||||
item.inf_deuterium.name=Infinite Deuterium Tank
|
||||
item.inf_tritium.name=Infinite Tritium Tank
|
||||
item.inf_coolant.name=Infinite Coolant Tank
|
||||
item.inf_sulfur.name=Infinite Sulfur Tank
|
||||
|
||||
item.canister_empty.name=Empty Canister
|
||||
item.canister_fuel.name=Fuel Canister
|
||||
@ -616,5 +618,5 @@ item.alloy_axe.name=Advanced Alloy Axe
|
||||
item.alloy_shovel.name=Advanced Alloy Shovel
|
||||
item.alloy_hoe.name=Advanced Alloy Hoe
|
||||
|
||||
tile.red_cable.name=Red Cable
|
||||
tile.meteor.name=Meteor Block
|
||||
tile.red_cable.name=Red Copper Cable
|
||||
tile.block_meteor.name=Meteor Block
|
||||
BIN
assets/hbm/textures/blocks/factory_advanced_conductor.png
Normal file
BIN
assets/hbm/textures/blocks/factory_advanced_conductor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 387 B |
BIN
assets/hbm/textures/blocks/factory_titanium_conductor.png
Normal file
BIN
assets/hbm/textures/blocks/factory_titanium_conductor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 386 B |
Binary file not shown.
|
Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 298 KiB |
@ -56,6 +56,16 @@ public class BlockReactor extends Block {
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":block_tungsten");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":fusion_heater_side");
|
||||
}
|
||||
if(this == ModBlocks.factory_titanium_conductor)
|
||||
{
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":factory_titanium_conductor");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":factory_titanium_hull");
|
||||
}
|
||||
if(this == ModBlocks.factory_advanced_conductor)
|
||||
{
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":factory_advanced_conductor");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":factory_advanced_hull");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -23,7 +23,7 @@ public class FusionCore extends BlockContainer {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":block_tungsten");
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":fusion_center_top");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":fusion_core_side");
|
||||
}
|
||||
|
||||
@ -32,4 +32,10 @@ public class FusionCore extends BlockContainer {
|
||||
return new TileEntityFusionMultiblock();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata) {
|
||||
return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : this.blockIcon);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -193,6 +193,7 @@ public class Guide extends Block {
|
||||
pages2.appendTag(new NBTTagString(Library.book213));
|
||||
pages2.appendTag(new NBTTagString(Library.book214));
|
||||
pages2.appendTag(new NBTTagString(Library.book215));
|
||||
pages2.appendTag(new NBTTagString(Library.book216));
|
||||
book2.stackTagCompound.setTag("pages", pages2);
|
||||
player.inventory.addItemStackToInventory(book2);
|
||||
|
||||
|
||||
@ -179,11 +179,13 @@ public class ModBlocks {
|
||||
|
||||
public static Block factory_titanium_hull;
|
||||
public static Block factory_titanium_furnace;
|
||||
public static Block factory_titanium_conductor;
|
||||
public static Block factory_titanium_core;
|
||||
public static final int guiID_factory_titanium = 24;
|
||||
|
||||
public static Block factory_advanced_hull;
|
||||
public static Block factory_advanced_furnace;
|
||||
public static Block factory_advanced_conductor;
|
||||
public static Block factory_advanced_core;
|
||||
public static final int guiID_factory_advanced = 25;
|
||||
|
||||
@ -363,14 +365,16 @@ public class ModBlocks {
|
||||
machine_coal_off = new MachineCoal(false).setBlockName("machine_coal_off").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock);
|
||||
machine_coal_on = new MachineCoal(true).setBlockName("machine_coal_on").setHardness(5.0F).setLightLevel(1.0F).setResistance(10.0F);
|
||||
|
||||
red_wire_coated = new WireCoated(Material.iron).setBlockName("red_wire_coated").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":red_wire_coated");
|
||||
red_wire_coated = new WireCoated(Material.iron).setBlockName("red_wire_coated").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":red_wire_coated");
|
||||
red_cable = new BlockCable(Material.iron).setBlockName("red_cable").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":red_cable_icon");
|
||||
|
||||
factory_titanium_hull = new BlockGeneric(Material.iron).setBlockName("factory_titanium_hull").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_titanium_hull");
|
||||
factory_titanium_furnace = new FactoryHatch(Material.iron).setBlockName("factory_titanium_furnace").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_titanium_furnace");
|
||||
factory_titanium_conductor = new BlockReactor(Material.iron).setBlockName("factory_titanium_conductor").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_titanium_conductor");
|
||||
factory_titanium_core = new FactoryCoreTitanium(Material.iron).setBlockName("factory_titanium_core").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_titanium_core");
|
||||
factory_advanced_hull = new BlockGeneric(Material.iron).setBlockName("factory_advanced_hull").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_advanced_hull");
|
||||
factory_advanced_furnace = new FactoryHatch(Material.iron).setBlockName("factory_advanced_furnace").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_advanced_furnace");
|
||||
factory_advanced_conductor = new BlockReactor(Material.iron).setBlockName("factory_advanced_conductor").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_advanced_conductor");
|
||||
factory_advanced_core = new FactoryCoreAdvanced(Material.iron).setBlockName("factory_advanced_core").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":factory_advanced_core");
|
||||
|
||||
reactor_element = new BlockReactor(Material.iron).setBlockName("reactor_element").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":reactor_element_side");
|
||||
@ -536,8 +540,8 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(machine_coal_off, machine_coal_off.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_coal_on, machine_coal_on.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_generator, machine_generator.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(red_wire_coated, red_wire_coated.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(red_cable, red_cable.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(red_wire_coated, red_wire_coated.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_battery, machine_battery.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_electric_furnace_off, machine_electric_furnace_off.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_electric_furnace_on, machine_electric_furnace_on.getUnlocalizedName());
|
||||
@ -546,9 +550,11 @@ public class ModBlocks {
|
||||
//Industrial Factories
|
||||
GameRegistry.registerBlock(factory_titanium_hull, factory_titanium_hull.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_titanium_furnace, factory_titanium_furnace.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_titanium_conductor, factory_titanium_conductor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_titanium_core, factory_titanium_core.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_advanced_hull, factory_advanced_hull.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_advanced_furnace, factory_advanced_furnace.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_advanced_conductor, factory_advanced_conductor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(factory_advanced_core, factory_advanced_core.getUnlocalizedName());
|
||||
|
||||
//Multiblock Generators
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.IFactory;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
@ -12,7 +13,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventory, IFactory {
|
||||
public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventory, IFactory, IConsumer {
|
||||
|
||||
public int progress = 0;
|
||||
public int power = 0;
|
||||
@ -178,7 +179,7 @@ public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventor
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_conductor &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
|
||||
@ -195,7 +196,7 @@ public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventor
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_conductor &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
|
||||
@ -618,4 +619,19 @@ public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventor
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void setPower(int i) {
|
||||
if(this.slots[22] != null && this.slots[22].getItem() == ModItems.factory_core_advanced)
|
||||
{
|
||||
slots[22].setItemDamage(maxPower - i);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public int getPower() {
|
||||
return power;
|
||||
}
|
||||
@Override
|
||||
public int getMaxPower() {
|
||||
return maxPower;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.IFactory;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
@ -13,7 +14,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityCoreTitanium extends TileEntity implements ISidedInventory, IFactory {
|
||||
public class TileEntityCoreTitanium extends TileEntity implements ISidedInventory, IFactory, IConsumer {
|
||||
|
||||
public int progress = 0;
|
||||
public int power = 0;
|
||||
@ -179,7 +180,7 @@ public class TileEntityCoreTitanium extends TileEntity implements ISidedInventor
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_conductor &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
|
||||
@ -196,7 +197,7 @@ public class TileEntityCoreTitanium extends TileEntity implements ISidedInventor
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_conductor &&
|
||||
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
|
||||
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
|
||||
@ -433,5 +434,20 @@ public class TileEntityCoreTitanium extends TileEntity implements ISidedInventor
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void setPower(int i) {
|
||||
if(this.slots[22] != null && this.slots[22].getItem() == ModItems.factory_core_titanium)
|
||||
{
|
||||
slots[22].setItemDamage(maxPower - i);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public int getPower() {
|
||||
return power;
|
||||
}
|
||||
@Override
|
||||
public int getMaxPower() {
|
||||
return maxPower;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,8 +1,17 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import com.hbm.interfaces.IReactor;
|
||||
import com.hbm.items.ModItems;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.calc.UnionOfTileEntitiesAndBooleans;
|
||||
import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.IReactor;
|
||||
import com.hbm.interfaces.ISource;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -13,7 +22,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityFusionMultiblock extends TileEntity implements ISidedInventory, IReactor {
|
||||
public class TileEntityFusionMultiblock extends TileEntity implements ISidedInventory, IReactor, ISource {
|
||||
|
||||
public int water;
|
||||
public final static int waterMax = 10000000;
|
||||
@ -24,6 +33,8 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
public int power;
|
||||
public final static int maxPower = 10000000;
|
||||
private ItemStack slots[];
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
|
||||
private String customName;
|
||||
|
||||
@ -955,8 +966,16 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
age++;
|
||||
if(age >= 20)
|
||||
{
|
||||
age = 0;
|
||||
}
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
if(age == 9 || age == 19)
|
||||
ffgeuaInit();
|
||||
|
||||
//if(!worldObj.isRemote)
|
||||
{
|
||||
if(slots[0] != null && slots[0].getItem() == Items.water_bucket && this.water + 250000 <= waterMax)
|
||||
{
|
||||
@ -1217,4 +1236,123 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
worldObj.setBlock(x, y, z, Blocks.air);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeua(int x, int y, int z, boolean newTact) {
|
||||
Block block = this.worldObj.getBlock(x, y, z);
|
||||
TileEntity tileentity = this.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConductor)
|
||||
{
|
||||
if(tileentity instanceof TileEntityCable)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityCable)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityCable)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityCable)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityCable)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
if(tileentity instanceof TileEntityWireCoated)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityWireCoated)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityWireCoated)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityWireCoated)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityWireCoated)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConsumer && newTact && !(tileentity instanceof TileEntityMachineBattery && ((TileEntityMachineBattery)tileentity).conducts))
|
||||
{
|
||||
list.add((IConsumer)tileentity);
|
||||
}
|
||||
|
||||
if(!newTact)
|
||||
{
|
||||
int size = list.size();
|
||||
if(size > 0)
|
||||
{
|
||||
int part = this.power / size;
|
||||
for(IConsumer consume : list)
|
||||
{
|
||||
if(consume.getPower() < consume.getMaxPower())
|
||||
{
|
||||
if(consume.getMaxPower() - consume.getPower() >= part)
|
||||
{
|
||||
this.power -= part;
|
||||
consume.setPower(consume.getPower() + part);
|
||||
} else {
|
||||
this.power -= consume.getMaxPower() - consume.getPower();
|
||||
consume.setPower(consume.getMaxPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeuaInit() {
|
||||
ffgeua(this.xCoord, this.yCoord + 3, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord - 3, this.zCoord, getTact());
|
||||
}
|
||||
|
||||
public boolean getTact() {
|
||||
if(age >= 0 && age < 10)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,10 +1,16 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.calc.UnionOfTileEntitiesAndBooleans;
|
||||
import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.ISource;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -25,6 +31,8 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
private static final int[] slots_top = new int[] {0};
|
||||
private static final int[] slots_bottom = new int[] {0, 1};
|
||||
private static final int[] slots_side = new int[] {1};
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
|
||||
private String customName;
|
||||
|
||||
@ -186,7 +194,14 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
public void updateEntity() {
|
||||
if(this.conducts)
|
||||
{
|
||||
//Empty.
|
||||
age++;
|
||||
if(age >= 20)
|
||||
{
|
||||
age = 0;
|
||||
}
|
||||
|
||||
if(age == 9 || age == 19)
|
||||
ffgeuaInit();
|
||||
}
|
||||
|
||||
if(power - 100 >= 0 && slots[1] != null && slots[1].getItem() == ModItems.battery_generic && slots[1].getItemDamage() > 0)
|
||||
@ -265,12 +280,125 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
|
||||
@Override
|
||||
public void ffgeua(int x, int y, int z, boolean newTact) {
|
||||
Block block = this.worldObj.getBlock(x, y, z);
|
||||
TileEntity tileentity = this.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConductor)
|
||||
{
|
||||
if(tileentity instanceof TileEntityCable)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityCable)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityCable)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityCable)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityCable)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
if(tileentity instanceof TileEntityWireCoated)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityWireCoated)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityWireCoated)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityWireCoated)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityWireCoated)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConsumer && newTact && !(tileentity instanceof TileEntityMachineBattery && ((TileEntityMachineBattery)tileentity).conducts))
|
||||
{
|
||||
list.add((IConsumer)tileentity);
|
||||
}
|
||||
|
||||
if(!newTact)
|
||||
{
|
||||
int size = list.size();
|
||||
if(size > 0)
|
||||
{
|
||||
int part = this.power / size;
|
||||
for(IConsumer consume : list)
|
||||
{
|
||||
if(consume.getPower() < consume.getMaxPower())
|
||||
{
|
||||
if(consume.getMaxPower() - consume.getPower() >= part)
|
||||
{
|
||||
this.power -= part;
|
||||
consume.setPower(consume.getPower() + part);
|
||||
} else {
|
||||
this.power -= consume.getMaxPower() - consume.getPower();
|
||||
consume.setPower(consume.getMaxPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeuaInit() {
|
||||
ffgeua(this.xCoord, this.yCoord + 1, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord - 1, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord - 1, this.yCoord, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord + 1, this.yCoord, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord, this.zCoord - 1, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord, this.zCoord + 1, getTact());
|
||||
}
|
||||
|
||||
public boolean getTact() {
|
||||
if(age >= 0 && age < 10)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -354,7 +355,26 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
|
||||
@Override
|
||||
public void ffgeua(int x, int y, int z, boolean newTact) {
|
||||
Block block = this.worldObj.getBlock(x, y, z);
|
||||
TileEntity tileentity = this.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConductor)
|
||||
{
|
||||
if(tileentity instanceof TileEntityCable)
|
||||
@ -407,10 +427,34 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
}
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConsumer && newTact)
|
||||
if(tileentity instanceof IConsumer && newTact && !(tileentity instanceof TileEntityMachineBattery && !((TileEntityMachineBattery)tileentity).conducts))
|
||||
{
|
||||
list.add((IConsumer)tileentity);
|
||||
}
|
||||
|
||||
if(!newTact)
|
||||
{
|
||||
int size = list.size();
|
||||
if(size > 0)
|
||||
{
|
||||
int part = this.power / size;
|
||||
for(IConsumer consume : list)
|
||||
{
|
||||
if(consume.getPower() < consume.getMaxPower())
|
||||
{
|
||||
if(consume.getMaxPower() - consume.getPower() >= part)
|
||||
{
|
||||
this.power -= part;
|
||||
consume.setPower(consume.getPower() + part);
|
||||
} else {
|
||||
this.power -= consume.getMaxPower() - consume.getPower();
|
||||
consume.setPower(consume.getMaxPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1,13 +1,19 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.calc.UnionOfTileEntitiesAndBooleans;
|
||||
import com.hbm.explosion.ExplosionNukeGeneric;
|
||||
import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.ISource;
|
||||
import com.hbm.items.ItemFuelRod;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -30,6 +36,8 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
public int power;
|
||||
public final int powerMax = 100000;
|
||||
public boolean isLoaded = false;
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
|
||||
private static final int[] slots_top = new int[] {};
|
||||
private static final int[] slots_bottom = new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
|
||||
@ -230,7 +238,16 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
age++;
|
||||
if(age >= 20)
|
||||
{
|
||||
age = 0;
|
||||
}
|
||||
|
||||
if(age == 9 || age == 19)
|
||||
ffgeuaInit();
|
||||
|
||||
//if(!worldObj.isRemote)
|
||||
{
|
||||
if(slots[9] != null && slots[9].getItem() == Items.water_bucket && this.water + 250000 <= waterMax)
|
||||
{
|
||||
@ -567,11 +584,124 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
|
||||
@Override
|
||||
public void ffgeua(int x, int y, int z, boolean newTact) {
|
||||
Block block = this.worldObj.getBlock(x, y, z);
|
||||
TileEntity tileentity = this.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConductor)
|
||||
{
|
||||
if(tileentity instanceof TileEntityCable)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityCable)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityCable)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityCable)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityCable)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
if(tileentity instanceof TileEntityWireCoated)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityWireCoated)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityWireCoated)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityWireCoated)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityWireCoated)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConsumer && newTact && !(tileentity instanceof TileEntityMachineBattery && ((TileEntityMachineBattery)tileentity).conducts))
|
||||
{
|
||||
list.add((IConsumer)tileentity);
|
||||
}
|
||||
|
||||
if(!newTact)
|
||||
{
|
||||
int size = list.size();
|
||||
if(size > 0)
|
||||
{
|
||||
int part = this.power / size;
|
||||
for(IConsumer consume : list)
|
||||
{
|
||||
if(consume.getPower() < consume.getMaxPower())
|
||||
{
|
||||
if(consume.getMaxPower() - consume.getPower() >= part)
|
||||
{
|
||||
this.power -= part;
|
||||
consume.setPower(consume.getPower() + part);
|
||||
} else {
|
||||
this.power -= consume.getMaxPower() - consume.getPower();
|
||||
consume.setPower(consume.getMaxPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeuaInit() {
|
||||
ffgeua(this.xCoord, this.yCoord + 1, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord - 1, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord - 1, this.yCoord, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord + 1, this.yCoord, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord, this.zCoord - 1, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord, this.zCoord + 1, getTact());
|
||||
}
|
||||
|
||||
public boolean getTact() {
|
||||
if(age >= 0 && age < 10)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -1,19 +1,25 @@
|
||||
package com.hbm.blocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.calc.UnionOfTileEntitiesAndBooleans;
|
||||
import com.hbm.entity.EntityNuclearCreeper;
|
||||
import com.hbm.entity.EntityNukeCloudSmall;
|
||||
import com.hbm.entity.EntityNukeExplosionAdvanced;
|
||||
import com.hbm.explosion.ExplosionNukeGeneric;
|
||||
import com.hbm.explosion.ExplosionParticle;
|
||||
import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.interfaces.IReactor;
|
||||
import com.hbm.interfaces.ISource;
|
||||
import com.hbm.items.ItemFuelRod;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
@ -34,7 +40,7 @@ import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityReactorMultiblock extends TileEntity implements ISidedInventory, IReactor {
|
||||
public class TileEntityReactorMultiblock extends TileEntity implements ISidedInventory, IReactor, ISource {
|
||||
|
||||
public int water;
|
||||
public final static int waterMax = 10000000;
|
||||
@ -45,6 +51,8 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
public int power;
|
||||
public final static int maxPower = 1000000;
|
||||
private ItemStack slots[];
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
|
||||
public boolean isLoaded = false;
|
||||
|
||||
@ -210,8 +218,16 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
public void updateEntity() {
|
||||
if(isStructureValid(worldObj))
|
||||
{
|
||||
age++;
|
||||
if(age >= 20)
|
||||
{
|
||||
age = 0;
|
||||
}
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
if(age == 9 || age == 19)
|
||||
ffgeuaInit();
|
||||
|
||||
//if(!worldObj.isRemote)
|
||||
{
|
||||
if(slots[30] != null && slots[30].getItem() == Items.water_bucket && this.water + 250000 <= waterMax)
|
||||
{
|
||||
@ -763,4 +779,123 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
this.worldObj.spawnEntityInWorld(explosion);
|
||||
ExplosionParticle.spawnMush(this.worldObj, (int)this.xCoord, (int)this.yCoord - 3, (int)this.zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeua(int x, int y, int z, boolean newTact) {
|
||||
Block block = this.worldObj.getBlock(x, y, z);
|
||||
TileEntity tileentity = this.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_titanium_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_titanium_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y + 1, z);
|
||||
}
|
||||
if(block == ModBlocks.factory_advanced_conductor && this.worldObj.getBlock(x, y - 1, z) == ModBlocks.factory_advanced_core)
|
||||
{
|
||||
tileentity = this.worldObj.getTileEntity(x, y - 1, z);
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConductor)
|
||||
{
|
||||
if(tileentity instanceof TileEntityCable)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityCable)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityCable)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityCable)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityCable)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityCable)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
if(tileentity instanceof TileEntityWireCoated)
|
||||
{
|
||||
if(Library.checkUnionList(((TileEntityWireCoated)tileentity).uoteab, this))
|
||||
{
|
||||
for(int i = 0; i < ((TileEntityWireCoated)tileentity).uoteab.size(); i++)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).source == this)
|
||||
{
|
||||
if(((TileEntityWireCoated)tileentity).uoteab.get(i).ticked != newTact)
|
||||
{
|
||||
((TileEntityWireCoated)tileentity).uoteab.get(i).ticked = newTact;
|
||||
ffgeua(x, y + 1, z, getTact());
|
||||
ffgeua(x, y - 1, z, getTact());
|
||||
ffgeua(x - 1, y, z, getTact());
|
||||
ffgeua(x + 1, y, z, getTact());
|
||||
ffgeua(x, y, z - 1, getTact());
|
||||
ffgeua(x, y, z + 1, getTact());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
((TileEntityWireCoated)tileentity).uoteab.add(new UnionOfTileEntitiesAndBooleans(this, newTact));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(tileentity instanceof IConsumer && newTact && !(tileentity instanceof TileEntityMachineBattery && !((TileEntityMachineBattery)tileentity).conducts))
|
||||
{
|
||||
list.add((IConsumer)tileentity);
|
||||
}
|
||||
|
||||
if(!newTact)
|
||||
{
|
||||
int size = list.size();
|
||||
if(size > 0)
|
||||
{
|
||||
int part = this.power / size;
|
||||
for(IConsumer consume : list)
|
||||
{
|
||||
if(consume.getPower() < consume.getMaxPower())
|
||||
{
|
||||
if(consume.getMaxPower() - consume.getPower() >= part)
|
||||
{
|
||||
this.power -= part;
|
||||
consume.setPower(consume.getPower() + part);
|
||||
} else {
|
||||
this.power -= consume.getMaxPower() - consume.getPower();
|
||||
consume.setPower(consume.getMaxPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ffgeuaInit() {
|
||||
ffgeua(this.xCoord, this.yCoord + 2, this.zCoord, getTact());
|
||||
ffgeua(this.xCoord, this.yCoord - 2, this.zCoord, getTact());
|
||||
}
|
||||
|
||||
public boolean getTact() {
|
||||
if(age >= 0 && age < 10)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -233,7 +233,8 @@ public class ExplosionNukeGeneric {
|
||||
world.getBlock(x, y, z) == Blocks.wooden_button ||
|
||||
world.getBlock(x, y, z) == Blocks.stone_button ||
|
||||
world.getBlock(x, y, z) == Blocks.lever ||
|
||||
world.getBlock(x, y, z) == Blocks.deadbush)
|
||||
world.getBlock(x, y, z) == Blocks.deadbush ||
|
||||
world.getBlock(x, y, z) == ModBlocks.red_cable)
|
||||
{
|
||||
world.setBlock(x, y, z, Blocks.air);
|
||||
}
|
||||
|
||||
@ -74,6 +74,7 @@ public class MachineRecipes {
|
||||
ItemStack[] test = new ItemStack[] {new ItemStack(Items.apple, 3), new ItemStack(Items.leather, 1), new ItemStack(Items.sugar, 3), new ItemStack(Items.blaze_powder, 2)};
|
||||
ItemStack[] euphemium = new ItemStack[] {new ItemStack(ModItems.nugget_euphemium, 3), null, null, new ItemStack(ModItems.rod_quad_empty, 1)};
|
||||
ItemStack[] schrabidium = new ItemStack[] {new ItemStack(ModItems.ingot_schrabidium, 1), new ItemStack(ModItems.sulfur, 2), null, new ItemStack(ModItems.cell_empty, 1)};
|
||||
ItemStack[] lithium = new ItemStack[] {new ItemStack(ModItems.lithium, 2), null, null, null};
|
||||
|
||||
ItemStack[] uran1 = new ItemStack[] {new ItemStack(ModItems.nugget_u235, 1), new ItemStack(ModItems.nugget_u238, 3), new ItemStack(ModItems.nugget_pu239, 2), new ItemStack(ModItems.rod_waste, 1)};
|
||||
ItemStack[] uran2 = new ItemStack[] {new ItemStack(ModItems.nugget_u235, 2), new ItemStack(ModItems.nugget_u238, 6), new ItemStack(ModItems.nugget_pu239, 4), new ItemStack(ModItems.rod_dual_waste, 1)};
|
||||
@ -173,6 +174,11 @@ public class MachineRecipes {
|
||||
return schrabidium3;
|
||||
}
|
||||
|
||||
if(item == item.getItemFromBlock(Blocks.cobblestone) || item == item.getItemFromBlock(Blocks.stone))
|
||||
{
|
||||
return lithium;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -307,6 +313,21 @@ public class MachineRecipes {
|
||||
return new ItemStack(ModItems.rod_quad_euphemium, 1);
|
||||
}
|
||||
|
||||
if(item == ModItems.rod_lithium)
|
||||
{
|
||||
return new ItemStack(ModItems.rod_tritium, 1);
|
||||
}
|
||||
|
||||
if(item == ModItems.rod_dual_lithium)
|
||||
{
|
||||
return new ItemStack(ModItems.rod_dual_tritium, 1);
|
||||
}
|
||||
|
||||
if(item == ModItems.rod_quad_lithium)
|
||||
{
|
||||
return new ItemStack(ModItems.rod_quad_tritium, 1);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -138,6 +138,22 @@ public class HbmChestContents {
|
||||
new WeightedRandomChestContent(ModItems.fuel_tank_medium, 0, 1, 1, 5),
|
||||
new WeightedRandomChestContent(ModItems.fuel_tank_small, 0, 1, 1, 5)};
|
||||
|
||||
private static WeightedRandomChestContent[] spaceship = new WeightedRandomChestContent[]
|
||||
{new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 5),
|
||||
new WeightedRandomChestContent(ModItems.ingot_advanced_alloy, 0, 2, 16, 5),
|
||||
new WeightedRandomChestContent(ModItems.wire_advanced_alloy, 0, 8, 32, 5),
|
||||
new WeightedRandomChestContent(ModItems.coil_advanced_alloy, 0, 2, 16, 5),
|
||||
new WeightedRandomChestContent(ModItems.cell_deuterium, 0, 1, 8, 5),
|
||||
new WeightedRandomChestContent(ModItems.cell_tritium, 0, 1, 8, 5),
|
||||
new WeightedRandomChestContent(ModItems.cell_antimatter, 0, 1, 4, 5),
|
||||
new WeightedRandomChestContent(ModItems.cell_anti_schrabidium, 0, 1, 2, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.fusion_conductor), 0, 4, 8, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.fusion_heater), 0, 1, 6, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.reactor_element), 0, 1, 2, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.block_tungsten), 0, 8, 32, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.red_wire_coated), 0, 4, 16, 5),
|
||||
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.red_cable), 0, 8, 32, 5)};
|
||||
|
||||
/**
|
||||
* @param i
|
||||
* @return WeightedRandomChestContent array with custom loot
|
||||
@ -149,6 +165,7 @@ public class HbmChestContents {
|
||||
* case 5: nuclear loot (U235 and Pu239 nuggets and rods, fuel rods)
|
||||
* case 6: vertibrid loot (T45 power armor, fusion cores, circuits, nuclear material)
|
||||
* case 7: missile loot (Missiles, designators, missile parts)
|
||||
* case 8: spaceship loot (reactor elements, super conductors)
|
||||
**/
|
||||
|
||||
public static WeightedRandomChestContent[] getLoot(int i)
|
||||
@ -169,6 +186,8 @@ public class HbmChestContents {
|
||||
return vertibird;
|
||||
case 7:
|
||||
return missile;
|
||||
case 8:
|
||||
return spaceship;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
@ -14,6 +14,7 @@ import com.hbm.world.Radio01;
|
||||
import com.hbm.world.Relay;
|
||||
import com.hbm.world.Satellite;
|
||||
import com.hbm.world.Silo;
|
||||
import com.hbm.world.Spaceship;
|
||||
import com.hbm.world.Vertibird;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
@ -273,6 +274,15 @@ public class HbmWorldGen implements IWorldGenerator {
|
||||
new Dud().generate(world, rand, x, y, z);
|
||||
}
|
||||
|
||||
if(rand.nextInt(1000) == 0)
|
||||
{
|
||||
int x = i + rand.nextInt(16);
|
||||
int z = j + rand.nextInt(16);
|
||||
int y = world.getHeightValue(x, z);
|
||||
|
||||
new Spaceship().generate(world, rand, x, y, z);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void generateNether(World world, Random rand, int i, int j) {
|
||||
|
||||
@ -52,7 +52,8 @@ public class Library {
|
||||
public static String book212 = "§lElectric Furnace§r\nThe electric furnace works like a normal furnace, but uses electricity instead of fuel items. It can be powered either with wires or with battery items.";
|
||||
public static String book213 = "§lDeuterium Extractor§r\nThis machine needs electricity, water, sulfur and empty cells to extract deuterium from the water. Water will deplete much faster than sulfur.";
|
||||
public static String book214 = "§lFactories§r\nFactories are big 3x3x3 furnaces on steroids. Depending on what type you use, it can smelt 2 or 4 items at the same time, while having nine additional in and output slots!";
|
||||
public static String book215 = "§lFactory Schematics§r\nX - Factory Casing\n# - Factory Hatch\nO - Factory Core\n\nXXX X#X XXX\nXXX #O# XXX\nXXX X#X XXX";
|
||||
public static String book215 = "§lLarge Nuclear Reactor§r\nThese big machines work like regular nuclear reactors, but can store much more energy, water, coolant and up to 30 slots of fuel! Be sure to protect it with a concrete shell, or else it will emit deadly doses of radiation.";
|
||||
public static String book216 = "§lFusion Reactor§r\nHarness the mighty power of the sun with this high-tech machinery! It will not present any danger as it can not explode or radiate, unlike other reactors. It needs deuterium, tritium, a fuse and four energy cores to start the fusion process.";
|
||||
|
||||
public static String book31 = "§lBombs§r\nThis mod also features many different bombs, some of them work like regular TNT, others are nukes and need additional items to ignite.";
|
||||
public static String book32 = "§lThe Gadget§r\nThe Gadget was the first functional nuclear explosive ever built. It needs four special propellants, a plutonium core and a cable drum. It's crater has a radius up to 150 meters.";
|
||||
@ -184,7 +185,9 @@ public class Library {
|
||||
tileentity instanceof IConsumer ||
|
||||
tileentity instanceof ISource)) ||
|
||||
world.getBlock(x, y, z) == ModBlocks.fusion_center ||
|
||||
world.getBlock(x, y, z) == ModBlocks.reactor_conductor)
|
||||
world.getBlock(x, y, z) == ModBlocks.reactor_conductor ||
|
||||
world.getBlock(x, y, z) == ModBlocks.factory_titanium_conductor ||
|
||||
world.getBlock(x, y, z) == ModBlocks.factory_advanced_conductor)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -30,12 +30,14 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.plate_copper, 16), new Object[] { "TT", "TT", 'T', ModItems.ingot_copper});
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.plate_schrabidium, 16), new Object[] { "TT", "TT", 'T', ModItems.ingot_schrabidium});
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.plate_gold, 16), new Object[] { "TT", "TT", 'T', Items.gold_ingot});
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.plate_advanced_alloy, 16), new Object[] { "TT", "TT", 'T', ModItems.ingot_advanced_alloy});
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_red_copper, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_red_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_tungsten, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_tungsten });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_aluminium, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_aluminium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_copper, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_gold, 6), new Object[] { "CCC", 'S', Items.string, 'C', Items.gold_ingot });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_schrabidium, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_schrabidium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.wire_advanced_alloy, 6), new Object[] { "CCC", 'S', Items.string, 'C', ModItems.ingot_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.hazmat_cloth, 4), new Object[] { "LN", "LN", 'L', Items.leather, 'N', ModItems.nugget_lead });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.circuit_aluminium, 1), new Object[] { "RAR", "ASA", "RAR", 'S', ModItems.plate_steel, 'R', Items.redstone, 'A', ModItems.wire_aluminium });
|
||||
@ -162,6 +164,13 @@ public class CraftingManager {
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_dual_mox_fuel, 1), new Object[] { ModItems.rod_dual_empty, ModItems.ingot_mox_fuel, ModItems.nugget_mox_fuel, ModItems.nugget_mox_fuel, ModItems.nugget_mox_fuel });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_dual_schrabidium_fuel, 1), new Object[] { ModItems.rod_dual_empty, ModItems.ingot_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel });
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_lithium, 1), new Object[] { ModItems.rod_empty, ModItems.lithium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_dual_lithium, 1), new Object[] { ModItems.rod_dual_empty, ModItems.lithium, ModItems.lithium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_quad_lithium, 1), new Object[] { ModItems.rod_quad_empty, ModItems.lithium, ModItems.lithium, ModItems.lithium, ModItems.lithium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.cell_tritium, 1), new Object[] { ModItems.rod_tritium, ModItems.cell_empty });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.cell_tritium, 2), new Object[] { ModItems.rod_dual_tritium, ModItems.cell_empty, ModItems.cell_empty });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.cell_tritium, 4), new Object[] { ModItems.rod_quad_tritium, ModItems.cell_empty, ModItems.cell_empty, ModItems.cell_empty, ModItems.cell_empty });
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_empty, 4), new Object[] { ModItems.rod_quad_empty });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_quad_empty, 1), new Object[] { ModItems.rod_empty, ModItems.rod_empty, ModItems.rod_empty, ModItems.rod_empty });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_quad_empty, 1), new Object[] { ModItems.rod_dual_empty, ModItems.rod_dual_empty });
|
||||
@ -256,6 +265,7 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.pellet_rtg, 1), new Object[] { "IPI", "PPP", "IPI", 'I', ModItems.plate_iron, 'P', ModItems.nugget_pu238 });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.coil_copper, 1), new Object[] { "WWW", "WIW", "WWW", 'W', ModItems.wire_red_copper, 'I', Items.iron_ingot });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.coil_advanced_alloy, 1), new Object[] { "WWW", "WIW", "WWW", 'W', ModItems.wire_advanced_alloy, 'I', Items.iron_ingot });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.coil_copper_torus, 2), new Object[] { "PCP", "C C", "PCP", 'P', ModItems.plate_iron, 'C', ModItems.coil_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.coil_tungsten, 1), new Object[] { "WWW", "WIW", "WWW", 'W', ModItems.wire_tungsten, 'I', Items.iron_ingot });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.tank_steel, 1), new Object[] { "STS", "S S", "STS", 'S', ModItems.plate_steel, 'T', ModItems.plate_titanium });
|
||||
@ -333,7 +343,8 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_rtg_furnace_off), 1), new Object[] { "NNN", "NFN", "UUU", 'N', ModItems.neutron_reflector, 'U', ModItems.rtg_unit, 'F', Item.getItemFromBlock(Blocks.furnace) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_electric_furnace_off), 1), new Object[] { "BBB", "WFW", "RRR", 'B', ModItems.ingot_beryllium, 'R', ModItems.coil_tungsten, 'W', ModItems.wire_red_copper, 'F', Item.getItemFromBlock(Blocks.furnace) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_generator), 1), new Object[] { "SLS", "LCL", "SLS", 'C', ModItems.circuit_red_copper, 'L', ModItems.rod_quad_lead, 'S', ModItems.ingot_steel });
|
||||
//GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 16), new Object[] { "WRW", "RIR", "WRW", 'W', ModItems.ingot_tungsten, 'I', ModItems.ingot_red_copper, 'R', ModItems.wire_red_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 16), new Object[] { "WRW", "RIR", "WRW", 'W', ModItems.ingot_tungsten, 'I', ModItems.ingot_red_copper, 'R', ModItems.wire_red_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.red_cable), 16), new Object[] { "WRW", "RIR", "WRW", 'W', ModItems.plate_steel, 'I', ModItems.ingot_red_copper, 'R', ModItems.wire_red_copper });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_deuterium), 1), new Object[] { "TIT", "RFR", "CCC", 'T', ModItems.tank_steel, 'I', ModItems.ingot_titanium, 'R', ModItems.wire_red_copper, 'F', Item.getItemFromBlock(ModBlocks.machine_difurnace_off), 'C', ModItems.coil_tungsten });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_battery), 1), new Object[] { "TST", "RIR", "TLT", 'T', ModItems.ingot_tungsten, 'I', ModItems.ingot_red_copper, 'R', ModItems.wire_red_copper, 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_battery), 1), new Object[] { "TLT", "RIR", "TST", 'T', ModItems.ingot_tungsten, 'I', ModItems.ingot_red_copper, 'R', ModItems.wire_red_copper, 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead) });
|
||||
@ -349,6 +360,19 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.factory_core_advanced, 1, ModItems.factory_core_advanced.getMaxDamage()), new Object[] { "BLB", "SHS", "BLB", 'B', new ItemStack(ModItems.battery_advanced, 1, ModItems.battery_advanced.getMaxDamage()), 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead), 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.factory_core_advanced, 1, ModItems.factory_core_advanced.getMaxDamage()), new Object[] { "BSB", "LHL", "BSB", 'B', new ItemStack(ModItems.battery_advanced, 1, ModItems.battery_advanced.getMaxDamage()), 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead), 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull) });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_element), 1), new Object[] { "SCS", "CSC", "SCS", 'S', ModItems.ingot_steel, 'C', ModItems.rod_quad_empty });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_control), 1), new Object[] { "SLS", "SLS", "SLS", 'S', ModItems.ingot_steel, 'L', ModItems.ingot_lead });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_conductor), 1), new Object[] { "SWS", "FFF", "SWS", 'S', ModItems.ingot_steel, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'F', ModItems.fuse });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_computer), 1), new Object[] { "CWC", "CRC", "CWC", 'C', ModItems.circuit_gold, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'R', Item.getItemFromBlock(ModBlocks.reactor_conductor) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_hatch), 1), new Object[] { "BBB", "BFB", "BBB", 'B', Item.getItemFromBlock(ModBlocks.brick_concrete), 'F', Item.getItemFromBlock(Blocks.furnace) });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_conductor), 1), new Object[] { "SSS", "CCC", "SSS", 'S', ModItems.plate_steel, 'C', ModItems.coil_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_center), 1), new Object[] { "TMT", "TWT", "TMT", 'T', ModItems.ingot_tungsten, 'M', Item.getItemFromBlock(ModBlocks.fusion_conductor), 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_motor), 1), new Object[] { "MTM", "TTT", "MTM", 'T', ModItems.ingot_titanium, 'M', ModItems.motor });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_heater), 1), new Object[] { "TTT", "CCC", "TTT", 'T', ModItems.ingot_tungsten, 'C', ModItems.coil_tungsten });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_hatch), 1), new Object[] { "TTT", "TFT", "TTT", 'T', Item.getItemFromBlock(ModBlocks.fusion_heater), 'F', Item.getItemFromBlock(Blocks.furnace) });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.fusion_core), 1), new Object[] { "CWC", "CRC", "CWC", 'C', ModItems.circuit_gold, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'E', Item.getItemFromBlock(ModBlocks.fusion_center) });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.brick_light), 8), new Object[] { "FBF", "BFB", "FBF", 'F', Blocks.fence, 'B', Blocks.brick_block });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.brick_concrete), 8), new Object[] { "FBF", "BFB", "FBF", 'F', Blocks.iron_bars, 'B', Blocks.stone });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.brick_obsidian), 8), new Object[] { "FBF", "BFB", "FBF", 'F', Blocks.iron_bars, 'B', Blocks.obsidian });
|
||||
@ -478,6 +502,8 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.battery_advanced, 1, 200), new Object[] { " A ", "PLP", "PSP", 'A', ModItems.wire_red_copper, 'P', ModItems.plate_copper, 'S', ModItems.sulfur, 'L', ModItems.powder_lead });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.battery_schrabidium, 1, 1000), new Object[] { " A ", "PNP", "PSP", 'A', ModItems.wire_schrabidium, 'P', ModItems.plate_schrabidium, 'S', ModItems.powder_schrabidium, 'N', ModItems.powder_neptunium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.battery_schrabidium, 1, 1000), new Object[] { " A ", "PSP", "PNP", 'A', ModItems.wire_schrabidium, 'P', ModItems.plate_schrabidium, 'S', ModItems.powder_schrabidium, 'N', ModItems.powder_neptunium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.energy_core, 1), new Object[] { "PCW", "TRD", "PCW", 'P', ModItems.plate_advanced_alloy, 'C', ModItems.coil_advanced_alloy, 'W', ModItems.wire_advanced_alloy, 'R', ModItems.cell_tritium, 'D', ModItems.cell_deuterium, 'T', ModItems.ingot_tungsten });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.energy_core, 1), new Object[] { "PCW", "TDR", "PCW", 'P', ModItems.plate_advanced_alloy, 'C', ModItems.coil_advanced_alloy, 'W', ModItems.wire_advanced_alloy, 'R', ModItems.cell_tritium, 'D', ModItems.cell_deuterium, 'T', ModItems.ingot_tungsten });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.schrabidium_helmet, 1), new Object[] { "EEE", "E E", 'E', ModItems.ingot_schrabidium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.schrabidium_plate, 1), new Object[] { "E E", "EEE", "EEE", 'E', ModItems.ingot_schrabidium });
|
||||
@ -488,6 +514,33 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.schrabidium_axe, 1), new Object[] { "II", "IS", " S", 'I', ModItems.ingot_schrabidium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.schrabidium_shovel, 1), new Object[] { "I", "S", "S", 'I', ModItems.ingot_schrabidium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.schrabidium_hoe, 1), new Object[] { "II", " S", " S", 'I', ModItems.ingot_schrabidium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_helmet, 1), new Object[] { "EEE", "E E", 'E', ModItems.ingot_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_plate, 1), new Object[] { "E E", "EEE", "EEE", 'E', ModItems.ingot_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_legs, 1), new Object[] { "EEE", "E E", "E E", 'E', ModItems.ingot_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_boots, 1), new Object[] { "E E", "E E", 'E', ModItems.ingot_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_sword, 1), new Object[] { "I", "I", "S", 'I', ModItems.ingot_steel, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_pickaxe, 1), new Object[] { "III", " S ", " S ", 'I', ModItems.ingot_steel, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_axe, 1), new Object[] { "II", "IS", " S", 'I', ModItems.ingot_steel, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_shovel, 1), new Object[] { "I", "S", "S", 'I', ModItems.ingot_steel, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.steel_hoe, 1), new Object[] { "II", " S", " S", 'I', ModItems.ingot_steel, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_helmet, 1), new Object[] { "EEE", "E E", 'E', ModItems.ingot_titanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_plate, 1), new Object[] { "E E", "EEE", "EEE", 'E', ModItems.ingot_titanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_legs, 1), new Object[] { "EEE", "E E", "E E", 'E', ModItems.ingot_titanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_boots, 1), new Object[] { "E E", "E E", 'E', ModItems.ingot_titanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_sword, 1), new Object[] { "I", "I", "S", 'I', ModItems.ingot_titanium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_pickaxe, 1), new Object[] { "III", " S ", " S ", 'I', ModItems.ingot_titanium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_axe, 1), new Object[] { "II", "IS", " S", 'I', ModItems.ingot_titanium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_shovel, 1), new Object[] { "I", "S", "S", 'I', ModItems.ingot_titanium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.titanium_hoe, 1), new Object[] { "II", " S", " S", 'I', ModItems.ingot_titanium, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_helmet, 1), new Object[] { "EEE", "E E", 'E', ModItems.ingot_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_plate, 1), new Object[] { "E E", "EEE", "EEE", 'E', ModItems.ingot_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_legs, 1), new Object[] { "EEE", "E E", "E E", 'E', ModItems.ingot_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_boots, 1), new Object[] { "E E", "E E", 'E', ModItems.ingot_advanced_alloy });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_sword, 1), new Object[] { "I", "I", "S", 'I', ModItems.ingot_advanced_alloy, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_pickaxe, 1), new Object[] { "III", " S ", " S ", 'I', ModItems.ingot_advanced_alloy, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_axe, 1), new Object[] { "II", "IS", " S", 'I', ModItems.ingot_advanced_alloy, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_shovel, 1), new Object[] { "I", "S", "S", 'I', ModItems.ingot_advanced_alloy, 'S', Items.stick });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.alloy_hoe, 1), new Object[] { "II", " S", " S", 'I', ModItems.ingot_advanced_alloy, 'S', Items.stick });
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.chainsaw, 1), new Object[] { "TTG", "SSM", 'T', ModItems.plate_iron, 'S', ModItems.plate_steel, 'M', ModItems.motor, 'G', ModItems.circuit_gold });
|
||||
|
||||
|
||||
1120
com/hbm/world/Spaceship.java
Normal file
1120
com/hbm/world/Spaceship.java
Normal file
File diff suppressed because it is too large
Load Diff
454
com/hbm/world/Spaceship2.java
Normal file
454
com/hbm/world/Spaceship2.java
Normal file
@ -0,0 +1,454 @@
|
||||
//Schematic to java Structure by jajo_11 | inspired by "MITHION'S.SCHEMATIC TO JAVA CONVERTINGTOOL"
|
||||
|
||||
package com.hbm.world;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.main.MainRegistry;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class Spaceship2
|
||||
{
|
||||
Block Block1 = ModBlocks.block_tungsten;
|
||||
Block Block2 = ModBlocks.fusion_conductor;
|
||||
Block Block3 = ModBlocks.block_steel;
|
||||
Block Block4 = ModBlocks.fusion_heater;
|
||||
Block Block5 = ModBlocks.block_meteor;
|
||||
Block Block6 = ModBlocks.reactor_element;
|
||||
Block Block7 = ModBlocks.fusion_core;
|
||||
Block Block8 = ModBlocks.fusion_hatch;
|
||||
Block Block9 = ModBlocks.reinforced_light;
|
||||
Block Block10 = ModBlocks.reinforced_glass;
|
||||
|
||||
public boolean generate_r00(World world, Random rand, int x, int y, int z)
|
||||
{
|
||||
world.setBlock(x + 9, y + 0, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 23, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 24, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 24, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 24, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 24, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 24, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 24, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 24, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 24, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 24, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 25, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 25, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 25, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 25, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 25, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 25, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 25, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 25, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 25, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 26, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 26, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 26, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 26, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 26, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 26, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 26, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 26, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 26, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 27, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 27, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 27, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 27, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 27, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 27, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 27, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 27, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 27, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 28, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 28, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 28, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 28, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 28, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 28, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 28, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 28, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 28, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 29, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 29, Block3, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 11, y + 0, z + 30, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 10, y + 0, z + 31, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 32, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 32, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 32, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 32, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 33, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 33, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 33, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 33, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 34, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 34, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 34, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 34, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 35, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 35, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 35, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 35, Block3, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 36, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 36, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 36, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 36, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 37, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 37, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 37, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 37, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 37, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 38, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 38, Block3, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 38, Block3, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 38, Block3, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 38, Block3, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 38, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 39, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 40, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 40, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 40, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 40, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 40, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 41, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 41, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 41, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 0, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 45, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 45, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 0, z + 45, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 0, z + 45, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 11, y + 1, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 1, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 11, y + 1, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 11, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 10, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 1, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 17, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 18, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 19, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 20, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 21, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 22, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 41, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 42, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 43, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 1, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 1, z + 44, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 45, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 9, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 13, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 2, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 14, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 2, z + 15, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 16, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 7, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 8, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 9, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 3, z + 10, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 3, z + 11, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 12, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 2, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 3, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 4, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 8, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 7, y + 4, z + 7, Blocks.air, 0, 3);
|
||||
if(MainRegistry.enableDebugMode)
|
||||
System.out.print("[Debug] Successfully spawned spaceship at " + x + " " + y +" " + z + "\n");
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user