mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
incinerated old garbage
This commit is contained in:
parent
3dcf5a8e47
commit
a647f93f15
@ -12,8 +12,10 @@
|
||||
* Adjusted the nuclear flash's intensity, the flash will now deal less and less radiation the longer it goes on
|
||||
* The nuclear flash now bypasses radiation resistance, being only affected by blocks and distance
|
||||
* Mushroom clouds' initial scale is now based on the total scale instead of all spawning roughly at the same size, causing fireballs to be comically small for huge bombs
|
||||
* Removed the old mining drill for good
|
||||
* Removed the old mining drill, combustion generator, old watz core, structure marker and CMB furnace for good
|
||||
|
||||
## Fixed
|
||||
* Fixed a rare crash caused by radars force-loading chunks conflicting with certain mods' chunk loading changes
|
||||
* Fixed PWR fuel rods not having any radiation value assigned to them
|
||||
* Fixed trenchmaster helmet not having gas mask protection
|
||||
* Fixed large thermobaric artillery rocket still using the wrong slag block
|
||||
|
||||
@ -11,4 +11,7 @@ public interface IBlockMultiPass {
|
||||
return renderID;
|
||||
}
|
||||
|
||||
public default boolean shouldRenderItemMulti() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -536,6 +536,8 @@ public class ModBlocks {
|
||||
public static Block sellafield;
|
||||
public static Block ore_sellafield_diamond;
|
||||
public static Block ore_sellafield_emerald;
|
||||
public static Block ore_sellafield_uranium_scorched;
|
||||
public static Block ore_sellafield_schrabidium;
|
||||
|
||||
public static Block geysir_water;
|
||||
public static Block geysir_chlorine;
|
||||
@ -627,8 +629,6 @@ public class ModBlocks {
|
||||
|
||||
public static Block tesla;
|
||||
|
||||
public static Block marker_structure;
|
||||
|
||||
public static Block muffler;
|
||||
|
||||
public static Block sat_mapper;
|
||||
@ -929,9 +929,7 @@ public class ModBlocks {
|
||||
public static Block watz_control;
|
||||
public static Block watz_cooler;
|
||||
public static Block watz_end;
|
||||
public static Block watz_hatch;
|
||||
public static Block watz_conductor;
|
||||
public static Block watz_core;
|
||||
|
||||
public static Block fwatz_conductor;
|
||||
public static Block fwatz_cooler;
|
||||
@ -970,8 +968,6 @@ public class ModBlocks {
|
||||
public static Block machine_shredder_large;
|
||||
public static final int guiID_machine_shredder_large = 76;
|
||||
|
||||
public static Block machine_combine_factory;
|
||||
|
||||
public static Block machine_teleporter;
|
||||
public static Block teleanchor;
|
||||
public static Block field_disturber;
|
||||
@ -1769,6 +1765,8 @@ public class ModBlocks {
|
||||
sellafield = new BlockSellafield(Material.rock).setBlockName("sellafield").setStepSound(Block.soundTypeStone).setHardness(5.0F).setBlockTextureName(RefStrings.MODID + ":sellafield_0");
|
||||
ore_sellafield_diamond = new BlockSellafieldOre(Material.rock).setBlockName("ore_sellafield_diamond").setStepSound(Block.soundTypeStone).setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setBlockTextureName(RefStrings.MODID + ":ore_overlay_diamond");
|
||||
ore_sellafield_emerald = new BlockSellafieldOre(Material.rock).setBlockName("ore_sellafield_emerald").setStepSound(Block.soundTypeStone).setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setBlockTextureName(RefStrings.MODID + ":ore_overlay_emerald");
|
||||
ore_sellafield_uranium_scorched = new BlockSellafieldOre(Material.rock).setBlockName("ore_sellafield_uranium_scorched").setStepSound(Block.soundTypeStone).setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setBlockTextureName(RefStrings.MODID + ":ore_overlay_uranium_scorched");
|
||||
ore_sellafield_schrabidium = new BlockSellafieldOre(Material.rock).setBlockName("ore_sellafield_schrabidium").setStepSound(Block.soundTypeStone).setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setBlockTextureName(RefStrings.MODID + ":ore_overlay_schrabidium");
|
||||
|
||||
geysir_water = new BlockGeysir(Material.rock).setBlockName("geysir_water").setStepSound(Block.soundTypeStone).setHardness(5.0F);
|
||||
geysir_chlorine = new BlockGeysir(Material.rock).setBlockName("geysir_chlorine").setStepSound(Block.soundTypeStone).setHardness(5.0F);
|
||||
@ -1940,8 +1938,6 @@ public class ModBlocks {
|
||||
machine_shredder = new MachineShredder(Material.iron).setBlockName("machine_shredder").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);
|
||||
machine_shredder_large = new MachineShredderLarge(Material.iron).setBlockName("machine_shredder_large").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":code");
|
||||
|
||||
machine_combine_factory = new MachineCMBFactory(Material.iron).setBlockName("machine_combine_factory").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null);
|
||||
|
||||
machine_teleporter = new MachineTeleporter(Material.iron).setBlockName("machine_teleporter").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);
|
||||
teleanchor = new MachineTeleanchor().setBlockName("teleanchor").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);
|
||||
field_disturber = new MachineFieldDisturber().setBlockName("field_disturber").setHardness(5.0F).setResistance(200.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":field_disturber");
|
||||
@ -2094,9 +2090,7 @@ public class ModBlocks {
|
||||
watz_control = new BlockPillar(Material.iron, RefStrings.MODID + ":watz_control_top").setBlockName("watz_control").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":watz_control_side");
|
||||
watz_cooler = new BlockPillar(Material.iron, RefStrings.MODID + ":watz_cooler_top").setBlockName("watz_cooler").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":watz_cooler_side");
|
||||
watz_end = new BlockToolConversion(Material.iron).addVariant("_bolted").setBlockName("watz_end").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":watz_casing");
|
||||
watz_hatch = new WatzHatch(Material.iron).setBlockName("watz_hatch").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":watz_hatch");
|
||||
watz_conductor = new BlockCableConnect(Material.iron).setBlockName("watz_conductor").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":watz_conductor_top");
|
||||
watz_core = new WatzCore(Material.iron).setBlockName("watz_core").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":watz_computer");
|
||||
watz = new Watz().setBlockName("watz").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":block_steel");
|
||||
watz_pump = new WatzPump().setBlockName("watz_pump").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":block_steel");
|
||||
|
||||
@ -2161,8 +2155,6 @@ public class ModBlocks {
|
||||
|
||||
tesla = new MachineTesla(Material.iron).setBlockName("tesla").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.blockTab).setBlockTextureName(RefStrings.MODID + ":tesla");
|
||||
|
||||
marker_structure = new BlockMarker(Material.iron).setBlockName("marker_structure").setHardness(0.1F).setResistance(0.1F).setLightLevel(1.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":marker_structure");
|
||||
|
||||
muffler = new BlockGeneric(Material.cloth).setBlockName("muffler").setHardness(0.8F).setStepSound(Block.soundTypeCloth).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":muffler");
|
||||
|
||||
launch_pad = new LaunchPad(Material.iron).setBlockName("launch_pad").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.missileTab).setBlockTextureName(RefStrings.MODID + ":launch_pad");
|
||||
@ -2956,6 +2948,8 @@ public class ModBlocks {
|
||||
register(sellafield_slaked);
|
||||
register(ore_sellafield_diamond);
|
||||
register(ore_sellafield_emerald);
|
||||
register(ore_sellafield_uranium_scorched);
|
||||
register(ore_sellafield_schrabidium);
|
||||
GameRegistry.registerBlock(sellafield, ItemBlockNamedMeta.class, sellafield.getUnlocalizedName());
|
||||
|
||||
//Geysirs
|
||||
@ -3384,7 +3378,6 @@ public class ModBlocks {
|
||||
register(machine_turbofan);
|
||||
register(machine_turbinegas);
|
||||
GameRegistry.registerBlock(machine_schrabidium_transmutator, machine_schrabidium_transmutator.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_combine_factory, machine_combine_factory.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(machine_teleporter, machine_teleporter.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(teleanchor, teleanchor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(field_disturber, field_disturber.getUnlocalizedName());
|
||||
@ -3395,9 +3388,6 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(radiorec, radiorec.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(radiobox, radiobox.getUnlocalizedName());
|
||||
|
||||
//Multiblock Helpers
|
||||
GameRegistry.registerBlock(marker_structure, marker_structure.getUnlocalizedName());
|
||||
|
||||
//The muffler
|
||||
GameRegistry.registerBlock(muffler, muffler.getUnlocalizedName());
|
||||
|
||||
@ -3463,7 +3453,6 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(fusion_motor, fusion_motor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(fusion_heater, fusion_heater.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(fusion_hatch, fusion_hatch.getUnlocalizedName());
|
||||
//GameRegistry.registerBlock(fusion_core, fusion_core.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(plasma, ItemBlockLore.class, plasma.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(iter, iter.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(plasma_heater, plasma_heater.getUnlocalizedName());
|
||||
@ -3472,9 +3461,7 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(watz_control, watz_control.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(watz_cooler, watz_cooler.getUnlocalizedName());
|
||||
register(watz_end);
|
||||
GameRegistry.registerBlock(watz_hatch, watz_hatch.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(watz_conductor, watz_conductor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(watz_core, watz_core.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(watz, watz.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(watz_pump, watz_pump.getUnlocalizedName());
|
||||
|
||||
|
||||
@ -1,159 +0,0 @@
|
||||
package com.hbm.blocks.generic;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.tileentity.machine.TileEntityStructureMarker;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockMarker extends BlockContainer {
|
||||
|
||||
public BlockMarker(Material p_i45386_1_) {
|
||||
super(p_i45386_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return new TileEntityStructureMarker();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
private boolean func_150107_m(World p_150107_1_, int p_150107_2_, int p_150107_3_, int p_150107_4_) {
|
||||
if(World.doesBlockHaveSolidTopSurface(p_150107_1_, p_150107_2_, p_150107_3_, p_150107_4_)) {
|
||||
return true;
|
||||
} else {
|
||||
Block block = p_150107_1_.getBlock(p_150107_2_, p_150107_3_, p_150107_4_);
|
||||
return block.canPlaceTorchOnTop(p_150107_1_, p_150107_2_, p_150107_3_, p_150107_4_);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_) {
|
||||
return func_150107_m(p_149742_1_, p_149742_2_, p_149742_3_ - 1, p_149742_4_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack itemStack) {
|
||||
int i = MathHelper.floor_double(player.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
|
||||
|
||||
if(i == 0) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, 6, 2);
|
||||
}
|
||||
if(i == 1) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, 7, 2);
|
||||
}
|
||||
if(i == 2) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, 8, 2);
|
||||
}
|
||||
if(i == 3) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, 9, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) {
|
||||
super.updateTick(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_, p_149674_5_);
|
||||
|
||||
if(p_149674_1_.getBlockMetadata(p_149674_2_, p_149674_3_, p_149674_4_) == 0) {
|
||||
this.onBlockAdded(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) {
|
||||
this.func_150108_b(p_149695_1_, p_149695_2_, p_149695_3_, p_149695_4_, p_149695_5_);
|
||||
}
|
||||
|
||||
protected boolean func_150108_b(World p_150108_1_, int p_150108_2_, int p_150108_3_, int p_150108_4_, Block p_150108_5_) {
|
||||
if(this.func_150109_e(p_150108_1_, p_150108_2_, p_150108_3_, p_150108_4_)) {
|
||||
boolean flag = false;
|
||||
|
||||
if(!this.func_150107_m(p_150108_1_, p_150108_2_, p_150108_3_ - 1, p_150108_4_)) {
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if(flag) {
|
||||
this.dropBlockAsItem(p_150108_1_, p_150108_2_, p_150108_3_, p_150108_4_, p_150108_1_.getBlockMetadata(p_150108_2_, p_150108_3_, p_150108_4_), 0);
|
||||
p_150108_1_.setBlockToAir(p_150108_2_, p_150108_3_, p_150108_4_);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean func_150109_e(World p_150109_1_, int p_150109_2_, int p_150109_3_, int p_150109_4_) {
|
||||
if(!this.canPlaceBlockAt(p_150109_1_, p_150109_2_, p_150109_3_, p_150109_4_)) {
|
||||
if(p_150109_1_.getBlock(p_150109_2_, p_150109_3_, p_150109_4_) == this) {
|
||||
this.dropBlockAsItem(p_150109_1_, p_150109_2_, p_150109_3_, p_150109_4_, p_150109_1_.getBlockMetadata(p_150109_2_, p_150109_3_, p_150109_4_), 0);
|
||||
p_150109_1_.setBlockToAir(p_150109_2_, p_150109_3_, p_150109_4_);
|
||||
}
|
||||
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MovingObjectPosition collisionRayTrace(World p_149731_1_, int p_149731_2_, int p_149731_3_, int p_149731_4_, Vec3 p_149731_5_, Vec3 p_149731_6_) {
|
||||
float f = 0.15F;
|
||||
f = 0.1F;
|
||||
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.6F, 0.5F + f);
|
||||
|
||||
return super.collisionRayTrace(p_149731_1_, p_149731_2_, p_149731_3_, p_149731_4_, p_149731_5_, p_149731_6_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
if(world.isRemote) {
|
||||
int i = ((TileEntityStructureMarker) world.getTileEntity(x, y, z)).type + 1;
|
||||
if(i > 2) i -= 3;
|
||||
if(i == 0) player.addChatMessage(new ChatComponentText("[Structure Marker] Set template: Nuclear Reactor"));
|
||||
if(i == 1) player.addChatMessage(new ChatComponentText("[Structure Marker] Set template: Watz Power Plant"));
|
||||
if(i == 2) player.addChatMessage(new ChatComponentText("[Structure Marker] Set template: Fusionary Watz Plant"));
|
||||
return true;
|
||||
} else if(!player.isSneaking()) {
|
||||
if(world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileEntityStructureMarker) {
|
||||
((TileEntityStructureMarker) world.getTileEntity(x, y, z)).type++;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -8,11 +8,14 @@ import com.hbm.handler.radiation.ChunkRadiationManager;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.potion.HbmPotion;
|
||||
import com.hbm.render.icon.RGBMutatorInterpolatedComponentRemap;
|
||||
import com.hbm.render.icon.TextureAtlasSpriteMutatable;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
@ -20,12 +23,17 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockSellafield extends BlockHazard {
|
||||
|
||||
//Sellafite blocks should probably be entirely metadata, but removing them now might mess with shit
|
||||
//...Ah, fuck it! Noone cares anyway.
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected IIcon[][] icons;
|
||||
|
||||
public static final int SELLAFITE_LEVELS = 6;
|
||||
public static final int TEXTURE_VARIANTS = 4;
|
||||
|
||||
public BlockSellafield(Material mat) {
|
||||
super(mat);
|
||||
this.setCreativeTab(MainRegistry.blockTab);
|
||||
@ -56,10 +64,6 @@ public class BlockSellafield extends BlockHazard {
|
||||
}
|
||||
|
||||
@Override public void onBlockAdded(World world, int x, int y, int z) { }
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected IIcon[] icons;
|
||||
|
||||
@Override
|
||||
public int damageDropped(int meta) {
|
||||
@ -69,24 +73,62 @@ public class BlockSellafield extends BlockHazard {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item item, CreativeTabs tabs, List list) {
|
||||
for(byte i = 0; i < 6; i++) {
|
||||
for(byte i = 0; i < SELLAFITE_LEVELS; i++) {
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
super.registerBlockIcons(iconRegister);
|
||||
icons = new IIcon[6];
|
||||
public void registerBlockIcons(IIconRegister reg) {
|
||||
super.registerBlockIcons(reg);
|
||||
icons = new IIcon[SELLAFITE_LEVELS][TEXTURE_VARIANTS];
|
||||
String[] names = new String[] {
|
||||
RefStrings.MODID + ":sellafield_slaked",
|
||||
RefStrings.MODID + ":sellafield_slaked_1",
|
||||
RefStrings.MODID + ":sellafield_slaked_2",
|
||||
RefStrings.MODID + ":sellafield_slaked_3"
|
||||
};
|
||||
|
||||
for(byte i = 0; i < 6; i++)
|
||||
icons[i] = iconRegister.registerIcon(RefStrings.MODID + ":sellafield_" + i);
|
||||
if(reg instanceof TextureMap) {
|
||||
TextureMap map = (TextureMap) reg;
|
||||
|
||||
int[][] colors = new int[][] {
|
||||
{0x4C7939, 0x41463F},
|
||||
{0x418223, 0x3E443B},
|
||||
{0x338C0E, 0x3B5431},
|
||||
{0x1C9E00, 0x394733},
|
||||
{0x02B200, 0x37492F},
|
||||
{0x00D300, 0x324C26}
|
||||
};
|
||||
|
||||
for(int level = 0; level < SELLAFITE_LEVELS; level++) {
|
||||
int[] tint = colors[level];
|
||||
|
||||
for(int subtype = 0; subtype < TEXTURE_VARIANTS; subtype++) {
|
||||
String texName = names[subtype];
|
||||
String placeholderName = texName + "-" + level + "-" + subtype;
|
||||
TextureAtlasSpriteMutatable mutableIcon = new TextureAtlasSpriteMutatable(placeholderName, new RGBMutatorInterpolatedComponentRemap(0x858384, 0x434343, tint[0], tint[1])).setBlockAtlas();
|
||||
map.setTextureEntry(placeholderName, mutableIcon);
|
||||
icons[level][subtype] = mutableIcon;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
|
||||
long l = (long) (x * 3129871) ^ (long)y * 116129781L ^ (long)z;
|
||||
l = l * l * 42317861L + l * 11L;
|
||||
int i = (int)(l >> 16 & 3L);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
return icons[(int)(Math.abs(meta) % SELLAFITE_LEVELS)][(int)(Math.abs(i) % TEXTURE_VARIANTS)];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
return this.icons[meta % this.icons.length];
|
||||
return this.icons[(int) Math.abs(meta) % this.icons.length][0];
|
||||
}
|
||||
}
|
||||
|
||||
@ -41,6 +41,13 @@ public class BlockSellafieldOre extends BlockSellafieldSlaked implements IBlockM
|
||||
return super.getIcon(world, x, y, z, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if(RenderBlockMultipass.currentPass == 1) return this.blockIcon;
|
||||
return icons[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int colorMultiplier(IBlockAccess world, int x, int y, int z) {
|
||||
@ -53,11 +60,16 @@ public class BlockSellafieldOre extends BlockSellafieldSlaked implements IBlockM
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRenderItemMulti() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(int meta, Random rand, int fortune) {
|
||||
if(this == ModBlocks.ore_sellafield_diamond) return Items.diamond;
|
||||
if(this == ModBlocks.ore_sellafield_emerald) return Items.emerald;
|
||||
return null;
|
||||
return Item.getItemFromBlock(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -32,7 +32,7 @@ public class BlockSellafieldSlaked extends Block {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
return icons[meta % icons.length];
|
||||
return icons[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1,131 +0,0 @@
|
||||
package com.hbm.blocks.machine;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.tileentity.machine.TileEntityMachineCMBFactory;
|
||||
|
||||
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class MachineCMBFactory extends BlockContainer {
|
||||
|
||||
private final Random field_149933_a = new Random();
|
||||
private static boolean keepInventory;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconTop;
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":machine_cmb_top");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":machine_cmb_side");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata) {
|
||||
return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : this.blockIcon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
|
||||
{
|
||||
return Item.getItemFromBlock(ModBlocks.machine_combine_factory);
|
||||
}
|
||||
|
||||
public MachineCMBFactory(Material p_i45386_1_) {
|
||||
super(p_i45386_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return new TileEntityMachineCMBFactory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
if(world.isRemote)
|
||||
{
|
||||
return true;
|
||||
} else if(!player.isSneaking())
|
||||
{
|
||||
TileEntityMachineCMBFactory entity = (TileEntityMachineCMBFactory) world.getTileEntity(x, y, z);
|
||||
if(entity != null)
|
||||
{
|
||||
FMLNetworkHandler.openGui(player, MainRegistry.instance, 0, world, x, y, z);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
|
||||
{
|
||||
if (!keepInventory)
|
||||
{
|
||||
TileEntityMachineCMBFactory tileentityfurnace = (TileEntityMachineCMBFactory)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_);
|
||||
|
||||
if (tileentityfurnace != null)
|
||||
{
|
||||
for (int i1 = 0; i1 < tileentityfurnace.getSizeInventory(); ++i1)
|
||||
{
|
||||
ItemStack itemstack = tileentityfurnace.getStackInSlot(i1);
|
||||
|
||||
if (itemstack != null)
|
||||
{
|
||||
float f = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||
float f1 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||
float f2 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||
|
||||
while (itemstack.stackSize > 0)
|
||||
{
|
||||
int j1 = this.field_149933_a.nextInt(21) + 10;
|
||||
|
||||
if (j1 > itemstack.stackSize)
|
||||
{
|
||||
j1 = itemstack.stackSize;
|
||||
}
|
||||
|
||||
itemstack.stackSize -= j1;
|
||||
EntityItem entityitem = new EntityItem(p_149749_1_, p_149749_2_ + f, p_149749_3_ + f1, p_149749_4_ + f2, new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
|
||||
|
||||
if (itemstack.hasTagCompound())
|
||||
{
|
||||
entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float f3 = 0.05F;
|
||||
entityitem.motionX = (float)this.field_149933_a.nextGaussian() * f3;
|
||||
entityitem.motionY = (float)this.field_149933_a.nextGaussian() * f3 + 0.2F;
|
||||
entityitem.motionZ = (float)this.field_149933_a.nextGaussian() * f3;
|
||||
p_149749_1_.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p_149749_1_.func_147453_f(p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_);
|
||||
}
|
||||
}
|
||||
|
||||
super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_);
|
||||
}
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
package com.hbm.blocks.machine;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.hbm.tileentity.machine.TileEntityMachineCoal;
|
||||
|
||||
@Deprecated
|
||||
public class MachineCoal extends BlockContainer {
|
||||
|
||||
public MachineCoal(boolean blockState) {
|
||||
super(Material.iron);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return new TileEntityMachineCoal();
|
||||
}
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
package com.hbm.blocks.machine;
|
||||
|
||||
import com.hbm.tileentity.machine.TileEntityWatzCore;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class WatzCore extends BlockContainer {
|
||||
|
||||
public WatzCore(Material p_i45386_1_) {
|
||||
super(p_i45386_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return new TileEntityWatzCore();
|
||||
}
|
||||
}
|
||||
@ -1,158 +0,0 @@
|
||||
package com.hbm.blocks.machine;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.inventory.fluid.FluidType;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.tileentity.machine.TileEntityWatzCore;
|
||||
|
||||
import api.hbm.fluid.IFluidConnectorBlock;
|
||||
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class WatzHatch extends Block implements IFluidConnectorBlock {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon iconFront;
|
||||
|
||||
public WatzHatch(Material p_i45394_1_) {
|
||||
super(p_i45394_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.iconFront = iconRegister.registerIcon(RefStrings.MODID + ":watz_hatch");
|
||||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":reinforced_brick");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata) {
|
||||
return metadata == 0 && side == 3 ? this.iconFront : (side == metadata ? this.iconFront : this.blockIcon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
|
||||
{
|
||||
return Item.getItemFromBlock(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockAdded(World world, int x, int y, int z) {
|
||||
super.onBlockAdded(world, x, y, z);
|
||||
//this.setDefaultDirection(world, x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack itemStack) {
|
||||
int i = MathHelper.floor_double(player.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
|
||||
|
||||
if(i == 0)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 2, 2);
|
||||
}
|
||||
if(i == 1)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 5, 2);
|
||||
}
|
||||
if(i == 2)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 3, 2);
|
||||
}
|
||||
if(i == 3)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 4, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
if(world.isRemote)
|
||||
{
|
||||
return true;
|
||||
} else if(!player.isSneaking())
|
||||
{
|
||||
if(world.getBlockMetadata(x, y, z) == 2)
|
||||
{
|
||||
if(world.getTileEntity(x, y, z + 3) instanceof TileEntityWatzCore)
|
||||
{
|
||||
if(((TileEntityWatzCore)world.getTileEntity(x, y, z + 3)).isStructureValid(world))
|
||||
{
|
||||
FMLNetworkHandler.openGui(player, MainRegistry.instance, 0, world, x, y, z + 3);
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Structure not valid!"));
|
||||
}
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Core not found!"));
|
||||
}
|
||||
}
|
||||
if(world.getBlockMetadata(x, y, z) == 3)
|
||||
{
|
||||
if(world.getTileEntity(x, y, z - 3) instanceof TileEntityWatzCore)
|
||||
{
|
||||
if(((TileEntityWatzCore)world.getTileEntity(x, y, z - 3)).isStructureValid(world))
|
||||
{
|
||||
FMLNetworkHandler.openGui(player, MainRegistry.instance, 0, world, x, y, z - 3);
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Structure not valid!"));
|
||||
}
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Core not found!"));
|
||||
}
|
||||
}
|
||||
if(world.getBlockMetadata(x, y, z) == 4)
|
||||
{
|
||||
if(world.getTileEntity(x + 3, y, z) instanceof TileEntityWatzCore)
|
||||
{
|
||||
if(((TileEntityWatzCore)world.getTileEntity(x + 3, y, z)).isStructureValid(world))
|
||||
{
|
||||
FMLNetworkHandler.openGui(player, MainRegistry.instance, 0, world, x + 3, y, z);
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Structure not valid!"));
|
||||
}
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Core not found!"));
|
||||
}
|
||||
}
|
||||
if(world.getBlockMetadata(x, y, z) == 5)
|
||||
{
|
||||
if(world.getTileEntity(x - 3, y, z) instanceof TileEntityWatzCore)
|
||||
{
|
||||
if(((TileEntityWatzCore)world.getTileEntity(x - 3, y, z)).isStructureValid(world))
|
||||
{
|
||||
FMLNetworkHandler.openGui(player, MainRegistry.instance, 0, world, x - 3, y, z);
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Structure not valid!"));
|
||||
}
|
||||
} else {
|
||||
player.addChatMessage(new ChatComponentText("[Watz Power Plant] Error: Reactor Core not found!"));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnect(FluidType type, IBlockAccess world, int x, int y, int z, ForgeDirection dir) {
|
||||
return type == Fluids.WATZ;
|
||||
}
|
||||
}
|
||||
@ -75,23 +75,24 @@ public class FalloutConfigJSON {
|
||||
entries.add(new FalloutEntry() .mB(Blocks.leaves2) .prim(new Triplet(ModBlocks.waste_leaves, 0, 1)) .min(woodEffectRange));
|
||||
|
||||
entries.add(new FalloutEntry().mB(Blocks.mossy_cobblestone).prim(new Triplet(Blocks.coal_ore, 0, 1)));
|
||||
entries.add(new FalloutEntry().mB(ModBlocks.ore_uranium).prim(new Triplet(ModBlocks.ore_schrabidium, 0, 1), new Triplet(ModBlocks.ore_uranium_scorched, 0, 99)));
|
||||
entries.add(new FalloutEntry().mB(ModBlocks.ore_nether_uranium).prim(new Triplet(ModBlocks.ore_nether_schrabidium, 0, 1), new Triplet(ModBlocks.ore_nether_uranium_scorched, 0, 99)));
|
||||
entries.add(new FalloutEntry().mB(ModBlocks.ore_gneiss_uranium).prim(new Triplet(ModBlocks.ore_gneiss_schrabidium, 0, 1), new Triplet(ModBlocks.ore_gneiss_uranium_scorched, 0, 99)));
|
||||
|
||||
Block deepslate = Compat.tryLoadBlock(Compat.MOD_EF, "deepslate");
|
||||
Block stone = Compat.tryLoadBlock(Compat.MOD_EF, "stone");
|
||||
|
||||
for(int i = 1; i <= 10; i++) {
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_diamond, 10 - i, 3), new Triplet(ModBlocks.ore_sellafield_emerald, 10 - i, 2)).c(0.5).max(i * 5).sol(true).mB(Blocks.coal_ore));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_diamond, 10 - i, 1)).c(0.2).max(i * 5).sol(true).mB(ModBlocks.ore_lignite));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_emerald, 10 - i, 1)).max(i * 5).sol(true).mB(ModBlocks.ore_beryllium));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mMa(Material.rock));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mMa(Material.sand));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mMa(Material.ground));
|
||||
if(i <= 9) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mMa(Material.grass));
|
||||
if(deepslate != null) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mB(deepslate));
|
||||
if(stone != null) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, 10 - i, 1)).max(i * 5).sol(true).mB(stone));
|
||||
int m = 10 - i;
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_diamond, m, 3), new Triplet(ModBlocks.ore_sellafield_emerald, m, 2)) .c(0.5) .max(i * 5).sol(true).mB(Blocks.coal_ore));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_diamond, m, 1)) .c(0.2) .max(i * 5).sol(true).mB(ModBlocks.ore_lignite));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_emerald, m, 1)) .max(i * 5).sol(true).mB(ModBlocks.ore_beryllium));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_schrabidium, m, 1), new Triplet(ModBlocks.ore_sellafield_uranium_scorched, m, 99)) .max(i * 5).sol(true).mB(ModBlocks.ore_uranium));
|
||||
entries.add(new FalloutEntry().prim(new Triplet(ModBlocks.ore_sellafield_schrabidium, m, 1), new Triplet(ModBlocks.ore_sellafield_uranium_scorched, m, 99)) .max(i * 5).sol(true).mB(ModBlocks.ore_gneiss_uranium));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mMa(Material.rock));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mMa(Material.sand));
|
||||
entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mMa(Material.ground));
|
||||
if(i <= 9) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mMa(Material.grass));
|
||||
if(deepslate != null) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mB(deepslate));
|
||||
if(stone != null) entries.add(new FalloutEntry() .prim(new Triplet(ModBlocks.sellafield_slaked, m, 1)).max(i * 5).sol(true).mB(stone));
|
||||
}
|
||||
|
||||
//entries.add(new FalloutEntry().mB(Blocks.grass).prim(new Triplet(ModBlocks.waste_earth, 0, 1)));
|
||||
|
||||
@ -320,7 +320,7 @@ public class OreDictManager {
|
||||
/*
|
||||
* RADIOACTIVE
|
||||
*/
|
||||
U .rad(HazardRegistry.u) .nugget(nugget_uranium) .billet(billet_uranium) .ingot(ingot_uranium) .dust(powder_uranium) .block(block_uranium) .ore(ore_uranium, ore_uranium_scorched, ore_gneiss_uranium, ore_gneiss_uranium_scorched, ore_nether_uranium, ore_nether_uranium_scorched, ore_meteor_uranium) .oreNether(ore_nether_uranium, ore_nether_uranium_scorched);
|
||||
U .rad(HazardRegistry.u) .nugget(nugget_uranium) .billet(billet_uranium) .ingot(ingot_uranium) .dust(powder_uranium) .block(block_uranium) .ore(ore_uranium, ore_uranium_scorched, ore_gneiss_uranium, ore_gneiss_uranium_scorched, ore_nether_uranium, ore_nether_uranium_scorched, ore_meteor_uranium, ore_sellafield_uranium_scorched) .oreNether(ore_nether_uranium, ore_nether_uranium_scorched);
|
||||
U233 .rad(HazardRegistry.u233) .nugget(nugget_u233) .billet(billet_u233) .ingot(ingot_u233) .block(block_u233);
|
||||
U235 .rad(HazardRegistry.u235) .nugget(nugget_u235) .billet(billet_u235) .ingot(ingot_u235) .block(block_u235);
|
||||
U238 .rad(HazardRegistry.u238) .nugget(nugget_u238) .billet(billet_u238) .ingot(ingot_u238) .block(block_u238);
|
||||
@ -342,7 +342,7 @@ public class OreDictManager {
|
||||
CO60 .rad(HazardRegistry.co60) .hot(1) .nugget(nugget_co60) .billet(billet_co60) .ingot(ingot_co60) .dust(powder_co60);
|
||||
AU198 .rad(HazardRegistry.au198) .hot(5) .nugget(nugget_au198) .billet(billet_au198) .ingot(ingot_au198) .dust(powder_au198);
|
||||
PB209 .rad(HazardRegistry.pb209) .blinding(50F) .hot(7) .nugget(nugget_pb209) .billet(billet_pb209) .ingot(ingot_pb209);
|
||||
SA326 .rad(HazardRegistry.sa326) .blinding(50F) .nugget(nugget_schrabidium) .billet(billet_schrabidium) .ingot(ingot_schrabidium) .dust(powder_schrabidium).plate(plate_schrabidium).plateCast(Mats.MAT_SCHRABIDIUM.make(plate_cast)).block(block_schrabidium).ore(ore_schrabidium, ore_gneiss_schrabidium, ore_nether_schrabidium) .oreNether(ore_nether_schrabidium);
|
||||
SA326 .rad(HazardRegistry.sa326) .blinding(50F) .nugget(nugget_schrabidium) .billet(billet_schrabidium) .ingot(ingot_schrabidium) .dust(powder_schrabidium).plate(plate_schrabidium).plateCast(Mats.MAT_SCHRABIDIUM.make(plate_cast)).block(block_schrabidium).ore(ore_schrabidium, ore_gneiss_schrabidium, ore_nether_schrabidium, ore_sellafield_schrabidium) .oreNether(ore_nether_schrabidium);
|
||||
SA327 .rad(HazardRegistry.sa327) .blinding(50F) .nugget(nugget_solinium) .billet(billet_solinium) .ingot(ingot_solinium) .block(block_solinium);
|
||||
SBD .rad(HazardRegistry.sb) .blinding(50F) .ingot(ingot_schrabidate) .dust(powder_schrabidate) .block(block_schrabidate);
|
||||
SRN .rad(HazardRegistry.sr) .blinding(50F) .ingot(ingot_schraranium) .block(block_schraranium);
|
||||
|
||||
@ -1,115 +0,0 @@
|
||||
package com.hbm.inventory.container;
|
||||
|
||||
import com.hbm.inventory.SlotCraftingOutput;
|
||||
import com.hbm.inventory.SlotTakeOnly;
|
||||
import com.hbm.tileentity.machine.TileEntityMachineCMBFactory;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ICrafting;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ContainerMachineCMBFactory extends Container {
|
||||
|
||||
private TileEntityMachineCMBFactory diFurnace;
|
||||
private int progress;
|
||||
|
||||
public ContainerMachineCMBFactory(InventoryPlayer invPlayer, TileEntityMachineCMBFactory tedf) {
|
||||
|
||||
diFurnace = tedf;
|
||||
|
||||
this.addSlotToContainer(new Slot(tedf, 0, 62 + 9, 17));
|
||||
this.addSlotToContainer(new Slot(tedf, 1, 80 + 9, 17));
|
||||
this.addSlotToContainer(new Slot(tedf, 2, 62 + 9, 53));
|
||||
this.addSlotToContainer(new Slot(tedf, 3, 80 + 9, 53));
|
||||
this.addSlotToContainer(new SlotCraftingOutput(invPlayer.player, tedf, 4, 134 + 9, 35));
|
||||
this.addSlotToContainer(new SlotTakeOnly(tedf, 5, 62 - 9, 53));
|
||||
|
||||
for(int i = 0; i < 3; i++)
|
||||
{
|
||||
for(int j = 0; j < 9; j++)
|
||||
{
|
||||
this.addSlotToContainer(new Slot(invPlayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
|
||||
}
|
||||
}
|
||||
|
||||
for(int i = 0; i < 9; i++)
|
||||
{
|
||||
this.addSlotToContainer(new Slot(invPlayer, i, 8 + i * 18, 142));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCraftingToCrafters(ICrafting crafting) {
|
||||
super.addCraftingToCrafters(crafting);
|
||||
crafting.sendProgressBarUpdate(this, 1, this.diFurnace.process);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int par2)
|
||||
{
|
||||
ItemStack var3 = null;
|
||||
Slot var4 = (Slot) this.inventorySlots.get(par2);
|
||||
|
||||
if (var4 != null && var4.getHasStack())
|
||||
{
|
||||
ItemStack var5 = var4.getStack();
|
||||
var3 = var5.copy();
|
||||
|
||||
if (par2 <= 5) {
|
||||
if (!this.mergeItemStack(var5, 6, this.inventorySlots.size(), true))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!this.mergeItemStack(var5, 0, 4, false))
|
||||
return null;
|
||||
}
|
||||
|
||||
if (var5.stackSize == 0)
|
||||
{
|
||||
var4.putStack((ItemStack) null);
|
||||
}
|
||||
else
|
||||
{
|
||||
var4.onSlotChanged();
|
||||
}
|
||||
}
|
||||
|
||||
return var3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer player) {
|
||||
return diFurnace.isUseableByPlayer(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void detectAndSendChanges() {
|
||||
super.detectAndSendChanges();
|
||||
|
||||
for(int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting par1 = (ICrafting)this.crafters.get(i);
|
||||
|
||||
if(this.progress != this.diFurnace.process)
|
||||
{
|
||||
par1.sendProgressBarUpdate(this, 1, this.diFurnace.process);
|
||||
}
|
||||
}
|
||||
|
||||
this.progress = this.diFurnace.process;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateProgressBar(int i, int j) {
|
||||
if(i == 1)
|
||||
{
|
||||
diFurnace.process = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,138 +0,0 @@
|
||||
package com.hbm.inventory.container;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.special.WatzFuel;
|
||||
import com.hbm.tileentity.machine.TileEntityWatzCore;
|
||||
|
||||
import api.hbm.energy.IBatteryItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ICrafting;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ContainerWatzCore extends Container {
|
||||
|
||||
private TileEntityWatzCore diFurnace;
|
||||
|
||||
public ContainerWatzCore(InventoryPlayer invPlayer, TileEntityWatzCore tedf) {
|
||||
|
||||
diFurnace = tedf;
|
||||
|
||||
this.addSlotToContainer(new Slot(tedf, 0, 8, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 1, 26, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 2, 44, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 3, 62, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 4, 80, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 5, 98, 18));
|
||||
this.addSlotToContainer(new Slot(tedf, 6, 8, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 7, 26, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 8, 44, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 9, 62, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 10, 80, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 11, 98, 36));
|
||||
this.addSlotToContainer(new Slot(tedf, 12, 8, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 13, 26, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 14, 44, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 15, 62, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 16, 80, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 17, 98, 54));
|
||||
this.addSlotToContainer(new Slot(tedf, 18, 8, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 19, 26, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 20, 44, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 21, 62, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 22, 80, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 23, 98, 72));
|
||||
this.addSlotToContainer(new Slot(tedf, 24, 8, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 25, 26, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 26, 44, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 27, 62, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 28, 80, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 29, 98, 90));
|
||||
this.addSlotToContainer(new Slot(tedf, 30, 8, 108));
|
||||
this.addSlotToContainer(new Slot(tedf, 31, 26, 108));
|
||||
this.addSlotToContainer(new Slot(tedf, 32, 44, 108));
|
||||
this.addSlotToContainer(new Slot(tedf, 33, 62, 108));
|
||||
this.addSlotToContainer(new Slot(tedf, 34, 80, 108));
|
||||
this.addSlotToContainer(new Slot(tedf, 35, 98, 108));
|
||||
//Mud Input
|
||||
this.addSlotToContainer(new Slot(tedf, 36, 134, 108 - 18));
|
||||
//Battery
|
||||
this.addSlotToContainer(new Slot(tedf, 37, 152, 108 - 18));
|
||||
//Filter
|
||||
this.addSlotToContainer(new Slot(tedf, 38, 116, 63));
|
||||
//Mud Output
|
||||
this.addSlotToContainer(new Slot(tedf, 39, 134, 108));
|
||||
|
||||
for(int i = 0; i < 3; i++)
|
||||
{
|
||||
for(int j = 0; j < 9; j++)
|
||||
{
|
||||
this.addSlotToContainer(new Slot(invPlayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18 + 56));
|
||||
}
|
||||
}
|
||||
|
||||
for(int i = 0; i < 9; i++)
|
||||
{
|
||||
this.addSlotToContainer(new Slot(invPlayer, i, 8 + i * 18, 142 + 56));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCraftingToCrafters(ICrafting crafting) {
|
||||
super.addCraftingToCrafters(crafting);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int par2) {
|
||||
ItemStack var3 = null;
|
||||
Slot var4 = (Slot) this.inventorySlots.get(par2);
|
||||
|
||||
if(var4 != null && var4.getHasStack()) {
|
||||
ItemStack var5 = var4.getStack();
|
||||
var3 = var5.copy();
|
||||
|
||||
if(par2 <= 39) {
|
||||
if(!this.mergeItemStack(var5, 40, this.inventorySlots.size(), true)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
if(var5.getItem() == ModItems.titanium_filter) {
|
||||
if(!this.mergeItemStack(var5, 38, 39, false)) {
|
||||
return null;
|
||||
}
|
||||
} else if(var5.getItem() instanceof WatzFuel) {
|
||||
if(!this.mergeItemStack(var5, 0, 36, false)) {
|
||||
return null;
|
||||
}
|
||||
} else if(var5.getItem() instanceof IBatteryItem) {
|
||||
if(!this.mergeItemStack(var5, 37, 38, false)) {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
if(!this.mergeItemStack(var5, 36, 37, false)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(var5.stackSize == 0) {
|
||||
var4.putStack((ItemStack) null);
|
||||
} else {
|
||||
var4.onSlotChanged();
|
||||
}
|
||||
|
||||
var4.onPickupFromSlot(p_82846_1_, var5);
|
||||
}
|
||||
|
||||
return var3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer player) {
|
||||
return diFurnace.isUseableByPlayer(player);
|
||||
}
|
||||
}
|
||||
@ -1,59 +0,0 @@
|
||||
package com.hbm.inventory.gui;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.inventory.container.ContainerMachineCMBFactory;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.tileentity.machine.TileEntityMachineCMBFactory;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUIMachineCMBFactory extends GuiInfoContainer {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_cmb_manufactory.png");
|
||||
private TileEntityMachineCMBFactory diFurnace;
|
||||
|
||||
public GUIMachineCMBFactory(InventoryPlayer invPlayer, TileEntityMachineCMBFactory tedf) {
|
||||
super(new ContainerMachineCMBFactory(invPlayer, tedf));
|
||||
diFurnace = tedf;
|
||||
|
||||
this.xSize = 176;
|
||||
this.ySize = 166;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float f) {
|
||||
super.drawScreen(mouseX, mouseY, f);
|
||||
|
||||
diFurnace.tank.renderTankInfo(this, mouseX, mouseY, guiLeft + 26, guiTop + 69 - 52, 16, 52);
|
||||
this.drawElectricityInfo(this, mouseX, mouseY, guiLeft + 8, guiTop + 106 - 88, 16, 88, diFurnace.power, diFurnace.maxPower);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int i, int j) {
|
||||
String name = this.diFurnace.hasCustomInventoryName() ? this.diFurnace.getInventoryName() : I18n.format(this.diFurnace.getInventoryName());
|
||||
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(I18n.format("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
|
||||
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
|
||||
|
||||
if(diFurnace.power > 0) {
|
||||
int i = (int)diFurnace.getPowerScaled(52);
|
||||
drawTexturedModalRect(guiLeft + 8, guiTop + 69 - i, 176, 52 - i, 16, i);
|
||||
}
|
||||
|
||||
int j1 = diFurnace.getProgressScaled(24);
|
||||
drawTexturedModalRect(guiLeft + 101 + 9, guiTop + 34, 208, 0, j1 + 1, 16);
|
||||
|
||||
diFurnace.tank.renderTank(guiLeft + 26, guiTop + 69, this.zLevel, 16, 52);
|
||||
}
|
||||
}
|
||||
@ -1,61 +0,0 @@
|
||||
package com.hbm.inventory.gui;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.inventory.container.ContainerWatzCore;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.tileentity.machine.TileEntityWatzCore;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUIWatzCore extends GuiInfoContainer {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_watz_multiblock.png");
|
||||
private TileEntityWatzCore diFurnace;
|
||||
|
||||
public GUIWatzCore(InventoryPlayer invPlayer, TileEntityWatzCore tedf) {
|
||||
super(new ContainerWatzCore(invPlayer, tedf));
|
||||
diFurnace = tedf;
|
||||
|
||||
this.xSize = 176;
|
||||
//this.ySize = 222;
|
||||
this.ySize = 256;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float f) {
|
||||
super.drawScreen(mouseX, mouseY, f);
|
||||
|
||||
diFurnace.tank.renderTankInfo(this, mouseX, mouseY, guiLeft + 134, guiTop + 106 - 18 - 70, 16, 70);
|
||||
this.drawElectricityInfo(this, mouseX, mouseY, guiLeft + 152, guiTop + 106 - 70, 16, 70 - 18, diFurnace.power, diFurnace.maxPower);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int i, int j) {
|
||||
String name = this.diFurnace.hasCustomInventoryName() ? this.diFurnace.getInventoryName() : I18n.format(this.diFurnace.getInventoryName());
|
||||
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(I18n.format("container.inventory")/* + String.valueOf(diFurnace.powerList)*/, 8, this.ySize - 96 + 2 - 34, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf(diFurnace.powerList + " HE/tick"), 8, this.ySize - 50 + 2 + 13, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf(diFurnace.heatList + " heat"), 8, this.ySize - 50 + 2 + 22, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf((diFurnace.decayMultiplier * diFurnace.heat)/100 /100 + " waste/tick"), 8, this.ySize - 50 + 2 + 31, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf(diFurnace.powerMultiplier + "% power"), 100, this.ySize - 50 + 2 + 13, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf(diFurnace.heatMultiplier + "% heat"), 100, this.ySize - 50 + 2 + 22, 4210752);
|
||||
this.fontRendererObj.drawString(String.valueOf(diFurnace.decayMultiplier + "% decay"), 100, this.ySize - 50 + 2 + 31, 4210752);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
|
||||
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
|
||||
|
||||
int l = (int)diFurnace.getPowerScaled(70);
|
||||
drawTexturedModalRect(guiLeft + 152, guiTop + 106 - 18 - l, 192, 70 - l, 16, l);
|
||||
|
||||
diFurnace.tank.renderTank(guiLeft + 134, guiTop + 106 - 18, this.zLevel, 16, 70);
|
||||
}
|
||||
}
|
||||
@ -4,8 +4,6 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.world.machine.FWatz;
|
||||
import com.hbm.world.machine.NuclearReactor;
|
||||
import com.hbm.world.machine.Watz;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
@ -19,10 +17,8 @@ public class ItemWandS extends Item {
|
||||
@Override
|
||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool)
|
||||
{
|
||||
list.add("Creative-only item");
|
||||
list.add("\"Instant structures for everyone!\"");
|
||||
list.add("(Cycle with shift-right click,");
|
||||
list.add("spawn structures with right click!)");
|
||||
list.add("DEPRECATED");
|
||||
|
||||
if(itemstack.stackTagCompound != null)
|
||||
{
|
||||
switch(itemstack.stackTagCompound.getInteger("building"))
|
||||
@ -58,10 +54,8 @@ public class ItemWandS extends Item {
|
||||
switch(stack.stackTagCompound.getInteger("building"))
|
||||
{
|
||||
case 0:
|
||||
new NuclearReactor().generate(world, rand, x, up ? y : y - 4, z);
|
||||
break;
|
||||
case 1:
|
||||
new Watz().generate(world, rand, x, up ? y : y - 12, z);
|
||||
break;
|
||||
case 2:
|
||||
new FWatz().generateHull(world, rand, x, up ? y : y - 18, z);
|
||||
|
||||
@ -216,7 +216,7 @@ public class ItemAmmoHIMARS extends Item {
|
||||
|
||||
this.itemTypes[LARGE_TB] = new HIMARSRocket("single_tb", "himars_single_tb", 1) {
|
||||
public void onImpact(EntityArtilleryRocket rocket, MovingObjectPosition mop) {
|
||||
standardExplosion(rocket, mop, 50F, 12F, true, ModBlocks.slag, 1);
|
||||
standardExplosion(rocket, mop, 50F, 12F, true, ModBlocks.block_slag, 1);
|
||||
ExplosionLarge.spawnShrapnels(rocket.worldObj, (int) mop.hitVec.xCoord, (int) mop.hitVec.yCoord, (int) mop.hitVec.zCoord, 30);
|
||||
standardMush(rocket, mop, 35);
|
||||
}};
|
||||
|
||||
@ -76,6 +76,7 @@ public class Library {
|
||||
public static String Barnaby99_x = "b04cf173-cff0-4acd-aa19-3d835224b43d";
|
||||
public static String Ma118 = "1121cb7a-8773-491f-8e2b-221290c93d81";
|
||||
public static String Adam29Adam29 = "bbae7bfa-0eba-40ac-a0dd-f3b715e73e61";
|
||||
public static String Alcater = "0b399a4a-8545-45a1-be3d-ece70d7d48e9";
|
||||
|
||||
public static Set<String> contributors = Sets.newHashSet(new String[] {
|
||||
"06ab7c03-55ce-43f8-9d3c-2850e3c652de", //mustang_rudolf
|
||||
@ -167,7 +168,6 @@ public class Library {
|
||||
world.getBlock(x, y, z) == ModBlocks.reactor_hatch ||
|
||||
world.getBlock(x, y, z) == ModBlocks.reactor_conductor ||
|
||||
world.getBlock(x, y, z) == ModBlocks.fusion_hatch ||
|
||||
world.getBlock(x, y, z) == ModBlocks.watz_hatch ||
|
||||
world.getBlock(x, y, z) == ModBlocks.fwatz_hatch ||
|
||||
world.getBlock(x, y, z) == ModBlocks.dummy_port_ams_limiter ||
|
||||
world.getBlock(x, y, z) == ModBlocks.dummy_port_ams_emitter ||
|
||||
|
||||
@ -337,7 +337,6 @@ public class ClientProxy extends ServerProxy {
|
||||
//DecoContainer
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFileCabinet.class, new RenderFileCabinet());
|
||||
//multiblocks
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStructureMarker.class, new RenderStructureMaker());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMultiblock.class, new RenderMultiblock());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySoyuzStruct.class, new RenderSoyuzMultiblock());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityITERStruct.class, new RenderITERMultiblock());
|
||||
|
||||
@ -107,8 +107,6 @@ public class CraftingManager {
|
||||
addRecipeAuto(new ItemStack(ModItems.plate_polymer, 4), new Object[] { "BB", 'B', "ingotBrick" });
|
||||
addRecipeAuto(new ItemStack(ModItems.plate_polymer, 4), new Object[] { "BB", 'B', "ingotNetherBrick" });
|
||||
|
||||
addRecipeAuto(new ItemStack(ModBlocks.marker_structure, 1), new Object[] { "L", "G", "R", 'L', LAPIS.dust(), 'G', Items.glowstone_dust, 'R', Blocks.redstone_torch });
|
||||
|
||||
addRecipeAuto(new ItemStack(ModItems.circuit_raw, 1), new Object[] { "A", "R", "S", 'S', STEEL.plate(), 'R', REDSTONE.dust(), 'A', ModItems.wire_aluminium });
|
||||
addRecipeAuto(new ItemStack(ModItems.circuit_bismuth_raw, 1), new Object[] { "RPR", "ABA", "RPR", 'R', REDSTONE.dust(), 'P', ANY_PLASTIC.ingot(), 'A', (GeneralConfig.enable528 ? ModItems.circuit_tantalium : ASBESTOS.ingot()), 'B', ModItems.ingot_bismuth });
|
||||
addRecipeAuto(new ItemStack(ModItems.circuit_tantalium_raw, 1), new Object[] { "RWR", "PTP", "RWR", 'R', REDSTONE.dust(), 'W', ModItems.wire_gold, 'P', CU.plate(), 'T', TA.nugget() });
|
||||
|
||||
@ -1200,6 +1200,10 @@ public class MainRegistry {
|
||||
ignoreMappings.add("hbm:tile.drill_pipe");
|
||||
ignoreMappings.add("hbm:tile.dummy_block_drill");
|
||||
ignoreMappings.add("hbm:tile.dummy_port_drill");
|
||||
ignoreMappings.add("hbm:tile.machine_combine_factory");
|
||||
ignoreMappings.add("hbm:tile.watz_core");
|
||||
ignoreMappings.add("hbm:tile.watz_hatch");
|
||||
ignoreMappings.add("hbm:tile.marker_structure");
|
||||
|
||||
/// REMAP ///
|
||||
remapItems.put("hbm:item.gadget_explosive8", ModItems.early_explosive_lenses);
|
||||
|
||||
@ -21,6 +21,7 @@ import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
||||
import net.minecraft.client.settings.GameSettings;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.EnumAction;
|
||||
@ -28,14 +29,16 @@ import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.client.ForgeHooksClient;
|
||||
import net.minecraftforge.client.event.DrawBlockHighlightEvent;
|
||||
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||
import net.minecraftforge.client.event.EntityViewRenderEvent.FogColors;
|
||||
import net.minecraftforge.client.event.EntityViewRenderEvent.FogDensity;
|
||||
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
|
||||
import net.minecraftforge.client.event.RenderPlayerEvent;
|
||||
import net.minecraftforge.common.ForgeModContainer;
|
||||
|
||||
public class ModEventHandlerRenderer {
|
||||
|
||||
@ -374,14 +377,10 @@ public class ModEventHandlerRenderer {
|
||||
public void tintFog(FogColors event) {
|
||||
|
||||
EntityPlayer player = MainRegistry.proxy.me();
|
||||
BiomeGenBase biome = player.worldObj.getBiomeGenForCoords((int) Math.floor(player.posX), (int) Math.floor(player.posZ));
|
||||
|
||||
if(biome instanceof BiomeGenCraterBase) {
|
||||
int color = ForgeHooksClient.getSkyBlendColour(player.worldObj, (int) Math.floor(player.posX), (int) Math.floor(player.posY), (int) Math.floor(player.posZ));
|
||||
event.red = ((color & 0xff0000) >> 16) / 255F;
|
||||
event.green = ((color & 0x00ff00) >> 8) / 255F;
|
||||
event.blue = (color & 0x0000ff) / 255F;
|
||||
}
|
||||
Vec3 color = getFogBlendColor(player.worldObj, (int) Math.floor(player.posX), (int) Math.floor(player.posZ), event.renderPartialTicks);
|
||||
event.red = (float) color.xCoord;
|
||||
event.green = (float) color.yCoord;
|
||||
event.blue = (float) color.zCoord;
|
||||
|
||||
float soot = (float) (renderSoot - RadiationConfig.sootFogThreshold);
|
||||
float sootColor = 0.15F;
|
||||
@ -404,4 +403,71 @@ public class ModEventHandlerRenderer {
|
||||
GL11.glTranslated(horizontal * mult, vertical * mult, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean fogInit = false;
|
||||
private static int fogX;
|
||||
private static int fogZ;
|
||||
private static Vec3 fogRGBMultiplier;
|
||||
|
||||
/** Same procedure as getting the blended sky color but for fog */
|
||||
public static Vec3 getFogBlendColor(World world, int playerX, int playerZ, double partialTicks) {
|
||||
|
||||
if(playerX == fogX && playerZ == fogZ && fogInit) return fogRGBMultiplier;
|
||||
|
||||
fogInit = true;
|
||||
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
||||
int[] ranges = ForgeModContainer.blendRanges;
|
||||
int distance = 0;
|
||||
|
||||
if(settings.fancyGraphics && settings.renderDistanceChunks >= 0 && settings.renderDistanceChunks < ranges.length) {
|
||||
distance = ranges[settings.renderDistanceChunks];
|
||||
}
|
||||
|
||||
float r = 0F;
|
||||
float g = 0F;
|
||||
float b = 0F;
|
||||
|
||||
int divider = 0;
|
||||
|
||||
for(int x = -distance; x <= distance; x++) {
|
||||
for(int z = -distance; z <= distance; z++) {
|
||||
BiomeGenBase biome = world.getBiomeGenForCoords(playerX + x, playerZ + z);
|
||||
Vec3 color = getBiomeFogColors(world, biome, partialTicks);
|
||||
r += color.xCoord;
|
||||
g += color.yCoord;
|
||||
b += color.zCoord;
|
||||
divider++;
|
||||
}
|
||||
}
|
||||
|
||||
fogX = playerX;
|
||||
fogZ = playerZ;
|
||||
|
||||
fogRGBMultiplier = Vec3.createVectorHelper(r / divider, g / divider, b / divider);
|
||||
return fogRGBMultiplier;
|
||||
}
|
||||
|
||||
/** Returns the current biome's fog color adjusted for brightness if in a crater, or the world's cached fog color if not */
|
||||
public static Vec3 getBiomeFogColors(World world, BiomeGenBase biome, double partialTicks) {
|
||||
|
||||
Vec3 worldFog = world.getFogColor((float) partialTicks);
|
||||
double r = worldFog.xCoord;
|
||||
double g = worldFog.yCoord;
|
||||
double b = worldFog.zCoord;
|
||||
|
||||
if(biome instanceof BiomeGenCraterBase) {
|
||||
int color = biome.getSkyColorByTemp(biome.temperature);
|
||||
r = ((color & 0xff0000) >> 16) / 255F;
|
||||
g = ((color & 0x00ff00) >> 8) / 255F;
|
||||
b = (color & 0x0000ff) / 255F;
|
||||
|
||||
float celestialAngle = world.getCelestialAngle((float) partialTicks);
|
||||
float skyBrightness = MathHelper.clamp_float(MathHelper.cos(celestialAngle * (float) Math.PI * 2.0F) * 2.0F + 0.5F, 0F, 1F);
|
||||
r *= skyBrightness;
|
||||
g *= skyBrightness;
|
||||
b *= skyBrightness;
|
||||
}
|
||||
|
||||
return Vec3.createVectorHelper(r, g, b);
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,8 +15,6 @@ public class PacketDispatcher {
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
//Machine type for marker rendering
|
||||
wrapper.registerMessage(TEStructurePacket.Handler.class, TEStructurePacket.class, i++, Side.CLIENT);
|
||||
//Fluid packet for GUI
|
||||
wrapper.registerMessage(TEFluidPacket.Handler.class, TEFluidPacket.class, i++, Side.CLIENT);
|
||||
//Sound packet that keeps client and server separated
|
||||
|
||||
@ -1,62 +0,0 @@
|
||||
package com.hbm.packet;
|
||||
|
||||
import com.hbm.tileentity.machine.TileEntityStructureMarker;
|
||||
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TEStructurePacket implements IMessage {
|
||||
|
||||
int x;
|
||||
int y;
|
||||
int z;
|
||||
int type;
|
||||
|
||||
public TEStructurePacket()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TEStructurePacket(int x, int y, int z, int type)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fromBytes(ByteBuf buf) {
|
||||
x = buf.readInt();
|
||||
y = buf.readInt();
|
||||
z = buf.readInt();
|
||||
type = buf.readInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toBytes(ByteBuf buf) {
|
||||
buf.writeInt(x);
|
||||
buf.writeInt(y);
|
||||
buf.writeInt(z);
|
||||
buf.writeInt(type);
|
||||
}
|
||||
|
||||
public static class Handler implements IMessageHandler<TEStructurePacket, IMessage> {
|
||||
|
||||
@Override
|
||||
public IMessage onMessage(TEStructurePacket m, MessageContext ctx) {
|
||||
TileEntity te = Minecraft.getMinecraft().theWorld.getTileEntity(m.x, m.y, m.z);
|
||||
|
||||
if (te != null && te instanceof TileEntityStructureMarker) {
|
||||
|
||||
TileEntityStructureMarker marker = (TileEntityStructureMarker) te;
|
||||
marker.type = m.type;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -41,31 +41,35 @@ public class RenderBlockMultipass implements ISimpleBlockRenderingHandler {
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
IBlockMultiPass multi = (IBlockMultiPass) block;
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1.0F, 0.0F);
|
||||
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 0, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 1, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1.0F);
|
||||
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 2, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 3, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 4, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 5, metadata));
|
||||
tessellator.draw();
|
||||
for(int i = 0; i < (multi.shouldRenderItemMulti() ? multi.getPasses() : 1); i++) {
|
||||
this.currentPass = i;
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1.0F, 0.0F);
|
||||
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 0, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 1, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1.0F);
|
||||
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 2, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 3, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 4, metadata));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, renderer.getBlockIconFromSideAndMetadata(block, 5, metadata));
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
/** terrible hack to make this shit work */
|
||||
if(block == ModBlocks.ore_random) {
|
||||
|
||||
@ -1,239 +0,0 @@
|
||||
package com.hbm.render.tileentity;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL14;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.tileentity.machine.TileEntityStructureMarker;
|
||||
import com.hbm.world.machine.FWatz;
|
||||
import com.hbm.world.machine.NuclearReactor;
|
||||
import com.hbm.world.machine.Watz;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderStructureMaker extends TileEntitySpecialRenderer {
|
||||
|
||||
float pixel = 1F/16F;
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) x, (float) y, (float) z);
|
||||
GL11.glRotatef(180, 0F, 0F, 1F);
|
||||
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL14.glBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
|
||||
GL14.glBlendEquation(GL14.GL_FUNC_ADD);
|
||||
GL11.glColor4f(0.5f, 0.25f, 1.0f, 1f);
|
||||
this.renderBlocks((int)x, (int)y, (int)z, ((TileEntityStructureMarker)tileentity).type, tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord));
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void renderBlocks(int x, int y, int z, int type, int meta) {
|
||||
int offsetX = 0;
|
||||
int offsetZ = 0;
|
||||
if(type == 0) {
|
||||
|
||||
if(meta == 6) {
|
||||
offsetZ = 3;
|
||||
}
|
||||
if(meta == 7) {
|
||||
offsetX = 3;
|
||||
}
|
||||
if(meta == 8) {
|
||||
offsetZ = -3;
|
||||
}
|
||||
if(meta == 9) {
|
||||
offsetX = -3;
|
||||
}
|
||||
|
||||
GL11.glTranslatef(-2 + offsetX, -3, -2 + offsetZ);
|
||||
for(int a = 0; a < 5; a++) {
|
||||
for(int b = 0; b < 5; b++) {
|
||||
for(int c = 0; c < 5; c++) {
|
||||
|
||||
Block block = Blocks.air;
|
||||
if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("R"))
|
||||
block = ModBlocks.reactor_element;
|
||||
if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("#"))
|
||||
block = ModBlocks.reactor_computer;
|
||||
if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("C"))
|
||||
block = ModBlocks.reactor_control;
|
||||
if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("A"))
|
||||
block = ModBlocks.reactor_hatch;
|
||||
if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("I"))
|
||||
block = ModBlocks.reactor_conductor;
|
||||
//if(NuclearReactor.array2[b][a].substring(c, c + 1).equals("B"))
|
||||
// block = ModBlocks.brick_concrete;
|
||||
if(block != Blocks.air) {
|
||||
RenderBlocks rb = RenderBlocks.getInstance();
|
||||
ResourceLocation loc1 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 1).getIconName().substring(4, rb.getBlockIconFromSide(block, 1).getIconName().length()) + ".png");
|
||||
ResourceLocation loc2 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 3).getIconName().substring(4, rb.getBlockIconFromSide(block, 3).getIconName().length()) + ".png");
|
||||
renderSmolBlockAt(loc1, loc2, a, b, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(type == 1) {
|
||||
|
||||
if(meta == 6) {
|
||||
offsetZ = 4;
|
||||
}
|
||||
if(meta == 7) {
|
||||
offsetX = 4;
|
||||
}
|
||||
if(meta == 8) {
|
||||
offsetZ = -4;
|
||||
}
|
||||
if(meta == 9) {
|
||||
offsetX = -4;
|
||||
}
|
||||
|
||||
GL11.glTranslatef(-3 + offsetX, -12, -3 + offsetZ);
|
||||
for(int a = 0; a < 7; a++) {
|
||||
for(int b = 0; b < 13; b++) {
|
||||
for(int c = 0; c < 7; c++) {
|
||||
|
||||
Block block = Blocks.air;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("C"))
|
||||
block = ModBlocks.reinforced_brick;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("A"))
|
||||
block = ModBlocks.watz_hatch;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("R"))
|
||||
block = ModBlocks.watz_control;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("S"))
|
||||
block = ModBlocks.watz_end;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("I"))
|
||||
block = ModBlocks.watz_conductor;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("#"))
|
||||
block = ModBlocks.watz_core;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("K"))
|
||||
block = ModBlocks.watz_cooler;
|
||||
if(Watz.array[b][a].substring(c, c + 1).equals("W"))
|
||||
block = ModBlocks.watz_element;
|
||||
if(block != Blocks.air) {
|
||||
RenderBlocks rb = RenderBlocks.getInstance();
|
||||
ResourceLocation loc1 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 1).getIconName().substring(4, rb.getBlockIconFromSide(block, 1).getIconName().length()) + ".png");
|
||||
ResourceLocation loc2 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 3).getIconName().substring(4, rb.getBlockIconFromSide(block, 3).getIconName().length()) + ".png");
|
||||
renderSmolBlockAt(loc1, loc2, a, b, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(type == 2) {
|
||||
|
||||
if(meta == 6) {
|
||||
offsetZ = 10;
|
||||
}
|
||||
if(meta == 7) {
|
||||
offsetX = 10;
|
||||
}
|
||||
if(meta == 8) {
|
||||
offsetZ = -10;
|
||||
}
|
||||
if(meta == 9) {
|
||||
offsetX = -10;
|
||||
}
|
||||
|
||||
GL11.glTranslatef(-9 + offsetX, -18, -9 + offsetZ);
|
||||
for(int a = 0; a < 19; a++) {
|
||||
for(int b = 0; b < 19; b++) {
|
||||
for(int c = 0; c < 19; c++) {
|
||||
|
||||
Block block = Blocks.air;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("X"))
|
||||
block = ModBlocks.fwatz_scaffold;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("H"))
|
||||
block = ModBlocks.fwatz_hatch;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("S"))
|
||||
block = ModBlocks.fwatz_cooler;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("T"))
|
||||
block = ModBlocks.fwatz_tank;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("M"))
|
||||
block = ModBlocks.fwatz_conductor;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("C"))
|
||||
block = ModBlocks.fwatz_computer;
|
||||
if(FWatz.fwatz[18 - b][a].substring(c, c + 1).equals("#"))
|
||||
block = ModBlocks.fwatz_core;
|
||||
if(block != Blocks.air) {
|
||||
RenderBlocks rb = RenderBlocks.getInstance();
|
||||
ResourceLocation loc1 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 1).getIconName().substring(4, rb.getBlockIconFromSide(block, 1).getIconName().length()) + ".png");
|
||||
ResourceLocation loc2 = new ResourceLocation(RefStrings.MODID + ":textures/blocks/" + rb.getBlockIconFromSide(block, 3).getIconName().substring(4, rb.getBlockIconFromSide(block, 3).getIconName().length()) + ".png");
|
||||
renderSmolBlockAt(loc1, loc2, a, b, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void renderSmolBlockAt(ResourceLocation loc1, ResourceLocation loc2, int x, int y, int z) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(x, y, z);
|
||||
GL11.glRotatef(180, 0F, 0F, 1F);
|
||||
Tessellator tesseract = Tessellator.instance;
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc2);
|
||||
tesseract.draw();
|
||||
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc2);
|
||||
tesseract.draw();
|
||||
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc2);
|
||||
tesseract.draw();
|
||||
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc2);
|
||||
tesseract.draw();
|
||||
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc1);
|
||||
tesseract.draw();
|
||||
|
||||
tesseract.startDrawingQuads();
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 1, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 11 * pixel / 2, 0, 0);
|
||||
tesseract.addVertexWithUV(1 - 11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 0, 1);
|
||||
tesseract.addVertexWithUV(11 * pixel / 2, 11 * pixel / 2, 1 - 11 * pixel / 2, 1, 1);
|
||||
this.bindTexture(loc1);
|
||||
tesseract.draw();
|
||||
GL11.glPopMatrix();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -44,6 +44,7 @@ public class RenderAccessoryUtility {
|
||||
private static ResourceLocation pheo = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapePheo.png");
|
||||
private static ResourceLocation vaer = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeVaer.png");
|
||||
private static ResourceLocation adam = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeAdam.png");
|
||||
private static ResourceLocation alcater = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeAlcater.png");
|
||||
|
||||
public static ResourceLocation getCloakFromPlayer(EntityPlayer player) {
|
||||
|
||||
@ -51,7 +52,7 @@ public class RenderAccessoryUtility {
|
||||
String name = player.getDisplayName();
|
||||
|
||||
if(uuid.equals(Library.HbMinecraft)) {
|
||||
return (MainRegistry.polaroidID == 11 ? hbm : hbm2);
|
||||
return (MainRegistry.polaroidID == 11 ? hbm2 : hbm);
|
||||
}
|
||||
|
||||
if(uuid.equals(Library.Drillgon)) {
|
||||
@ -123,6 +124,9 @@ public class RenderAccessoryUtility {
|
||||
if(uuid.equals(Library.Adam29Adam29)) {
|
||||
return adam;
|
||||
}
|
||||
if(uuid.equals(Library.Alcater)) {
|
||||
return alcater;
|
||||
}
|
||||
if(Library.contributors.contains(uuid)) {
|
||||
return wiki;
|
||||
}
|
||||
|
||||
@ -82,9 +82,7 @@ public class TileMappings {
|
||||
put(TileEntityConverterRfHe.class, "tileentity_converter_rfhe");
|
||||
put(TileEntityMachineSchrabidiumTransmutator.class, "tileentity_schrabidium_transmutator");
|
||||
put(TileEntityMachineDiesel.class, "tileentity_diesel_generator");
|
||||
put(TileEntityWatzCore.class, "tileentity_watz_multiblock");
|
||||
put(TileEntityMachineShredder.class, "tileentity_machine_shredder");
|
||||
put(TileEntityMachineCMBFactory.class, "tileentity_machine_cmb");
|
||||
put(TileEntityFWatzCore.class, "tileentity_fwatz_multiblock");
|
||||
put(TileEntityMachineTeleporter.class, "tileentity_teleblock");
|
||||
put(TileEntityHatch.class, "tileentity_seal_lid");
|
||||
@ -94,7 +92,6 @@ public class TileMappings {
|
||||
put(TileEntityMachineCyclotron.class, "tileentity_cyclotron");
|
||||
put(TileEntityMachineExposureChamber.class, "tileentity_exposure_chamber");
|
||||
put(TileEntityMachineRTG.class, "tileentity_machine_rtg");
|
||||
put(TileEntityStructureMarker.class, "tileentity_structure_marker");
|
||||
put(TileEntityMachineExcavator.class, "tileentity_ntm_excavator");
|
||||
put(TileEntityFluidDuctSimple.class, "tileentity_universal_duct_simple");
|
||||
put(TileEntityFluidDuct.class, "tileentity_universal_duct");
|
||||
|
||||
@ -1,385 +0,0 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import com.hbm.interfaces.IFluidAcceptor;
|
||||
import com.hbm.interfaces.IFluidContainer;
|
||||
import com.hbm.inventory.container.ContainerMachineCMBFactory;
|
||||
import com.hbm.inventory.fluid.FluidType;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.fluid.tank.FluidTank;
|
||||
import com.hbm.inventory.gui.GUIMachineCMBFactory;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
import com.hbm.packet.AuxElectricityPacket;
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
import com.hbm.tileentity.IGUIProvider;
|
||||
import com.hbm.tileentity.TileEntityLoadedBase;
|
||||
|
||||
import api.hbm.energy.IBatteryItem;
|
||||
import api.hbm.energy.IEnergyUser;
|
||||
import api.hbm.fluid.IFluidStandardReceiver;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityMachineCMBFactory extends TileEntityLoadedBase implements ISidedInventory, IEnergyUser, IFluidContainer, IFluidAcceptor, IFluidStandardReceiver, IGUIProvider {
|
||||
|
||||
private ItemStack slots[];
|
||||
|
||||
public long power = 0;
|
||||
public int process = 0;
|
||||
public int soundCycle = 0;
|
||||
public static final long maxPower = 100000000;
|
||||
public static final int processSpeed = 200;
|
||||
public FluidTank tank;
|
||||
|
||||
private static final int[] slots_top = new int[] {1, 3};
|
||||
private static final int[] slots_bottom = new int[] {0, 2, 4};
|
||||
private static final int[] slots_side = new int[] {0, 2};
|
||||
|
||||
private String customName;
|
||||
|
||||
public TileEntityMachineCMBFactory() {
|
||||
slots = new ItemStack[6];
|
||||
tank = new FluidTank(Fluids.WATZ, 8000, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSizeInventory() {
|
||||
return slots.length;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int i) {
|
||||
return slots[i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int i) {
|
||||
if(slots[i] != null)
|
||||
{
|
||||
ItemStack itemStack = slots[i];
|
||||
slots[i] = null;
|
||||
return itemStack;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int i, ItemStack itemStack) {
|
||||
slots[i] = itemStack;
|
||||
if(itemStack != null && itemStack.stackSize > getInventoryStackLimit())
|
||||
{
|
||||
itemStack.stackSize = getInventoryStackLimit();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return this.hasCustomInventoryName() ? this.customName : "container.machineCMB";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInventoryName() {
|
||||
return this.customName != null && this.customName.length() > 0;
|
||||
}
|
||||
|
||||
public void setCustomName(String name) {
|
||||
this.customName = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit() {
|
||||
return 64;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||
if(worldObj.getTileEntity(xCoord, yCoord, zCoord) != this)
|
||||
{
|
||||
return false;
|
||||
}else{
|
||||
return player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <=64;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory() {}
|
||||
@Override
|
||||
public void closeInventory() {}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int i, ItemStack stack) {
|
||||
switch(i)
|
||||
{
|
||||
case 0:
|
||||
if(stack.getItem() instanceof IBatteryItem)
|
||||
return true;
|
||||
break;
|
||||
case 1:
|
||||
if(stack.getItem() == ModItems.ingot_magnetized_tungsten || stack.getItem() == ModItems.powder_magnetized_tungsten)
|
||||
return true;
|
||||
break;
|
||||
case 2:
|
||||
if(stack.getItem() == ModItems.bucket_mud)
|
||||
return true;
|
||||
break;
|
||||
case 3:
|
||||
if(stack.getItem() == ModItems.ingot_advanced_alloy || stack.getItem() == ModItems.powder_advanced_alloy)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int i, int j) {
|
||||
if(slots[i] != null)
|
||||
{
|
||||
if(slots[i].stackSize <= j)
|
||||
{
|
||||
ItemStack itemStack = slots[i];
|
||||
slots[i] = null;
|
||||
return itemStack;
|
||||
}
|
||||
ItemStack itemStack1 = slots[i].splitStack(j);
|
||||
if (slots[i].stackSize == 0)
|
||||
{
|
||||
slots[i] = null;
|
||||
}
|
||||
|
||||
return itemStack1;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
power = nbt.getLong("power");
|
||||
tank.readFromNBT(nbt, "watz");
|
||||
process = nbt.getShort("process");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
{
|
||||
NBTTagCompound nbt1 = list.getCompoundTagAt(i);
|
||||
byte b0 = nbt1.getByte("slot");
|
||||
if(b0 >= 0 && b0 < slots.length)
|
||||
{
|
||||
slots[b0] = ItemStack.loadItemStackFromNBT(nbt1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setLong("power", power);
|
||||
tank.writeToNBT(nbt, "watz");
|
||||
nbt.setShort("process", (short) process);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
{
|
||||
if(slots[i] != null)
|
||||
{
|
||||
NBTTagCompound nbt1 = new NBTTagCompound();
|
||||
nbt1.setByte("slot", (byte)i);
|
||||
slots[i].writeToNBT(nbt1);
|
||||
list.appendTag(nbt1);
|
||||
}
|
||||
}
|
||||
nbt.setTag("items", list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getAccessibleSlotsFromSide(int p_94128_1_)
|
||||
{
|
||||
return p_94128_1_ == 0 ? slots_bottom : (p_94128_1_ == 1 ? slots_top : slots_side);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInsertItem(int i, ItemStack itemStack, int j) {
|
||||
return this.isItemValidForSlot(i, itemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExtractItem(int i, ItemStack itemStack, int j) {
|
||||
if(i == 4)
|
||||
return true;
|
||||
if(i == 0)
|
||||
if (itemStack.getItem() instanceof IBatteryItem && ((IBatteryItem)itemStack.getItem()).getCharge(itemStack) == 0)
|
||||
return true;
|
||||
if(i == 2)
|
||||
if(itemStack.getItem() == Items.bucket)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getPowerScaled(long i) {
|
||||
return (power * i) / maxPower;
|
||||
}
|
||||
|
||||
public int getProgressScaled(int i) {
|
||||
return (process * i) / processSpeed;
|
||||
}
|
||||
|
||||
public boolean canProcess() {
|
||||
|
||||
boolean b = false;
|
||||
|
||||
if(tank.getFill() >= 1 && power >= 100000 && slots[1] != null && slots[3] != null && (slots[4] == null || slots[4].stackSize <= 60))
|
||||
{
|
||||
boolean flag0 = slots[1].getItem() == ModItems.ingot_magnetized_tungsten || slots[1].getItem() == ModItems.powder_magnetized_tungsten;
|
||||
boolean flag1 = slots[3].getItem() == ModItems.ingot_advanced_alloy || slots[3].getItem() == ModItems.powder_advanced_alloy;
|
||||
|
||||
b = flag0 && flag1;
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
public boolean isProcessing() {
|
||||
return process > 0;
|
||||
}
|
||||
|
||||
public void process() {
|
||||
tank.setFill(tank.getFill() - 1);
|
||||
power -= 100000;
|
||||
|
||||
process++;
|
||||
|
||||
if(process >= processSpeed) {
|
||||
|
||||
slots[1].stackSize--;
|
||||
if (slots[1].stackSize == 0) {
|
||||
slots[1] = null;
|
||||
}
|
||||
|
||||
slots[3].stackSize--;
|
||||
if (slots[3].stackSize == 0) {
|
||||
slots[3] = null;
|
||||
}
|
||||
|
||||
if(slots[4] == null)
|
||||
{
|
||||
slots[4] = new ItemStack(ModItems.ingot_combine_steel, 4);
|
||||
} else {
|
||||
|
||||
slots[4].stackSize += 4;
|
||||
}
|
||||
|
||||
process = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
|
||||
if (!worldObj.isRemote) {
|
||||
|
||||
this.updateConnections();
|
||||
|
||||
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
||||
|
||||
tank.loadTank(2, 5, slots);
|
||||
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||
|
||||
if (canProcess()) {
|
||||
process();
|
||||
if(soundCycle == 0)
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "minecart.base", 1.0F, 1.5F);
|
||||
soundCycle++;
|
||||
|
||||
if(soundCycle >= 25)
|
||||
soundCycle = 0;
|
||||
} else {
|
||||
process = 0;
|
||||
}
|
||||
|
||||
PacketDispatcher.wrapper.sendToAllAround(new AuxElectricityPacket(xCoord, yCoord, zCoord, power), new TargetPoint(worldObj.provider.dimensionId, xCoord, yCoord, zCoord, 50));
|
||||
}
|
||||
}
|
||||
|
||||
private void updateConnections() {
|
||||
this.updateStandardConnections(worldObj, this);
|
||||
this.subscribeToAllAround(tank.getTankType(), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPower(long i) {
|
||||
power = i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getPower() {
|
||||
return power;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getMaxPower() {
|
||||
return maxPower;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFillForSync(int fill, int index) {
|
||||
tank.setFill(fill);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTypeForSync(FluidType type, int index) {
|
||||
tank.setTankType(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxFluidFill(FluidType type) {
|
||||
return type.name().equals(this.tank.getTankType().name()) ? tank.getMaxFill() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFluidFill(FluidType type) {
|
||||
return type.name().equals(this.tank.getTankType().name()) ? tank.getFill() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFluidFill(int i, FluidType type) {
|
||||
if(type.name().equals(tank.getTankType().name()))
|
||||
tank.setFill(i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FluidTank[] getReceivingTanks() {
|
||||
return new FluidTank[] { tank };
|
||||
}
|
||||
|
||||
@Override
|
||||
public FluidTank[] getAllTanks() {
|
||||
return new FluidTank[] { tank };
|
||||
}
|
||||
|
||||
@Override
|
||||
public Container provideContainer(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return new ContainerMachineCMBFactory(player.inventory, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return new GUIMachineCMBFactory(player.inventory, this);
|
||||
}
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
import com.hbm.packet.TEStructurePacket;
|
||||
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityStructureMarker extends TileEntity {
|
||||
|
||||
//0: Nuclear Reactor
|
||||
//1: Watz Power Plant
|
||||
//2: Fusionary Watz Plant
|
||||
public int type = 0;
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
|
||||
if(this.type > 2)
|
||||
type -= 3;
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
PacketDispatcher.wrapper.sendToAllAround(new TEStructurePacket(xCoord, yCoord, zCoord, type), new TargetPoint(worldObj.provider.dimensionId, xCoord, yCoord, zCoord, 250));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
type = nbt.getInteger("type");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setInteger("type", type);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,787 +0,0 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.config.BombConfig;
|
||||
import com.hbm.entity.effect.EntityCloudFleija;
|
||||
import com.hbm.entity.logic.EntityNukeExplosionMK3;
|
||||
import com.hbm.interfaces.IFluidAcceptor;
|
||||
import com.hbm.interfaces.IFluidContainer;
|
||||
import com.hbm.interfaces.IFluidSource;
|
||||
import com.hbm.interfaces.IReactor;
|
||||
import com.hbm.inventory.container.ContainerWatzCore;
|
||||
import com.hbm.inventory.fluid.FluidType;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.fluid.tank.FluidTank;
|
||||
import com.hbm.inventory.gui.GUIWatzCore;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.special.WatzFuel;
|
||||
import com.hbm.items.tool.ItemTitaniumFilter;
|
||||
import com.hbm.lib.Library;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.packet.AuxElectricityPacket;
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
import com.hbm.tileentity.IGUIProvider;
|
||||
import com.hbm.tileentity.TileEntityLoadedBase;
|
||||
|
||||
import api.hbm.energy.IEnergyGenerator;
|
||||
import api.hbm.fluid.IFluidStandardSender;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
@Deprecated
|
||||
public class TileEntityWatzCore extends TileEntityLoadedBase implements ISidedInventory, IReactor, IEnergyGenerator, IFluidContainer, IFluidSource, IFluidStandardSender, IGUIProvider {
|
||||
|
||||
public long power;
|
||||
public final static long maxPower = 100000000;
|
||||
public int heat;
|
||||
|
||||
public int heatMultiplier;
|
||||
public int powerMultiplier;
|
||||
public int decayMultiplier;
|
||||
|
||||
public int heatList;
|
||||
public int wasteList;
|
||||
public int powerList;
|
||||
|
||||
Random rand = new Random();
|
||||
|
||||
private ItemStack slots[];
|
||||
public int age = 0;
|
||||
public List<IFluidAcceptor> list1 = new ArrayList();
|
||||
public FluidTank tank;
|
||||
|
||||
private String customName;
|
||||
|
||||
public TileEntityWatzCore() {
|
||||
slots = new ItemStack[40];
|
||||
tank = new FluidTank(Fluids.WATZ, 64000, 0);
|
||||
}
|
||||
@Override
|
||||
public int getSizeInventory() {
|
||||
return slots.length;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int i) {
|
||||
return slots[i];
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int i) {
|
||||
if(slots[i] != null)
|
||||
{
|
||||
ItemStack itemStack = slots[i];
|
||||
slots[i] = null;
|
||||
return itemStack;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int i, ItemStack itemStack) {
|
||||
slots[i] = itemStack;
|
||||
if(itemStack != null && itemStack.stackSize > getInventoryStackLimit())
|
||||
{
|
||||
itemStack.stackSize = getInventoryStackLimit();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return this.hasCustomInventoryName() ? this.customName : "container.watzPowerplant";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInventoryName() {
|
||||
return this.customName != null && this.customName.length() > 0;
|
||||
}
|
||||
|
||||
public void setCustomName(String name) {
|
||||
this.customName = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit() {
|
||||
return 64;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||
if(worldObj.getTileEntity(xCoord, yCoord, zCoord) != this)
|
||||
{
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory() {}
|
||||
|
||||
@Override
|
||||
public void closeInventory() {}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int i, ItemStack itemStack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int i, int j) {
|
||||
if(slots[i] != null)
|
||||
{
|
||||
if(slots[i].stackSize <= j)
|
||||
{
|
||||
ItemStack itemStack = slots[i];
|
||||
slots[i] = null;
|
||||
return itemStack;
|
||||
}
|
||||
ItemStack itemStack1 = slots[i].splitStack(j);
|
||||
if (slots[i].stackSize == 0)
|
||||
{
|
||||
slots[i] = null;
|
||||
}
|
||||
|
||||
return itemStack1;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getAccessibleSlotsFromSide(int p_94128_1_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInsertItem(int p_102007_1_, ItemStack p_102007_2_, int p_102007_3_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExtractItem(int p_102008_1_, ItemStack p_102008_2_, int p_102008_3_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
power = nbt.getLong("power");
|
||||
tank.readFromNBT(nbt, "watz");
|
||||
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
{
|
||||
NBTTagCompound nbt1 = list.getCompoundTagAt(i);
|
||||
byte b0 = nbt1.getByte("slot");
|
||||
if(b0 >= 0 && b0 < slots.length)
|
||||
{
|
||||
slots[b0] = ItemStack.loadItemStackFromNBT(nbt1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
|
||||
nbt.setLong("power", power);
|
||||
tank.writeToNBT(nbt, "watz");
|
||||
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
{
|
||||
if(slots[i] != null)
|
||||
{
|
||||
NBTTagCompound nbt1 = new NBTTagCompound();
|
||||
nbt1.setByte("slot", (byte)i);
|
||||
slots[i].writeToNBT(nbt1);
|
||||
list.appendTag(nbt1);
|
||||
}
|
||||
}
|
||||
nbt.setTag("items", list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isStructureValid(World world) {
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 3, this.yCoord + i, this.zCoord - 1) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 3, this.yCoord + i, this.zCoord + 1) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 2, this.yCoord + i, this.zCoord - 2) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 2, this.yCoord + i, this.zCoord - 1) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 2, this.yCoord + i, this.zCoord) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 2, this.yCoord + i, this.zCoord + 1) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 2, this.yCoord + i, this.zCoord + 2) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord - 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord - 2) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord - 1) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord) != ModBlocks.watz_cooler)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord + 1) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord + 2) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 1, this.yCoord + i, this.zCoord + 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 0, this.yCoord + i, this.zCoord - 2) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 0, this.yCoord + i, this.zCoord - 1) != ModBlocks.watz_cooler)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 0, this.yCoord + i, this.zCoord + 1) != ModBlocks.watz_cooler)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 0, this.yCoord + i, this.zCoord + 2) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord - 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord - 2) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord - 1) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord) != ModBlocks.watz_cooler)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord + 1) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord + 2) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 1, this.yCoord + i, this.zCoord + 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 2, this.yCoord + i, this.zCoord - 2) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 2, this.yCoord + i, this.zCoord - 1) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 2, this.yCoord + i, this.zCoord) != ModBlocks.watz_control)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 2, this.yCoord + i, this.zCoord + 1) != ModBlocks.watz_element)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 2, this.yCoord + i, this.zCoord + 2) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 3, this.yCoord + i, this.zCoord - 1) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = -5; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 3, this.yCoord + i, this.zCoord + 1) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(int i = -5; i <= -1; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord) != ModBlocks.watz_conductor)
|
||||
return false;
|
||||
}
|
||||
for(int i = 1; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord) != ModBlocks.watz_conductor)
|
||||
return false;
|
||||
}
|
||||
|
||||
for(int i = -5; i <= -1; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 3, this.yCoord + i, this.zCoord) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = 1; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + 3, this.yCoord + i, this.zCoord) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
for(int i = -5; i <= -1; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 3, this.yCoord + i, this.zCoord) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = 1; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord - 3, this.yCoord + i, this.zCoord) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
for(int i = -5; i <= -1; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord + 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = 1; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord + 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
for(int i = -5; i <= -1; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord - 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
for(int i = 1; i <= 5; i++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord, this.yCoord + i, this.zCoord - 3) != ModBlocks.reinforced_brick)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(world.getBlock(this.xCoord + 3, this.yCoord, this.zCoord) != ModBlocks.watz_hatch)
|
||||
return false;
|
||||
|
||||
if(world.getBlock(this.xCoord - 3, this.yCoord, this.zCoord) != ModBlocks.watz_hatch)
|
||||
return false;
|
||||
|
||||
if(world.getBlock(this.xCoord, this.yCoord, this.zCoord + 3) != ModBlocks.watz_hatch)
|
||||
return false;
|
||||
|
||||
if(world.getBlock(this.xCoord, this.yCoord, this.zCoord - 3) != ModBlocks.watz_hatch)
|
||||
return false;
|
||||
|
||||
for(int i = -3; i <= 3; i++)
|
||||
{
|
||||
for(int j = -3; j <= 3; j++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + i, this.yCoord + 6, this.zCoord + j) != ModBlocks.watz_end && world.getBlock(this.xCoord + i, this.yCoord + 6, this.zCoord + j) != ModBlocks.watz_conductor)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for(int i = -3; i <= 3; i++)
|
||||
{
|
||||
for(int j = -3; j <= 3; j++)
|
||||
{
|
||||
if(world.getBlock(this.xCoord + i, this.yCoord - 6, this.zCoord + j) != ModBlocks.watz_end && world.getBlock(this.xCoord + i, this.yCoord - 6, this.zCoord + j) != ModBlocks.watz_conductor)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCoatingValid(World world) {
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasFuse() {
|
||||
return slots[38] != null && slots[38].getItem() == ModItems.titanium_filter && ItemTitaniumFilter.getDura(slots[38]) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWaterScaled(int i) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getPowerScaled(long i) {
|
||||
return (power/100 * i) / (maxPower/100);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCoolantScaled(int i) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeatScaled(int i) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
|
||||
if(this.isStructureValid(this.worldObj)) {
|
||||
|
||||
powerMultiplier = 100;
|
||||
heatMultiplier = 100;
|
||||
decayMultiplier = 100;
|
||||
powerList = 0;
|
||||
heatList = 0;
|
||||
heat = 0;
|
||||
|
||||
if (hasFuse()) {
|
||||
|
||||
//Adds power and heat
|
||||
for (int i = 0; i < 36; i++) {
|
||||
surveyPellet(slots[i]);
|
||||
}
|
||||
//Calculates modifiers
|
||||
for (int i = 0; i < 36; i++) {
|
||||
surveyPelletAgain(slots[i]);
|
||||
}
|
||||
//Decays pellet by (DECAYMULTIPLIER * DEFAULTDECAY=100)/100 ticks
|
||||
for (int i = 0; i < 36; i++) {
|
||||
decayPellet(i);
|
||||
}
|
||||
}
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
age++;
|
||||
if (age >= 20) {
|
||||
age = 0;
|
||||
}
|
||||
|
||||
this.sendPower(worldObj, xCoord, yCoord + 7, zCoord, ForgeDirection.UP);
|
||||
this.sendPower(worldObj, xCoord, yCoord - 7, zCoord, ForgeDirection.DOWN);
|
||||
|
||||
this.sendFluid(tank, worldObj, xCoord + 4, yCoord, zCoord, Library.POS_X);
|
||||
this.sendFluid(tank, worldObj, xCoord, yCoord, zCoord + 4, Library.POS_Z);
|
||||
this.sendFluid(tank, worldObj, xCoord - 4, yCoord, zCoord, Library.NEG_X);
|
||||
this.sendFluid(tank, worldObj, xCoord, yCoord, zCoord - 4, Library.NEG_Z);
|
||||
|
||||
if (age == 9 || age == 19) {
|
||||
fillFluidInit(tank.getTankType());
|
||||
}
|
||||
|
||||
//Only damages filter when heat is present (thus waste being created)
|
||||
if (heatList > 0) {
|
||||
ItemTitaniumFilter.setDura(slots[38], ItemTitaniumFilter.getDura(slots[38]) - 1);
|
||||
}
|
||||
|
||||
heatList *= heatMultiplier;
|
||||
heatList /= 100;
|
||||
heat = heatList;
|
||||
|
||||
powerList *= powerMultiplier;
|
||||
powerList /= 100;
|
||||
power += powerList;
|
||||
|
||||
tank.setFill(tank.getFill() + ((decayMultiplier * heat) / 100) / 100);
|
||||
|
||||
if(power > maxPower)
|
||||
power = maxPower;
|
||||
|
||||
//Gets rid of 1/4 of the total waste, if at least one access hatch is not occupied
|
||||
if(tank.getFill() > tank.getMaxFill())
|
||||
emptyWaste();
|
||||
|
||||
power = Library.chargeItemsFromTE(slots, 37, power, maxPower);
|
||||
|
||||
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||
tank.unloadTank(36, 39, slots);
|
||||
|
||||
PacketDispatcher.wrapper.sendToAllAround(new AuxElectricityPacket(xCoord, yCoord, zCoord, power), new TargetPoint(worldObj.provider.dimensionId, xCoord, yCoord, zCoord, 50));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void surveyPellet(ItemStack stack) {
|
||||
if(stack != null && stack.getItem() instanceof WatzFuel)
|
||||
{
|
||||
WatzFuel fuel = (WatzFuel)stack.getItem();
|
||||
this.powerList += fuel.power;
|
||||
this.heatList += fuel.heat;
|
||||
}
|
||||
}
|
||||
|
||||
public void surveyPelletAgain(ItemStack stack) {
|
||||
if(stack != null && stack.getItem() instanceof WatzFuel)
|
||||
{
|
||||
WatzFuel fuel = (WatzFuel)stack.getItem();
|
||||
this.powerMultiplier *= fuel.powerMultiplier;
|
||||
this.heatMultiplier *= fuel.heatMultiplier;
|
||||
this.decayMultiplier *= fuel.decayMultiplier;
|
||||
}
|
||||
}
|
||||
|
||||
public void decayPellet(int i) {
|
||||
if(slots[i] != null && slots[i].getItem() instanceof WatzFuel)
|
||||
{
|
||||
WatzFuel fuel = (WatzFuel)slots[i].getItem();
|
||||
WatzFuel.setLifeTime(slots[i], WatzFuel.getLifeTime(slots[i]) + this.decayMultiplier);
|
||||
WatzFuel.updateDamage(slots[i]);
|
||||
if(WatzFuel.getLifeTime(slots[i]) >= fuel.lifeTime)
|
||||
{
|
||||
if(slots[i].getItem() == ModItems.pellet_lead)
|
||||
slots[i] = new ItemStack(ModItems.powder_lead);
|
||||
else
|
||||
slots[i] = new ItemStack(ModItems.pellet_lead);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void emptyWaste() {
|
||||
tank.setFill(tank.getFill() / 4);
|
||||
tank.setFill(tank.getFill() * 3);
|
||||
if (!worldObj.isRemote) {
|
||||
if (this.worldObj.getBlock(this.xCoord + 4, this.yCoord, this.zCoord) == Blocks.air)
|
||||
{
|
||||
this.worldObj.setBlock(this.xCoord + 4, this.yCoord, this.zCoord, ModBlocks.mud_block);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "game.neutral.swim.splash", 3.0F, 0.5F);
|
||||
}
|
||||
else if (this.worldObj.getBlock(this.xCoord - 4, this.yCoord, this.zCoord) == Blocks.air)
|
||||
{
|
||||
this.worldObj.setBlock(this.xCoord - 4, this.yCoord, this.zCoord, ModBlocks.mud_block);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "game.neutral.swim.splash", 3.0F, 0.5F);
|
||||
}
|
||||
else if (this.worldObj.getBlock(this.xCoord, this.yCoord, this.zCoord + 4) == Blocks.air)
|
||||
{
|
||||
this.worldObj.setBlock(this.xCoord, this.yCoord, this.zCoord + 4, ModBlocks.mud_block);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "game.neutral.swim.splash", 3.0F, 0.5F);
|
||||
}
|
||||
else if (this.worldObj.getBlock(this.xCoord, this.yCoord, this.zCoord - 4) == Blocks.air)
|
||||
{
|
||||
this.worldObj.setBlock(this.xCoord, this.yCoord, this.zCoord - 4, ModBlocks.mud_block);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "game.neutral.swim.splash", 3.0F, 0.5F);
|
||||
}
|
||||
else {
|
||||
List<EntityPlayer> players = worldObj.getEntitiesWithinAABB(EntityPlayer.class,
|
||||
AxisAlignedBB.getBoundingBox(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5, xCoord + 0.5, yCoord + 0.5, zCoord + 0.5).expand(50, 50, 50));
|
||||
|
||||
for(EntityPlayer player : players) {
|
||||
player.triggerAchievement(MainRegistry.achWatzBoom);
|
||||
}
|
||||
|
||||
if (rand.nextInt(10) != 0) {
|
||||
for (int i = -3; i <= 3; i++)
|
||||
for (int j = -5; j <= 5; j++)
|
||||
for (int k = -3; k <= 3; k++)
|
||||
if (rand.nextInt(2) == 0)
|
||||
this.worldObj.setBlock(this.xCoord + i, this.yCoord + j, this.zCoord + k,
|
||||
ModBlocks.mud_block);
|
||||
this.worldObj.setBlock(this.xCoord, this.yCoord, this.zCoord, ModBlocks.mud_block);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "game.neutral.swim.splash", 3.0F, 0.5F);
|
||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "random.explode", 3.0F, 0.75F);
|
||||
} else {
|
||||
EntityNukeExplosionMK3 ex = EntityNukeExplosionMK3.statFacFleija(worldObj, xCoord, yCoord, zCoord, BombConfig.fleijaRadius);
|
||||
if(!ex.isDead) {
|
||||
worldObj.spawnEntityInWorld(ex);
|
||||
EntityCloudFleija cloud = new EntityCloudFleija(worldObj, BombConfig.fleijaRadius);
|
||||
cloud.posX = xCoord + 0.5;
|
||||
cloud.posY = yCoord + 0.5;
|
||||
cloud.posZ = zCoord + 0.6;
|
||||
worldObj.spawnEntityInWorld(cloud);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getTact() {
|
||||
if(age >= 0 && age < 10)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getPower() {
|
||||
return power;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPower(long i) {
|
||||
this.power = i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getMaxPower() {
|
||||
return this.maxPower;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFillForSync(int fill, int index) {
|
||||
tank.setFill(fill);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTypeForSync(FluidType type, int index) {
|
||||
tank.setTankType(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillFluidInit(FluidType type) {
|
||||
fillFluid(this.xCoord + 4, this.yCoord, this.zCoord, getTact(), type);
|
||||
fillFluid(this.xCoord - 4, this.yCoord, this.zCoord, getTact(), type);
|
||||
fillFluid(this.xCoord, this.yCoord, this.zCoord + 4, getTact(), type);
|
||||
fillFluid(this.xCoord, this.yCoord, this.zCoord - 4, getTact(), type);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillFluid(int x, int y, int z, boolean newTact, FluidType type) {
|
||||
Library.transmitFluid(x, y, z, newTact, this, worldObj, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFluidFill(FluidType type) {
|
||||
return tank.getFill();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFluidFill(int i, FluidType type) {
|
||||
tank.setFill(i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<IFluidAcceptor> getFluidList(FluidType type) {
|
||||
return list1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearFluidList(FluidType type) {
|
||||
list1.clear();
|
||||
}
|
||||
@Override
|
||||
public FluidTank[] getSendingTanks() {
|
||||
return new FluidTank[] { tank };
|
||||
}
|
||||
|
||||
@Override
|
||||
public FluidTank[] getAllTanks() {
|
||||
return new FluidTank[] { tank };
|
||||
}
|
||||
@Override
|
||||
public Container provideContainer(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return new ContainerWatzCore(player.inventory, this);
|
||||
}
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return new GUIWatzCore(player.inventory, this);
|
||||
}
|
||||
}
|
||||
@ -87,6 +87,7 @@ public class TileEntityBarrel extends TileEntityMachineBase implements IFluidAcc
|
||||
public long transferFluid(FluidType type, int pressure, long fluid) {
|
||||
long toTransfer = Math.min(getDemand(type, pressure), fluid);
|
||||
tank.setFill(tank.getFill() + (int) toTransfer);
|
||||
this.markChanged();
|
||||
return fluid - toTransfer;
|
||||
}
|
||||
|
||||
@ -109,12 +110,6 @@ public class TileEntityBarrel extends TileEntityMachineBase implements IFluidAcc
|
||||
tank.setFill(transmitFluidFairly(worldObj, tank, this, tank.getFill(), this.mode == 0 || this.mode == 1, this.mode == 1 || this.mode == 2, getConPos()));
|
||||
this.sendingBrake = false;
|
||||
|
||||
age++;
|
||||
if(age >= 20) {
|
||||
age = 0;
|
||||
this.markChanged();
|
||||
}
|
||||
|
||||
if((mode == 1 || mode == 2) && (age == 9 || age == 19))
|
||||
fillFluidInit(tank.getTankType());
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@ public class ArmorUtil {
|
||||
ArmorRegistry.registerHazard(ModItems.euphemium_helmet, HazardClass.PARTICLE_COARSE, HazardClass.PARTICLE_FINE, HazardClass.GAS_CHLORINE, HazardClass.BACTERIA, HazardClass.GAS_MONOXIDE, HazardClass.LIGHT, HazardClass.SAND);
|
||||
ArmorRegistry.registerHazard(ModItems.rpa_helmet, HazardClass.PARTICLE_COARSE, HazardClass.PARTICLE_FINE, HazardClass.GAS_CHLORINE, HazardClass.BACTERIA, HazardClass.GAS_MONOXIDE, HazardClass.LIGHT, HazardClass.SAND);
|
||||
ArmorRegistry.registerHazard(ModItems.envsuit_helmet, HazardClass.PARTICLE_COARSE, HazardClass.PARTICLE_FINE, HazardClass.GAS_CHLORINE, HazardClass.BACTERIA, HazardClass.GAS_MONOXIDE, HazardClass.LIGHT, HazardClass.SAND);
|
||||
ArmorRegistry.registerHazard(ModItems.trenchmaster_helmet, HazardClass.PARTICLE_COARSE, HazardClass.PARTICLE_FINE, HazardClass.GAS_CHLORINE, HazardClass.BACTERIA, HazardClass.GAS_MONOXIDE, HazardClass.LIGHT, HazardClass.SAND);
|
||||
|
||||
//Ob ihr wirklich richtig steht, seht ihr wenn das Licht angeht!
|
||||
registerIfExists(Compat.MOD_GT6, "gt.armor.hazmat.universal.head", HazardClass.PARTICLE_COARSE, HazardClass.PARTICLE_FINE, HazardClass.GAS_CHLORINE, HazardClass.BACTERIA, HazardClass.GAS_MONOXIDE, HazardClass.LIGHT, HazardClass.SAND);
|
||||
|
||||
@ -1,208 +0,0 @@
|
||||
//Schematic to java Structure by jajo_11 | inspired by "MITHION'S .SCHEMATIC TO JAVA CONVERTINGTOOL"
|
||||
|
||||
package com.hbm.world.machine;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
|
||||
public class NuclearReactor extends WorldGenerator
|
||||
{
|
||||
public static String[][] array2 = new String[][] {
|
||||
{
|
||||
" ",
|
||||
" BBB ",
|
||||
" B B ",
|
||||
" BBB ",
|
||||
" "
|
||||
},
|
||||
{
|
||||
" BBB ",
|
||||
"BRCRB",
|
||||
"BCICB",
|
||||
"BRCRB",
|
||||
" BBB "
|
||||
},
|
||||
{
|
||||
" BAB ",
|
||||
"BRCRB",
|
||||
"AC#CA",
|
||||
"BRCRB",
|
||||
" BAB "
|
||||
},
|
||||
{
|
||||
" BBB ",
|
||||
"BRCRB",
|
||||
"BCICB",
|
||||
"BRCRB",
|
||||
" BBB "
|
||||
},
|
||||
{
|
||||
" ",
|
||||
" BBB ",
|
||||
" B B ",
|
||||
" BBB ",
|
||||
" "
|
||||
}
|
||||
};
|
||||
|
||||
Block Block1 = ModBlocks.brick_concrete;
|
||||
Block Block2 = ModBlocks.reactor_element;
|
||||
Block Block3 = ModBlocks.reactor_control;
|
||||
Block Block4 = ModBlocks.reactor_conductor;
|
||||
Block Block5 = ModBlocks.reactor_hatch;
|
||||
Block Block6 = ModBlocks.reactor_computer;
|
||||
|
||||
@Override
|
||||
public boolean generate(World world, Random rand, int x, int y, int z)
|
||||
{
|
||||
int i = rand.nextInt(1);
|
||||
|
||||
if(i == 0)
|
||||
{
|
||||
generate_r0(world, rand, x, y, z);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
public boolean generate_r0(World world, Random rand, int x, int y, int z)
|
||||
{
|
||||
x -= 2;
|
||||
z -= 2;
|
||||
|
||||
world.setBlock(x + 0, y + 0, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 2, ModBlocks.fluid_duct, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 1, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 2, Block4, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 3, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 0, Block5, 2, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 1, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 2, Block5, 4, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 2, Block6, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 2, Block5, 5, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 3, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 4, Block5, 3, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 1, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 1, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 2, Block4, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 2, Block3, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 3, Block3, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 3, Block2, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 0, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 1, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 2, ModBlocks.fluid_duct, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 2, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 3, Block1, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 4, Block1, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 4, Block1, 0, 3);
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,795 +0,0 @@
|
||||
//Schematic to java Structure by jajo_11 | inspired by "MITHION'S .SCHEMATIC TO JAVA CONVERTINGTOOL"
|
||||
|
||||
package com.hbm.world.machine;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
|
||||
public class Watz extends WorldGenerator
|
||||
{
|
||||
public static String[][] array = new String[][] {
|
||||
{
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSISSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS"
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CAC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"ARK#KRA",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CAC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
" CCC ",
|
||||
" CWRWC ",
|
||||
"CWRKRWC",
|
||||
"CRKIKRC",
|
||||
"CWRKRWC",
|
||||
" CWRWC ",
|
||||
" CCC "
|
||||
},
|
||||
{
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSISSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS",
|
||||
"SSSSSSS"
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public boolean generate(World world, Random rand, int x, int y, int z)
|
||||
{
|
||||
int i = rand.nextInt(1);
|
||||
|
||||
if(i == 0)
|
||||
{
|
||||
generate_r0(world, rand, x, y, z);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
public boolean generate_r0(World world, Random rand, int x, int y, int z)
|
||||
{
|
||||
x -= 3;
|
||||
z -= 3;
|
||||
|
||||
world.setBlock(x + 0, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 0, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 1, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 1, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 1, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 1, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 2, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 2, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 2, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 2, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 2, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 2, z + 6, ModBlocks.reinforced_brick, 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 + 0, y + 3, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 3, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 3, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 3, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 3, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 3, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 3, z + 6, ModBlocks.reinforced_brick, 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 + 0, y + 4, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 4, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 4, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 4, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 4, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 5, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 5, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 5, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 5, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 5, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 5, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 5, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 0, ModBlocks.watz_hatch, 2, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 3, ModBlocks.watz_hatch, 4, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 3, ModBlocks.watz_core, 0, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 3, ModBlocks.watz_hatch, 5, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 6, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 6, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 6, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 6, z + 6, ModBlocks.watz_hatch, 3, 3);
|
||||
world.setBlock(x + 4, y + 6, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 6, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 6, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 7, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 7, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 7, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 7, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 7, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 7, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 7, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 8, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 8, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 8, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 8, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 8, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 8, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 8, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 9, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 9, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 9, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 9, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 9, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 9, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 9, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 10, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 10, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 10, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 10, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 10, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 10, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 10, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 0, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 0, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 1, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 1, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 1, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 1, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 2, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 2, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 2, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 2, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 3, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 3, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 3, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 4, ModBlocks.watz_cooler, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 4, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 4, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 4, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 5, ModBlocks.watz_control, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 5, ModBlocks.watz_element, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 5, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 5, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 11, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 1, y + 11, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 2, y + 11, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 3, y + 11, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 4, y + 11, z + 6, ModBlocks.reinforced_brick, 0, 3);
|
||||
world.setBlock(x + 5, y + 11, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 6, y + 11, z + 6, Blocks.air, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 0, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 1, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 2, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 3, ModBlocks.watz_conductor, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 3, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 4, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 5, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 0, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 1, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 2, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 3, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 4, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 5, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
world.setBlock(x + 6, y + 12, z + 6, ModBlocks.watz_end, 0, 3);
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -4779,7 +4779,7 @@ tile.corium_block.name=Corium
|
||||
tile.crane_boxer.name=Conveyor Boxer
|
||||
tile.crane_boxer.desc=Loads a configurable amount of stacks into boxes which move along conveyor belts$Right-click with screwdriver to set input side$Shift-click with screwdriver to set the output side$Click twice to set the opposite side
|
||||
tile.crane_extractor.name=Conveyor Ejector
|
||||
tile.crane_extractor.desc=Takes items from inventories and places them on covneyor belts$Has up to 9 filter slots with black and whitelist$Right-click with screwdriver to set output side$Shift-click with screwdriver to set the input side$Click twice to set the opposite side
|
||||
tile.crane_extractor.desc=Takes items from inventories and places them on conveyor belts$Has up to 9 filter slots with black and whitelist$Right-click with screwdriver to set output side$Shift-click with screwdriver to set the input side$Click twice to set the opposite side
|
||||
tile.crane_grabber.name=Conveyor Grabber
|
||||
tile.crane_grabber.desc=Takes items from passing conveyors and places them into containers$Will only take items from the closest lane$Has up to 9 filter slots with black and whitelist$Right-click with screwdriver to set input side$Shift-click with screwdriver to set the output side$Click twice to set the opposite side
|
||||
tile.crane_inserter.name=Conveyor Inserter
|
||||
@ -5409,7 +5409,7 @@ tile.red_barrel.name=Explosive Barrel
|
||||
tile.red_cable.name=Red Copper Cable
|
||||
tile.red_cable_classic.name=Red Copper Cable (Classic)
|
||||
tile.red_cable_gauge.name=Power Gauge
|
||||
tile.red_cable_gauge.desc=Cable that displays how much power$moves within the network per tick.$Split networks connected by energy$stroage blocks are considered as one shared network.
|
||||
tile.red_cable_gauge.desc=Cable that displays how much power$moves within the network per tick.$Split networks connected by energy$storage blocks are considered as one shared network.
|
||||
tile.red_cable_paintable.name=Paintable Red Copper Cable
|
||||
tile.red_connector.name=Electricity Connector
|
||||
tile.red_pylon.name=Electricity Pole
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 245 B |
Binary file not shown.
|
After Width: | Height: | Size: 260 B |
Binary file not shown.
|
After Width: | Height: | Size: 673 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
Loading…
x
Reference in New Issue
Block a user