From c9f3e01b17128f33decf89d9a0435a40045d0085 Mon Sep 17 00:00:00 2001 From: brandon3055 Date: Wed, 27 Aug 2014 23:21:57 +1000 Subject: [PATCH] Added Creative Key Stone --- build.gradle | 4 +- .../common/blocks/CKeyStone.java | 114 ++++++++++++ .../common/blocks/ModBlocks.java | 2 + .../blocks/itemblocks/CKeyStoneItemBlock.java | 54 ++++++ .../common/core/handler/CraftingHandler.java | 56 ++++-- .../common/core/proxy/CommonProxy.java | 1 + .../draconicevolution/common/items/Key.java | 61 +++++++ .../common/items/ModItems.java | 2 + .../common/lib/References.java | 2 +- .../draconicevolution/common/lib/Strings.java | 2 + .../common/tileentities/TileCKeyStone.java | 168 ++++++++++++++++++ .../assets/draconicevolution/lang/en_US.lang | 7 + .../textures/blocks/key_stone_active.png | Bin 0 -> 767 bytes .../textures/blocks/key_stone_inactive.png | Bin 0 -> 751 bytes .../draconicevolution/textures/items/key.png | Bin 0 -> 3704 bytes 15 files changed, 457 insertions(+), 16 deletions(-) create mode 100644 src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java create mode 100644 src/main/java/com/brandon3055/draconicevolution/common/blocks/itemblocks/CKeyStoneItemBlock.java create mode 100644 src/main/java/com/brandon3055/draconicevolution/common/items/Key.java create mode 100644 src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java create mode 100644 src/main/resources/assets/draconicevolution/textures/blocks/key_stone_active.png create mode 100644 src/main/resources/assets/draconicevolution/textures/blocks/key_stone_inactive.png create mode 100644 src/main/resources/assets/draconicevolution/textures/items/key.png diff --git a/build.gradle b/build.gradle index fdee2dda..39149722 100644 --- a/build.gradle +++ b/build.gradle @@ -17,12 +17,12 @@ buildscript { apply plugin: 'forge' -version = "1.7.10-v0.9.4-Beta-pre1" +version = "1.7.10-v0.9.5-Beta-pre1" group= "com.brandon3055.draconicevolution" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "Draconic-Evolution" minecraft { - version = "1.7.10-10.13.0.1199" + version = "1.7.10-10.13.0.1208" //assetDir = "run/assets" } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java new file mode 100644 index 00000000..c60b0c07 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java @@ -0,0 +1,114 @@ +package com.brandon3055.draconicevolution.common.blocks; + +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.blocks.itemblocks.CKeyStoneItemBlock; +import com.brandon3055.draconicevolution.common.core.utills.ItemNBTHelper; +import com.brandon3055.draconicevolution.common.items.ModItems; +import com.brandon3055.draconicevolution.common.lib.References; +import com.brandon3055.draconicevolution.common.lib.Strings; +import com.brandon3055.draconicevolution.common.tileentities.TileCKeyStone; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.IIcon; +import net.minecraft.util.MovingObjectPosition; +import net.minecraft.world.IBlockAccess; +import net.minecraft.world.World; + +/** + * Created by Brandon on 27/08/2014. + */ +public class CKeyStone extends BlockDE { + private IIcon blockIcon1; + public CKeyStone(){ + this.setHardness(10F); + this.setResistance(100F); + this.setCreativeTab(DraconicEvolution.tolkienTabBlocksItems); + this.setBlockName(Strings.cKeyStoneName); + ModBlocks.registerWithItem(this, CKeyStoneItemBlock.class); + } + + + @Override + public boolean hasTileEntity(int metadata) { + return true; + } + + @Override + public TileEntity createTileEntity(World world, int metadata) { + return new TileCKeyStone(); + } + + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister iconRegister) { + blockIcon = iconRegister.registerIcon(References.RESOURCESPREFIX + "key_stone_inactive"); + blockIcon1 = iconRegister.registerIcon(References.RESOURCESPREFIX + "key_stone_active"); + } + + @SideOnly(Side.CLIENT) + @Override + public IIcon getIcon(int side, int meta) { + if (side == 0 || side == 1) return Blocks.furnace.getIcon(side, meta); + else return blockIcon1; + } + + @Override + public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) { + if (side == 0 || side == 1) return Blocks.furnace.getIcon(side, 0); + TileCKeyStone tile = world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileCKeyStone ? (TileCKeyStone) world.getTileEntity(x, y, z) : null; + if (tile != null) return tile.isActivated ? blockIcon1 : blockIcon; + else return blockIcon; + } + + @Override + public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { + TileCKeyStone tile = world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileCKeyStone ? (TileCKeyStone) world.getTileEntity(x, y, z) : null; + + if (tile != null) return tile.onActivated(player.getHeldItem(), player); + return false; + } + + @Override + public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side) { + return true; + } + + @Override + public boolean canProvidePower(){ + return true; + } + + @Override + public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z, int meta) + { + TileCKeyStone tile = world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileCKeyStone ? (TileCKeyStone) world.getTileEntity(x, y, z) : null; + if (tile != null) return tile.isActivated ? 15 : 0; + return 0; + } + + @Override + public int isProvidingStrongPower(IBlockAccess world, int x, int y, int z, int meta) + { + return 0; + } + + @Override + public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { + TileCKeyStone tile = world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileCKeyStone ? (TileCKeyStone) world.getTileEntity(x, y, z) : null; + if (tile != null) { + ItemStack key = new ItemStack(ModItems.key); + ItemNBTHelper.setIntager(key, "KeyCode", tile.getKeyCode()); + ItemNBTHelper.setIntager(key, "X", x); + ItemNBTHelper.setIntager(key, "Y", y); + ItemNBTHelper.setIntager(key, "Z", z); + return key; + } + return null; + } +} + diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/ModBlocks.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/ModBlocks.java index cca03533..5719b762 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/ModBlocks.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/ModBlocks.java @@ -34,6 +34,7 @@ public class ModBlocks { public static BlockDE invisibleMultiblock; public static BlockDE energyPylon; public static BlockDE placedItem; + public static BlockDE cKeyStone; public static Block safetyFlame; public static void init() @@ -57,6 +58,7 @@ public class ModBlocks { energyPylon = new EnergyPylon(); placedItem = new PlacedItem(); safetyFlame = new SafetyFlame(); + cKeyStone = new CKeyStone(); if(ConfigHandler.disable_LRD < 2) longRangeDislocator = new LongRangeDislocator(); if(DraconicEvolution.debug) testBlock = new TestBlock(); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/itemblocks/CKeyStoneItemBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/itemblocks/CKeyStoneItemBlock.java new file mode 100644 index 00000000..8e592538 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/itemblocks/CKeyStoneItemBlock.java @@ -0,0 +1,54 @@ +package com.brandon3055.draconicevolution.common.blocks.itemblocks; + +import net.minecraft.block.Block; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemStack; + +import java.util.List; + +/** + * Created by Brandon on 27/08/2014. + */ +public class CKeyStoneItemBlock extends ItemBlock { + + public CKeyStoneItemBlock(Block block) { + super(block); + setHasSubtypes(true); + } + + @SuppressWarnings("unchecked") + @Override + public void getSubItems(Item item, CreativeTabs p_150895_2_, List list) { + list.add(new ItemStack(item, 1, 0)); + list.add(new ItemStack(item, 1, 1)); + list.add(new ItemStack(item, 1, 2)); + list.add(new ItemStack(item, 1, 3)); + } + + @Override + public int getMetadata(int par1) { + return par1; + } + + @Override + public void addInformation(ItemStack stack, EntityPlayer p_77624_2_, List list, boolean p_77624_4_) { + int meta = stack.getItemDamage(); + switch (meta){ + case 0: + list.add("Permanent Activation (Consume Key)"); + break; + case 1: + list.add("Button Activation"); + break; + case 2: + list.add("Toggle Activation"); + break; + case 3: + list.add("Button Activation (Consume Key)"); + break; + } + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/core/handler/CraftingHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/core/handler/CraftingHandler.java index ebe1986c..fa49e6a0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/core/handler/CraftingHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/core/handler/CraftingHandler.java @@ -17,11 +17,13 @@ import com.brandon3055.draconicevolution.common.items.weapons.DraconicBow; import com.brandon3055.draconicevolution.common.items.weapons.DraconicSword; import com.brandon3055.draconicevolution.common.items.weapons.WyvernBow; import com.brandon3055.draconicevolution.common.items.weapons.WyvernSword; +import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.FurnaceRecipes; +import net.minecraftforge.oredict.ShapedOreRecipe; public class CraftingHandler { public static void init() @@ -53,34 +55,62 @@ public class CraftingHandler { public static void registerShapedRecipes() { - CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.draconicCore), "GIG", "ISI", "GIG", 'S', Items.diamond, 'G', Items.gold_ingot, 'I', ModItems.draconiumIngot); + //GameRegistry.addRecipe(new ShapedOreRecipe(rodObsidianFlux, new Object[]{" O", " B ", "O ", 'B', rodObsidian, 'O', "gemCrystalFlux"})); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.draconicCore), "GIG", "ISI", "GIG", 'S', "gemDiamond", 'G', "ingotGold", 'I', ModItems.draconiumIngot)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.infusedCompound, 2), "IDI", "DSD", "IDI", 'S', Items.nether_star, 'D', "gemDiamond", 'I', ModItems.draconiumIngot)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.draconiumBlend), " D ", "DID", " D ", 'I', "ingotIron", 'D', ModItems.draconiumDust)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.safetyMatch, 1, 1000), " O ", " S ", " ", 'O', "dyeOrange", 'S', "stickWood")); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.grinder, 1, 3), "IXI", "DCD", "IFI", 'I', "ingotIron", 'X', ModItems.draconiumIngot, 'D', Items.diamond_sword, 'C', ModItems.draconicCore, 'F', Blocks.furnace)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.weatherController), "RSR", "TPT", "IEI", 'R', Items.blaze_rod, 'S', ModItems.sunFocus, 'T', Blocks.tnt, 'P', ModItems.draconicCore, 'I', "ingotIron", 'E', Blocks.enchanting_table)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.potentiometer), "ITI", "QCQ", "IRI", 'I', "ingotIron", 'T', Blocks.redstone_torch, 'Q', "gemQuartz", 'C', Items.comparator, 'R', Blocks.redstone_block)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rainSensor), " ", "RBR", "SPS", 'R', "dustRedstone", 'B', Items.bucket, 'S', Blocks.stone_slab, 'P', Blocks.heavy_weighted_pressure_plate)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.playerDetector), "ITI", "CEC", "IDI", 'I', "ingotIron", 'E', Items.ender_eye, 'T', Blocks.redstone_torch, 'C', Items.comparator, 'D', ModItems.draconicCore)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.generator, 1, 3), "NIN", "IFI", "NCN", 'N', Items.netherbrick, 'I', "ingotIron", 'F', Blocks.furnace, 'C', ModItems.draconicCore)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.energyPylon, 2), "IEI", "MCM", "IDI", 'I', ModItems.draconiumIngot, 'E', Items.ender_eye, 'C', ModItems.draconicCore, 'D', "gemDiamond", 'M', "gemEmerald")); + + + + //CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.draconicCore), "GIG", "ISI", "GIG", 'S', "gemDiamond", 'G', "ingotGold", 'I', ModItems.draconiumIngot); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.infusedCompound, 2), "IDI", "DSD", "IDI", 'S', Items.nether_star, 'D', "gemDiamond", 'I', ModItems.draconiumIngot); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.draconiumBlend), " D ", "DID", " D ", 'I', "ingotIron", 'D', ModItems.draconiumDust); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.safetyMatch, 1, 1000), " O ", " S ", " ", 'O', "dyeOrange", 'S', "woodStick"); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.grinder, 1, 3), "IXI", "DCD", "IFI", 'I', "ingotIron", 'X', ModItems.draconiumIngot, 'D', Items.diamond_sword, 'C', ModItems.draconicCore, 'F', Blocks.furnace); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.weatherController), "RSR", "TPT", "IEI", 'R', Items.blaze_rod, 'S', ModItems.sunFocus, 'T', Blocks.tnt, 'P', ModItems.draconicCore, 'I', "ingotIron", 'E', Blocks.enchanting_table); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.potentiometer), "ITI", "QCQ", "IRI", 'I', "ingotIron", 'T', Blocks.redstone_torch, 'Q', "gemQuartz", 'C', Items.comparator, 'R', Blocks.redstone_block); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.rainSensor), " ", "RBR", "SPS", 'R', "dustRedstone", 'B', Items.bucket, 'S', Blocks.stone_slab, 'P', Blocks.heavy_weighted_pressure_plate); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.playerDetector), "ITI", "CEC", "IDI", 'I', "ingotIron", 'E', Items.ender_eye, 'T', Blocks.redstone_torch, 'C', Items.comparator, 'D', ModItems.draconicCore); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.generator, 1, 3), "NIN", "IFI", "NCN", 'N', Items.netherbrick, 'I', "ingotIron", 'F', Blocks.furnace, 'C', ModItems.draconicCore); +// CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.energyPylon, 2), "IEI", "MCM", "IDI", 'I', ModItems.draconiumIngot, 'E', Items.ender_eye, 'C', ModItems.draconicCore, 'D', "gemDiamond", 'M', "gemEmerald"); + + CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.sunFocus), "RIR", "ISI", "RIR", 'S', Items.nether_star, 'R', Items.blaze_rod, 'I', ModItems.draconiumIngot); - CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.infusedCompound, 2), "IDI", "DSD", "IDI", 'S', Items.nether_star, 'D', Items.diamond, 'I', ModItems.draconiumIngot); - CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.dragonHeart), " C ", "CEC", " C ", 'C', ModItems.infusedCompound, 'I', Blocks.dragon_egg); - CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.draconiumBlend), " D ", "DID", " D ", 'I', Items.iron_ingot, 'D', ModItems.draconiumDust); + + //CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.dragonHeart), " C ", "CEC", " C ", 'C', ModItems.infusedCompound, 'I', Blocks.dragon_egg); + CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.draconicCompound, 2), " C ", "CHC", " C ", 'C', ModItems.infusedCompound, 'H', ModItems.dragonHeart); - CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.safetyMatch, 1, 1000), " O ", " S ", " ", 'O', new ItemStack(Items.dye, 1, 14), 'S', Items.stick); + CraftingManager.getInstance().addRecipe(new ItemStack(ModItems.safetyMatch, 0), "MMM", "MMM", "MMM", 'M', new ItemStack(ModItems.safetyMatch, 1, 1000)); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.grinder, 1, 3), "IXI", "DCD", "IFI", 'I', Items.iron_ingot, 'X', ModItems.draconiumIngot, 'D', Items.diamond_sword, 'C', ModItems.draconicCore, 'F', Blocks.furnace); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.weatherController), "RSR", "TPT", "IEI", 'R', Items.blaze_rod, 'S', ModItems.sunFocus, 'T', Blocks.tnt, 'P', ModItems.draconicCore, 'I', Items.iron_ingot, 'E', Blocks.enchanting_table); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.potentiometer), "ITI", "QCQ", "IRI", 'I', Items.iron_ingot, 'T', Blocks.redstone_torch, 'Q', Items.quartz, 'C', Items.comparator, 'R', Blocks.redstone_block); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.rainSensor), " ", "RBR", "SPS", 'R', Items.redstone, 'B', Items.bucket, 'S', Blocks.stone_slab, 'P', Blocks.heavy_weighted_pressure_plate); + + + + CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.particleGenerator), "RBR", "BCB", "RBR", 'R', Blocks.redstone_block, 'B', Items.blaze_rod, 'C', ModItems.draconicCore); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.playerDetector), "ITI", "CEC", "IDI", 'I', Items.iron_ingot, 'E', Items.ender_eye, 'T', Blocks.redstone_torch, 'C', Items.comparator, 'D', ModItems.draconicCore); + CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.playerDetectorAdvanced), "ISI", "EDE", "ICI", 'I', ModItems.draconiumIngot, 'E', Items.ender_eye, 'S', new ItemStack(Items.skull, 1, 1), 'C', Items.compass, 'D', ModBlocks.playerDetector); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.generator, 1, 3), "NIN", "IFI", "NCN", 'N', Items.netherbrick, 'I', Items.iron_ingot, 'F', Blocks.furnace, 'C', ModItems.draconicCore); + CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.energyInfuser), "IPI", "CEC", "ICI", 'I', ModItems.draconiumIngot, 'P', ModBlocks.particleGenerator, 'C', ModItems.draconicCore, 'E', Blocks.enchanting_table); CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.draconium), "III", "III", "III", 'I', ModItems.draconiumIngot); CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.energyStorageCore), "SRS", "DCD", "SRS", 'S', Items.nether_star, 'R', Blocks.redstone_block, 'C', ModItems.draconicCore, 'D', new ItemStack(ModBlocks.draconium, 1, 0)); - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.energyPylon, 2), "IEI", "MCM", "IDI", 'I', ModItems.draconiumIngot, 'E', Items.ender_eye, 'C', ModItems.draconicCore, 'D', Items.diamond, 'M', Items.emerald); + CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.draconium, 1, 1), "CSC", "SDS", "CSC", 'C', ModItems.draconicCompound, 'S', ModItems.sunFocus, 'D', new ItemStack(ModBlocks.draconium, 1, 0)); if(ConfigHandler.disableSunDial == 0) CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.sunDial), "IFI", "TDT", "GEG", 'I', ModItems.draconiumIngot, 'F', ModItems.sunFocus, 'T', ModItems.draconicCore, 'G', Blocks.glowstone, 'E', Blocks.enchanting_table, 'D', ModItems.dragonHeart); if(ConfigHandler.disableXrayBlock == 0) - CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.xRayBlock, 4), "SGS", "GDG", "SGS", 'S', Items.nether_star, 'G', Blocks.glass, 'D', Items.diamond); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.xRayBlock, 4), "SGS", "GDG", "SGS", 'S', Items.nether_star, 'G', "blockGlassColorless", 'D', "gemDiamond")); + //CraftingManager.getInstance().addRecipe(new ItemStack(ModBlocks.xRayBlock, 4), "SGS", "GDG", "SGS", 'S', Items.nether_star, 'G', "blockGlassColorless", 'D', "gemDiamond"); } public static void registerSmeltingRecipes() diff --git a/src/main/java/com/brandon3055/draconicevolution/common/core/proxy/CommonProxy.java b/src/main/java/com/brandon3055/draconicevolution/common/core/proxy/CommonProxy.java index aaeaf786..157b5b50 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/core/proxy/CommonProxy.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/core/proxy/CommonProxy.java @@ -71,6 +71,7 @@ public class CommonProxy { GameRegistry.registerTileEntity(Utills.TileBlockChanger.class, References.RESOURCESPREFIX + "TileBlockChanger"); GameRegistry.registerTileEntity(TileEnderResurrection.class, References.RESOURCESPREFIX + "TileEnderResurrection"); GameRegistry.registerTileEntity(TilePlacedItem.class, References.RESOURCESPREFIX + "TilePlacedItem"); + GameRegistry.registerTileEntity(TileCKeyStone.class, References.RESOURCESPREFIX + "TileCKeyStone"); if (DraconicEvolution.debug) GameRegistry.registerTileEntity(TileTestBlock.class, "References.RESOURCESPREFIX + TileTestBlock"); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java b/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java new file mode 100644 index 00000000..bbc1d622 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java @@ -0,0 +1,61 @@ +package com.brandon3055.draconicevolution.common.items; + +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.core.utills.ItemNBTHelper; +import com.brandon3055.draconicevolution.common.lib.Strings; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; + +import java.util.List; + +/** + * Created by Brandon on 27/08/2014. + */ +public class Key extends ItemDE { + public Key() { + this.setUnlocalizedName(Strings.keyName); + this.setCreativeTab(DraconicEvolution.tolkienTabBlocksItems); + this.setHasSubtypes(true); + this.setMaxStackSize(1); + ModItems.register(this); + } + + @SuppressWarnings("all") + @SideOnly(Side.CLIENT) + @Override + public void getSubItems(Item item, CreativeTabs p_150895_2_, List list) { + list.add(new ItemStack(item, 1, 0)); + list.add(new ItemStack(item, 1, 1)); + } + + @SuppressWarnings("all") + @Override + public void addInformation(ItemStack key, EntityPlayer player, List list, boolean par4) { + if (!player.capabilities.isCreativeMode) return; + if (key.getItemDamage() == 1){ + list.add("Creative Master Key"); + return; + } + + int keyCode = ItemNBTHelper.getIntager(key, "KeyCode", 0); + list.add(keyCode == 0 ? "Un-Bound" : "Key Code: " + String.valueOf(keyCode)); + + if (keyCode != 0){ + list.add("Linked to {X:"+ItemNBTHelper.getIntager(key, "X", 0)+" Y:"+ItemNBTHelper.getIntager(key, "Y", 0)+" X:"+ItemNBTHelper.getIntager(key, "Z", 0)+"}"); + if (ItemNBTHelper.getIntager(key, "LockCount", 0) == 0) return; + for (int i = 1; i <= ItemNBTHelper.getIntager(key, "LockCount", 0); i++){ + list.add("Linked to {X:"+ItemNBTHelper.getIntager(key, "X_"+i, 0)+" Y:"+ItemNBTHelper.getIntager(key, "Y_"+i, 0)+" X:"+ItemNBTHelper.getIntager(key, "Z_"+i, 0)+"}"); + } + } + } + + @Override + public boolean hasEffect(ItemStack stack, int pass) { + if (stack.getItemDamage() == 1) return true; + return ItemNBTHelper.getIntager(stack, "KeyCode", 0) != 0; + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/ModItems.java b/src/main/java/com/brandon3055/draconicevolution/common/items/ModItems.java index e0db2584..ada18e64 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/ModItems.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/ModItems.java @@ -56,6 +56,7 @@ public class ModItems { public static ItemDE mobSoul; public static ItemDE enderArrow; public static ItemDE safetyMatch; + public static ItemDE key; public static ItemDE teleporterMKI; public static ItemDE teleporterMKII; @@ -98,6 +99,7 @@ public class ModItems { mobSoul = new MobSoul(); enderArrow = new EnderArrow(); safetyMatch = new SafetyMatch(); + key = new Key(); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java index 81858a56..b907bed8 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java @@ -3,7 +3,7 @@ package com.brandon3055.draconicevolution.common.lib; public class References { public static final String MODID = "DraconicEvolution"; public static final String MODNAME = "Draconic Evolution"; - public static final String VERSION = "0.9.32-Beta"; + public static final String VERSION = "0.9.4-Beta"; public static final String MCVERSION = "1.7.10"; public static final String CLIENTPROXYLOCATION = "com.brandon3055.draconicevolution.common.core.proxy.ClientProxy"; public static final String COMMONPROXYLOCATION = "com.brandon3055.draconicevolution.common.core.proxy.CommonProxy"; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/Strings.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/Strings.java index 71358560..5439ec89 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/Strings.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/Strings.java @@ -55,4 +55,6 @@ public class Strings {// public sta public static final String enderArrowName = "enderArrow"; public static final String safetyFlameName = "safetyFlame"; public static final String safetyMatchName = "safetyMatch"; + public static final String cKeyStoneName = "cKeyStone"; + public static final String keyName = "key"; } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java new file mode 100644 index 00000000..9d81f4da --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java @@ -0,0 +1,168 @@ +package com.brandon3055.draconicevolution.common.tileentities; + +import com.brandon3055.draconicevolution.common.core.utills.ItemNBTHelper; +import com.brandon3055.draconicevolution.common.items.ModItems; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.network.NetworkManager; +import net.minecraft.network.Packet; +import net.minecraft.network.play.server.S35PacketUpdateTileEntity; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.ChatComponentText; +import net.minecraft.util.ChatComponentTranslation; + +/** + * Created by Brandon on 27/08/2014. + */ +public class TileCKeyStone extends TileEntity { + + public boolean isActivated = false; + private int keyCode = 0; + private int activeTicks = 0; + + @Override + public void updateEntity() { + if (isActivated && (getMeta() == 1 || getMeta() == 3)) { + activeTicks++; + if (activeTicks == 20){ + activeTicks = 0; + isActivated = false; + updateBlocks(); + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.5F); + } + } + } + + public boolean onActivated(ItemStack stack, EntityPlayer player){ + if (stack == null || stack.getItem() != ModItems.key) { + if(player.capabilities.isCreativeMode && stack == null && player.isSneaking()) giveInformation(player); + return false; + } + if (isMasterKey(stack)) return true; + if (setKey(stack)) return true; + if(!isKeyValid(stack, player)) return false; + + switch (getMeta()){ + case 0: //Permanent Activation + isActivated = true; + player.destroyCurrentEquippedItem(); + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.6F); + break; + case 1: //Button Activation + isActivated = true; + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.6F); + break; + case 2: //Toggle Activation + if (!isActivated) + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.6F); + else + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.5F); + isActivated = !isActivated; + break; + case 3: //Button Activation (Consume Key) + isActivated = true; + player.destroyCurrentEquippedItem(); + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.6F); + break; + case 4: + break; + } + + updateBlocks(); + return true; + } + + private void giveInformation(EntityPlayer player){ + if (worldObj.isRemote){ + player.addChatComponentMessage(new ChatComponentTranslation("msg.cKeyStoneType"+getMeta()+".txt")); + player.addChatComponentMessage(new ChatComponentText("Key: "+keyCode)); + } + } + + private boolean isMasterKey(ItemStack key){ + if (key.getItemDamage() == 1){ + if (!isActivated) + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.6F); + else + worldObj.playSoundEffect((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D, "random.click", 0.3F, 0.5F); + isActivated = !isActivated; + updateBlocks(); + return true; + } + return false; + } + + private boolean setKey(ItemStack key){ + if (keyCode == 0 && ItemNBTHelper.getIntager(key, "KeyCode", 0) == 0){ + keyCode = worldObj.rand.nextInt(); + ItemNBTHelper.setIntager(key, "KeyCode", keyCode); + ItemNBTHelper.setIntager(key, "X", xCoord); + ItemNBTHelper.setIntager(key, "Y", yCoord); + ItemNBTHelper.setIntager(key, "Z", zCoord); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + return true; + }else if (keyCode == 0 && ItemNBTHelper.getIntager(key, "KeyCode", 0) != 0){ + keyCode = ItemNBTHelper.getIntager(key, "KeyCode", 0); + ItemNBTHelper.setIntager(key, "LockCount", ItemNBTHelper.getIntager(key, "LockCount", 0) + 1); + ItemNBTHelper.setIntager(key, "X_"+ItemNBTHelper.getIntager(key, "LockCount", 0), xCoord); + ItemNBTHelper.setIntager(key, "Y_"+ItemNBTHelper.getIntager(key, "LockCount", 0), yCoord); + ItemNBTHelper.setIntager(key, "Z_"+ItemNBTHelper.getIntager(key, "LockCount", 0), zCoord); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + return true; + } + return false; + } + + private boolean isKeyValid(ItemStack key, EntityPlayer player){ + if (ItemNBTHelper.getIntager(key, "KeyCode", 0) != keyCode) { + if (worldObj.isRemote) player.addChatComponentMessage(new ChatComponentTranslation("msg.wrongKey.txt")); + return false; + } + return true; + } + + private int getMeta(){return worldObj.getBlockMetadata(xCoord, yCoord, zCoord);} + + public int getKeyCode(){return keyCode;} + + @Override + public Packet getDescriptionPacket() { + NBTTagCompound tagCompound = new NBTTagCompound(); + this.writeToNBT(tagCompound); + return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 1, tagCompound); + } + + @Override + public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { + readFromNBT(pkt.func_148857_g()); + } + + @Override + public void writeToNBT(NBTTagCompound compound) + { + compound.setBoolean("IsActivated", isActivated); + compound.setInteger("KeyCode", keyCode); + super.writeToNBT(compound); + } + + @Override + public void readFromNBT(NBTTagCompound compound) + { + isActivated = compound.getBoolean("IsActivated"); + keyCode = compound.getInteger("KeyCode"); + super.readFromNBT(compound); + } + + public void updateBlocks() + { + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord - 1, yCoord, zCoord, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord + 1, yCoord, zCoord, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord - 1, zCoord, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord + 1, zCoord, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord - 1, blockType); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord + 1, blockType); + } +} diff --git a/src/main/resources/assets/draconicevolution/lang/en_US.lang b/src/main/resources/assets/draconicevolution/lang/en_US.lang index 0eee0bbc..1fc6898b 100644 --- a/src/main/resources/assets/draconicevolution/lang/en_US.lang +++ b/src/main/resources/assets/draconicevolution/lang/en_US.lang @@ -19,6 +19,7 @@ tile.draconicevolution:energyPylon.name=Energy Pylon tile.draconicevolution:draconium0.name=Draconium Block tile.draconicevolution:draconium1.name=Resurrection Stone tile.draconicevolution:draconium2.name=Charged Draconium Block +tile.draconicevolution:cKeyStone.name=Creative Key Stone //###################################Item names###################################// item.draconicevolution:draconicCompound.name=Draconic Compound @@ -57,6 +58,7 @@ item.draconicevolution:mobSoul.name=Mob Soul item.draconicevolution:enderArrow.name=Ender Arrow item.draconicevolution:safetyMatch.name=Safety Match item.draconicevolution:safetyMatchBox.name=Box of Safety Matches +item.draconicevolution:key.name=Key //###################################Item Groups###################################// itemGroup.toolsAndWeapons=Draconic Evolution Tools & Weapons @@ -98,6 +100,11 @@ msg.dislocatorNoGround.txt=Error world not found msg.range.txt=Range: msg.energyStorageCoreUTA.txt=Unable to activate (Invalid Configuration) msg.SpawnDragonToFarFrom00.txt=[ERROR] to far from 0,0 +msg.wrongKey.txt=This key dose not fit this lock +msg.cKeyStoneType0.txt=Permanent Activation (Consume Key) +msg.cKeyStoneType1.txt=Button Activation +msg.cKeyStoneType2.txt=Toggle Activation +msg.cKeyStoneType3.txt=Button Activation (Consume Key) //###################################Tool Tips###################################// info.teleporterInfUnset1.txt=Unbound diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/key_stone_active.png b/src/main/resources/assets/draconicevolution/textures/blocks/key_stone_active.png new file mode 100644 index 0000000000000000000000000000000000000000..a1863b2ed59d59bb5e75dea0e84ed4ec8b851329 GIT binary patch literal 767 zcmVlA`W;EKJm~Goq2mwG8MF=5~ zQW8ZG0NrkvR4RoK0wDywUJu{*85|rW3_~=4g@py0%_h38<2VjOLqlXT830aCPZ=8< zLseCT5V)>Ov)N>Lc$jjzjM8qmaU6$iHcO||A(P2q+cuMvlkD#9QmIt9yu2ir%aP4y zNhA`KN+o>XCyF98P1A^?i1YJv78e&eI5@!bJa%?=s8*{0gkgwb7$lQP48ve_bd+>D z&B@6L*tRWKS68I~DL`&)Y{=>9X{oB}y_lPulWS{heYdi*A}!036pKYEK+0pJ{BV2u zF!?SXI?J-8qU$;UJpBkOl7F5*oRktp2*I1BC8F3{KF4Cb+uUS!cJ{A4%d&XCz1?@O zU%eugN}-OAk8epSxqg}Flj}2Cct$)PCkO%>jRpY4Vv*(LWeyJyab7&)lj}2YKc`x) zqWHc~GMPkC6b1$cs8lNC^Le`6ZohjF1RNb5-E+ss$K2f9pxiy9VHo|Ncy@M%X`1~4 zp6AhOwE+4qolfI<9*Sw2K@gx_Ute=^ zalwuElUOVUK&R6o3_}z}A&MfTlvtKUyRJEJ$-O!EO08BaiJ}OAIF5;;h$Kmf;}`(fby-_mBZ?xT zC}J|1;QKxc3k!r{hzhX1y^U?#2q7>{lf}hF3WWjy*VosqtgN6Y3Q-i{I1aXLlg(x^ z31LERs&AX*QeqzE2#-sH&kcAMW(`kml4`4hV^Djw~G~*hL21$~jtgfye=5jeUKP=+U3wA$#!nSQJ z%X($5)oSeR?Xgk{@aF}gvhXqiz~kd1YuOb2p+gV^Y;JB+uh(bht*tHg_xEYH+cU0S zuOmqkvhVw3G8tr9CY4Ij>2#=6D!8sY3kZUMcDwzGyS%()JRT!YYt%Gtc8Pa)cj&r4 z3-COTUato*3BQOdQ7~NkXkwqucHBbo0WUot?dePiuTvdc#-4qSDa1G?QV z0PpHAT%*z8^z;;^R4N^o%VmCk|AuJ|FuM+xWwErhM73H4;OXg!Ua!Y+IOMl!U|IvT h>{}eiLHgf!{sVv(WhI10q_hA4002ovPDHLkV1kK8RKEZK literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/draconicevolution/textures/items/key.png b/src/main/resources/assets/draconicevolution/textures/items/key.png new file mode 100644 index 0000000000000000000000000000000000000000..5ec5167f02790547b4ae2440388aa920a150eb52 GIT binary patch literal 3704 zcmV-;4u|oHP)|D^_ww@lRz|vCuzLs)$;-`! zo*{AqUjza0dRV*yaMRE;fKCVhpQKsoe1Yhg01=zBIT!& zC1$=TK@rP|Ibo3vKKm@PqnO#LJhq6%Ij6Hz*<$V$@wQAMN5qJ)hzm2hoGcOF60t^# zFqJFfH{#e-4l@G)6iI9sa9D{VHW4w29}?su;^hF~NC{tY+*d5%WDCTXa!E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