ZeldaCorporation
Members-
Posts
20 -
Joined
-
Last visited
Everything posted by ZeldaCorporation
-
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
Anyone have any progress on figuring it out?? -
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
k thanks,i have the api but thats it and i didnt see it in there -
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
Could someone just post what it would look like in this code: package ZCs_Mod; import ic2.api.Ic2Recipes; import java.util.AbstractMap; import net.minecraft.block.Block; import net.minecraft.block.BlockFence; import net.minecraft.block.BlockFenceGate; import net.minecraft.block.BlockWall; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "Minecraft Edits", name = "Minecraft Edits", version = "v3.1") @NetworkMod(clientSideRequired = true, serverSideRequired = true) public class ZCsMod { //Items public static Item CompressedLeather; public static Item TannedLeather; public static Item ReinforcedLeather; public static Item Twine; public static Item Rope; public static Item BirchStick; public static Item JungleStick; public static Item SpruceStick; public static Item Moss; public static Item Link; public static Item Chainlinks; //public static Item CobbleStick; //Blocks public static Block BirchFenceGate; public static Block JungleFenceGate; public static Block SpruceFenceGate; public static Block BirchFence; public static Block JungleFence; public static Block SpruceFence; //public static Block CobbleFenceGate; //Tabs public static CreativeTabs MCEdits = new MCEdits(CreativeTabs.getNextID(), "MineCraft Edits"); @PreInit public void initConfig(FMLPreInitializationEvent fpe) { } /** * @PostInit * *public void check(FMLPostInitializationEvent e) *{ *if(Loader.isModLoaded("IC2")) * { * * * } *} */ @Init public void load(FMLInitializationEvent fie) { //Items CompressedLeather = (new ModItem(3000).setItemName("Compressed Leather").setCreativeTab(this.MCEdits).setIconCoord(0, 0)); ReinforcedLeather = (new ModItem(3001).setItemName("Reinforced Leather").setCreativeTab(this.MCEdits).setIconCoord(4, 0)); TannedLeather = (new ModItem(3002).setItemName("Tanned Leather").setCreativeTab(this.MCEdits).setIconCoord(1, 0)); Twine = (new ModItem(3003).setItemName("Twine").setCreativeTab(this.MCEdits).setIconCoord(2, 0)); Rope = (new ModItem(3004).setItemName("Rope").setCreativeTab(this.MCEdits).setIconCoord(3, 0)); BirchStick = (new ModItem(3005).setItemName("Birch Stick").setCreativeTab(this.MCEdits).setIconCoord(5, 0)); JungleStick = (new ModItem(3006).setItemName("Jungle Stick").setCreativeTab(this.MCEdits).setIconCoord(6, 0)); SpruceStick = (new ModItem(3007).setItemName("Spruce Stick").setCreativeTab(this.MCEdits).setIconCoord(7, 0)); Moss = (new ModItem(3008).setItemName("Moss").setCreativeTab(this.MCEdits).setIconCoord(9, 0)); Link = (new ModItem(3009).setItemName("Iron Link").setCreativeTab(this.MCEdits).setIconCoord(10, 0)); Chainlinks = (new ModItem(3010).setItemName("Chain Links").setCreativeTab(this.MCEdits).setIconCoord(11, 0)); //CobbleStick = (new ModItem(2908).setItemName("Cobble Stick").setCreativeTab(CreativeTabs.tabMaterials).setIconCoord(8, 0)); //Blocks BirchFenceGate = (new BlockFenceGate(3622, 214)).setHardness(2.0F).setResistance(5.0F).setBlockName("Birch FenceGate").setRequiresSelfNotify(); JungleFenceGate = (new BlockFenceGate(3623, 199)).setHardness(2.0F).setResistance(5.0F).setBlockName("Jungle FenceGate").setRequiresSelfNotify(); SpruceFenceGate = (new BlockFenceGate(3624, 198)).setHardness(2.0F).setResistance(5.0F).setBlockName("Spruce FenceGate").setRequiresSelfNotify(); BirchFence = (new BlockzFence(3625, 214)).setHardness(2.0F).setResistance(5.0F).setBlockName("Birch Fence"); JungleFence = (new BlockzFence(3626, 199)).setHardness(2.0F).setResistance(5.0F).setBlockName("Jungle Fence"); SpruceFence = (new BlockzFence(3627, 198)).setHardness(2.0F).setResistance(5.0F).setBlockName("Spruce Fence"); //CobbleFenceGate = (new BlockFenceGate(3621, 16)).setHardness(2.0F).setResistance(5.0F).setBlockName("Cobble FenceGate").setRequiresSelfNotify(); registeringBlocks(); blockNames(); itemNames(); recipes(); smelting(); //MINECRAFT FORGE TEXTURE FUNCTIONS MinecraftForgeClient.preloadTexture("/Textures/ZCsItems"); MinecraftForgeClient.preloadTexture("/Textures/ZCsBlocks"); } public void registeringBlocks() { //GameRegistry.registerBlock(CobbleFenceGate, "Cobble FenceGate"); GameRegistry.registerBlock(BirchFenceGate, "Birch FenceGate"); GameRegistry.registerBlock(JungleFenceGate, "Jungle FenceGate"); GameRegistry.registerBlock(SpruceFenceGate, "Spruce FenceGate"); GameRegistry.registerBlock(BirchFence, "Birch Fence"); GameRegistry.registerBlock(JungleFence, "Jungle Fence"); GameRegistry.registerBlock(SpruceFence, "Spruce Fence"); } public void blockNames() { //LanguageRegistry.addName(CobbleFenceGate, "Cobblestone FenceGate"); LanguageRegistry.addName(BirchFenceGate, "Birch FenceGate"); LanguageRegistry.addName(JungleFenceGate, "Jungle FenceGate"); LanguageRegistry.addName(SpruceFenceGate, "Spruce FenceGate"); LanguageRegistry.addName(BirchFence, "Birch Fence"); LanguageRegistry.addName(JungleFence, "Jungle Fence"); LanguageRegistry.addName(SpruceFence, "Spruce Fence"); } public void itemNames() { LanguageRegistry.addName(CompressedLeather, "Compressed Leather"); LanguageRegistry.addName(TannedLeather, "Tanned Leather"); LanguageRegistry.addName(ReinforcedLeather, "Reinforced Leather"); LanguageRegistry.addName(Twine, "Twine"); LanguageRegistry.addName(Rope, "Rope"); LanguageRegistry.addName(BirchStick, "Birch Stick"); LanguageRegistry.addName(JungleStick, "Jungle Stick"); LanguageRegistry.addName(SpruceStick, "Spruce Stick"); LanguageRegistry.addName(Moss, "Moss"); LanguageRegistry.addName(Link, "Iron Link"); LanguageRegistry.addName(Chainlinks, "Chain Link"); //LanguageRegistry.addName(CobbleStick, "Cobble Stick"); } public void recipes() { GameRegistry.addRecipe(new ItemStack(CompressedLeather, 1), new Object[] { "xxx", "xxx", "xxx", 'x', Item.leather }); GameRegistry.addRecipe(new ItemStack(Rope, 1), new Object[] { "x x", " x ", "x x", 'x', this.Twine }); GameRegistry.addRecipe(new ItemStack(Twine, 1), new Object[] { "x x", "x x", "x x", 'x', Item.silk }); GameRegistry.addRecipe(new ItemStack(ReinforcedLeather, 1), new Object[] { "xxx", "xgx", "xxx", 'x', this.TannedLeather, 'g', Item.ingotGold }); GameRegistry.addRecipe(new ItemStack(Item.saddle, 1), new Object[] { "rrr", "rRr", "I I", 'r', this.ReinforcedLeather, 'R', this.Rope,'I' , Item.ingotIron }); GameRegistry.addShapelessRecipe(new ItemStack(Item.leather, 9), new Object[] { this.CompressedLeather }); GameRegistry.addShapelessRecipe(new ItemStack(Item.stick, 1), new Object[] { this.BirchStick }); GameRegistry.addShapelessRecipe(new ItemStack(Item.stick, 1), new Object[] { this.SpruceStick }); GameRegistry.addShapelessRecipe(new ItemStack(Item.stick, 1), new Object[] { this.JungleStick }); GameRegistry.addRecipe(new ItemStack(BirchStick, 6), new Object[] { " x ", " x ", " x ", 'x', new ItemStack(Block.planks, 5, 2) }); GameRegistry.addRecipe(new ItemStack(JungleStick, 6), new Object[] { " x ", " x ", " x ", 'x', new ItemStack(Block.planks, 5, 3) }); GameRegistry.addRecipe(new ItemStack(SpruceStick, 6), new Object[] { " x ", " x ", " x ", 'x', new ItemStack(Block.planks, 5, 1) }); //GameRegistry.addRecipe(new ItemStack(CobbleStick, 6), new Object[] { // " x ", " x ", " x ", 'x', Block.cobblestone //}); GameRegistry.addRecipe(new ItemStack(BirchFenceGate, 1), new Object[] { " ", "sxs", "sxs", 'x', new ItemStack(Block.planks, 5, 2), 's', this.BirchStick }); GameRegistry.addRecipe(new ItemStack(JungleFenceGate, 1), new Object[] { " ", "sxs", "sxs", 'x', new ItemStack(Block.planks, 5, 3), 's', this.JungleStick }); GameRegistry.addRecipe(new ItemStack(SpruceFenceGate, 1), new Object[] { " ", "sxs", "sxs", 'x', new ItemStack(Block.planks, 5, 1), 's', this.SpruceStick }); //GameRegistry.addRecipe(new ItemStack(CobbleFenceGate, 1), new Object[] { // " ", "sxs", "sxs", 'x', Block.cobblestone, 's', this.CobbleStick //}); GameRegistry.addRecipe(new ItemStack(BirchFence, 4), new Object[] { " ", "sss", "sss", 's', this.BirchStick }); GameRegistry.addRecipe(new ItemStack(JungleFence, 4), new Object[] { " ", "sss", "sss", 's', this.JungleStick }); GameRegistry.addRecipe(new ItemStack(SpruceFence, 4), new Object[] { " ", "sss", "sss", 's', this.SpruceStick }); GameRegistry.addRecipe(new ItemStack(Block.cobblestoneMossy, 1), new Object[] { "xxx", "xvx", "xxx", 'x', this.Moss, 'v', Block.cobblestone }); GameRegistry.addRecipe(new ItemStack(Moss, 4), new Object[] { "xxx", "xxx", "xxx", 'x', Block.vine }); GameRegistry.addRecipe(new ItemStack(Link, 1), new Object[] { "xxx", "x x", "xxx", 'x', Block.fenceIron }); GameRegistry.addRecipe(new ItemStack(Chainlinks, 1), new Object[] { "x ", " x ", " x", 'x', this.Link }); GameRegistry.addRecipe(new ItemStack(Item.helmetChain, 1), new Object[] { "xxx", "x x", " ", 'x', this.Chainlinks }); GameRegistry.addRecipe(new ItemStack(Item.helmetChain, 1), new Object[] { " ", "xxx", "x x", 'x', this.Chainlinks }); GameRegistry.addRecipe(new ItemStack(Item.plateChain, 1), new Object[] { "x x", "xxx", "xxx", 'x', this.Chainlinks }); GameRegistry.addRecipe(new ItemStack(Item.legsChain, 1), new Object[] { "xxx", "x x", "x x", 'x', this.Chainlinks }); GameRegistry.addRecipe(new ItemStack(Item.bootsChain, 1), new Object[] { "x x", "x x", " ", 'x', this.Chainlinks }); GameRegistry.addRecipe(new ItemStack(Item.bootsChain, 1), new Object[] { " ", "x x", "x x", 'x', this.Chainlinks }); } public void smelting() { GameRegistry.addSmelting(CompressedLeather.shiftedIndex, new ItemStack(TannedLeather, 1), 1.0F); } } and use the user: ZeldaCorporation and a test url: http://media-mcw.cursecdn.com/9/9a/Minecon_Cape2012.png -
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
this is not how strings should be compared! http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java I believe it's just URL, so you put there something like "http://www.anirudh.net/courses/cse585/project2/results_runs/images/lenna.gif" (e.g. link to a picture on imageshack). awsome,now the only question left is what is the pixel size??? (ex: blocks are 16x16) -
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
and even how do we tell who gets the cape and what do we put,because just that one line will not suffice -
How would I go about coding a custom cape?
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
any idea on how i can contact them??? i tried tweeting RG and no reply i tweeted cpw and asked if he could ask one of the ic2 devs and nothing yet -
I have a mod but would like to make a cape for dev team and testers,and then a seperate one for donaters but dont have a single clue as to how.I would also like to know the demensions for the cape texture and maybe even a template .png
-
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
AWSOME thanks alot man! if you have a skype could i add you if i need help again??? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
how yould i go about doing other coordinates??? and would doing this be the easiest way??? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
what about how many per vain??? oh and also could i do multipul ore's in this class??? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
ITS WORKING!!! the change to 50 lagged me a bit though lol but its working!!! .........one last thing,could you tell me which numbers represent what??? like rarity and how many per ore vain? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
actually i just realized that i had commented out something so i could work on a diff mod and didnt un-comment it -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
so any suggestions for making it be called??? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
same thing as before,nothing different in the console -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
k done,but may i ask what exactly that was supposed to do because it still didnt gen and nothing new showed in the console.......does that mean it didnt work??? -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
which set though??? lol idk where you are saying to put it -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
still couldnt find it,meaning it just plain out is not generating...and idk why -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
Ok so at this point in time the world will manage to actually generate BUT the ore still doesnt generate,i have made 5 worlds searched for 10 mins and never found it -
[Modding Help]Ore Generation Trouble
ZeldaCorporation replied to ZeldaCorporation's topic in Modder Support
doing this causes a line like this: GameRegistry.registerBlock does that mean anything -
I am having trouble getting some ore generation to work. Every time i attempt to create a world it does freeze but it gets stuck at the "Building terrain" screen Mod_Base.java is my base class and includes the blocks,items,,recipes,smealting recipes, block and item names,block registry package ZeldaCraft; import net.minecraft.block.Block; import net.minecraft.block.BlockOre; import net.minecraft.block.material.Material; import net.minecraftforge.client.MinecraftForgeClient; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "ZeldaCraft", name = "ZeldaCraft", version = "v1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = true) public class Mod_Base { //Items public static Item Triforce; public static Item TriforceofPower; public static Item TriforceofWisdom; public static Item TriforceofCourage; public static Item TriforceShardLeft; public static Item TriforceShardRight; public static Item TriforceShardTop; public static Item Crimsonine; public static Item Azurine; public static Item Aquanine; //Blocks public static Block TriShardOre; //Tri-force shard ore public static Block CrimsonineOre; //red public static Block AquanineOre; //green public static Block AzurineOre; //Blue @PreInit public void initConfig(FMLPreInitializationEvent fpe) { } @Init public void load(FMLInitializationEvent fie) { //Blocks TriShardOre = (new Blocks(1000, 0, Material.rock)).setHardness(20.0F).setResistance(20.0F).setBlockName("Tri-Shard Ore"); AzurineOre = (new Blocks(1001, 3, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Azurine Ore"); AquanineOre = (new Blocks(1002, 2, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Aquanine Ore"); CrimsonineOre = (new Blocks(1003, 1, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Crimsonine Ore"); //Items registeringBlocks(); itemNames(); recipes(); smelting(); generation(); //MineCraft Forge Texture Function MinecraftForgeClient.preloadTexture("/Textures/Blocksheet.png"); MinecraftForgeClient.preloadTexture("/Textures/Itemsheet.png"); } public void registeringBlocks() { //BLOCKS GameRegistry.registerBlock(TriShardOre,"Tri-Force Shard Ore"); GameRegistry.registerBlock(AzurineOre, "Azurine Ore"); GameRegistry.registerBlock(AquanineOre, "Aquanine Ore"); GameRegistry.registerBlock(CrimsonineOre, "Crimsonine Ore"); } public void blockNames() { LanguageRegistry.addName(TriShardOre, "Tri-Force Shard Ore"); LanguageRegistry.addName(AzurineOre, "AzurineOre Ore"); LanguageRegistry.addName(AquanineOre, "Aquanine Ore"); LanguageRegistry.addName(CrimsonineOre, "Crimsonine Ore"); } public void itemNames() { } public void recipes() { } public void smelting() { } public void generation() { GameRegistry.registerWorldGenerator(new OreWorldGenerator()); } } Blocks.java contains my basic block class fore making new blocks package ZeldaCraft; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class Blocks extends Block { public Blocks(int par1, int par2, Material par3) { super(par1, par2, par3); this.blockIndexInTexture = par2; this.setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile() { return "/Textures/Blocksheet.png"; } } OreWorldGeneration.java is where i have declared my blocks generation package ZeldaCraft; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class OreWorldGenerator implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.dimensionId) { case -1: generateNether(world, random, chunkX*16, chunkZ*16); case 0: generateSurface(world, random, chunkX*16, chunkZ*16); } } private void generateSurface(World world, Random random, int BlockX, int BlockZ) { for(int i = 0; 1<16; i++) { int Xcoord = BlockX + random.nextInt(16); int Zcoord = BlockZ + random.nextInt(16); int Ycoord = random.nextInt(60); (new WorldGenMinable(Mod_Base.TriShardOre.blockID, 10)).generate(world, random,Xcoord, Ycoord, Zcoord); } } private void generateNether(World world, Random random, int i, int j) { } } I included all three because if i need to change something then you can tell me only other class is an item class