• 0

    posted a message on [question] Mod that generates giant caves?
    These are all done with mass amounts of TNT. Just try it out, you'll see what I mean.
    Posted in: Mods Discussion
  • 0

    posted a message on [HELP] How to Make Modloader Furnace!
    I'm also working on a furnace mod, so I'll help you out. You need to add both the active and inactive furnace to your mod_***.java. Something like this:
        public static final Block furnaceIdle = new BlockFurnace(200, false);
        public static final Block furnaceActive = new BlockFurnace(201, true);

    You can set block hardness/resistance to whatever you want, this is just an example. Also, if you want a new GUI you'll have to change BlockFurnace.java to reflect that, and edit EntityPlayer.java and EntityPlayerSP.java to call the GUI, and add a new GUI<yourfurnace>.java. And you're also going to need a Container<yourmod>.java and TileEntity<yourmod>.java. It's quite a lot of work, I know, but it's the only way this can be done.
    Posted in: Mods Discussion
  • 0

    posted a message on Help with ore gen ABOVE a certain level
    Hello all,
    I would like to know if it's possible to make an ore generate ABOVE a certain height. If someone could tell me how to make an ore generate at 72 and up that would be awesome.

    Thanks,
    Chewy
    Posted in: Mods Discussion
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from shadoskil »
    Quote from Chewy2014 »
    Quote from shadoskil »
    How can i get a tool to on right clicked on grass / dirt set the block to "inset block name here". Iv tried riping apart the Hoe but it failed.

    Let's break down this block of code from ItemHoe.java:
        public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
        {
            int i1 = world.getBlockId(i, j, k); // gets the block id of the block the item is used on
            Material material = world.getBlockMaterial(i, j + 1, k); //gets the material of the block above
            if(!material.isSolid() && i1 == Block.grass.blockID || i1 == Block.dirt.blockID) //if the block it is used on is grass or dirt & the material above the block is not solid
            {
                Block block = Block.tilledField; //block that is placed by item
                world.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.func_1145_d(), (block.stepSound.func_1147_b() + 1.0F) / 2.0F, block.stepSound.func_1144_c() * 0.8F); //plays sound effect
                if(world.multiplayerWorld)
                {
                    return true;
                }
                world.setBlockWithNotify(i, j, k, block.blockID); //places block at use location, the line of code above,(Block block =)
                itemstack.func_25190_a(1, entityplayer);
                if(world.rand.nextInt(8) == 0 && i1 == Block.grass.blockID) //code for spawning seeds
                {
                    int j1 = 1;
                    for(int k1 = 0; k1 < j1; k1++)
                    {
                        float f = 0.7F;
                        float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
                        float f2 = 1.2F;
                        float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
                        EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.seeds));
                        entityitem.delayBeforeCanPickup = 10;
                        world.entityJoinedWorld(entityitem);
                    }
    
                }
                return true;
            } else
            {
                return false;
            }
        }


    If that doesn't help I can explain in more detail.

    Iv already figured that much out but i cant figure how to set Block block = Block.tilledField; to get the block from mod loader

    Have you tried to do this?:
    Block block = mod_<yourmod>.<yourblock>;
    Posted in: Tutorials
  • 0

    posted a message on [DISCONTINUED] Chewy's Metals & Ores v1.8
    Quote from 10204307 »
    I have an idea for an ore.

    Coldium Ore: Coldium Ore is only found in high places, which means it's only found in mountains. It doesn't have to be very high, just high enough that you have to go up to look for it. Coldium Ore will freeze any water within a few blocks of it, put out any flame (except for Netherack fires), and make snow on any blocks. When you smelt Coldium Ore, it creates Coldium Shards. Coldium Shards can be used to make Frozen Crystals like this:

    [] :Iron: []
    :Iron: :Iron: :Iron:
    [] :Iron: []
    ( :Iron: is a Coldium Shard)

    With a Frozen Crystal you can make a Coldium Rod like this:

    [] :Diamond: []
    [] :|: []
    [] :|: []
    ( :Diamond: is a Frozen Crystal)

    The Coldium Rod will freeze any blocks and put out any fires near you if you right click with it. The Coldium Rod would have 30 - 60 uses. I'm not really sure.

    It sounds like a lot to do, but it would be different then another set of tools/armor.

    I like this idea, along with Ifrit7th's. I will merge the two and maybe make a few changes.
    Posted in: Minecraft Mods
  • 0

    posted a message on modding a pick to pick ice.
    You need to set the file BlockIce.java to drop ice when broken. To do that:
        public int idDropped(int i, Random random)
        {
            return Block.ice.blockID;
        }


    And you need to set the harvest level so only stone and above can harvest it. To do that you need to edit ItemPickaxe.java under the function canHarvestBlock():
            if(block == Block.ice.blockID)
            {
                return toolMaterial.getHarvestLevel() >= 1;
            }

    Hope I helped.
    Posted in: Mods Discussion
  • 0

    posted a message on How come in my MCP, i have java files not class?please help
    The .java extension is uncompiled code, while the .class extension is compiled code. You can't edit .class files so you need to decompile .class into .java to edit them.
    Posted in: Mods Discussion
  • 0

    posted a message on Help: armor that changes player's speed
    Hello all,
    I have an idea for armor that slows the player down when it is worn. I have this code:
        public void changePlayerSpeed(EntityPlayer entityplayer) {
            if(entityplayer == null) {
                return;
            }
            ItemStack itemstack = entityplayer.inventory.armorInventory[0];
            ItemStack itemstack1 = entityplayer.inventory.armorInventory[1];
            ItemStack itemstack2 = entityplayer.inventory.armorInventory[2];
            ItemStack itemstack3 = entityplayer.inventory.armorInventory[3];
            if(itemstack == null) {
                return;
            }
            if(itemstack.itemID == helmetInfinium.shiftedIndex) {
                entityplayer.moveSpeed = entityplayer.moveSpeed - 0.5F;
            }
            if(itemstack1.itemID == plateInfinium.shiftedIndex) {
            	entityplayer.moveSpeed = entityplayer.moveSpeed - 0.5F;
            } else {
            	return;
            }
        }

    It seems like it should work but it doesn't. Can anyone help me with this? If so, can you tell me if this is applicable to jump height?

    Thanks,
    Chewy
    Posted in: Mods Discussion
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from shadoskil »
    How can i get a tool to on right clicked on grass / dirt set the block to "inset block name here". Iv tried riping apart the Hoe but it failed.

    Let's break down this block of code from ItemHoe.java:
        public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
        {
            int i1 = world.getBlockId(i, j, k); // gets the block id of the block the item is used on
            Material material = world.getBlockMaterial(i, j + 1, k); //gets the material of the block above
            if(!material.isSolid() && i1 == Block.grass.blockID || i1 == Block.dirt.blockID) //if the block it is used on is grass or dirt & the material above the block is not solid
            {
                Block block = Block.tilledField; //block that is placed by item
                world.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.func_1145_d(), (block.stepSound.func_1147_b() + 1.0F) / 2.0F, block.stepSound.func_1144_c() * 0.8F); //plays sound effect
                if(world.multiplayerWorld)
                {
                    return true;
                }
                world.setBlockWithNotify(i, j, k, block.blockID); //places block at use location, the line of code above,(Block block =)
                itemstack.func_25190_a(1, entityplayer);
                if(world.rand.nextInt(8) == 0 && i1 == Block.grass.blockID) //code for spawning seeds
                {
                    int j1 = 1;
                    for(int k1 = 0; k1 < j1; k1++)
                    {
                        float f = 0.7F;
                        float f1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
                        float f2 = 1.2F;
                        float f3 = world.rand.nextFloat() * f + (1.0F - f) * 0.5F;
                        EntityItem entityitem = new EntityItem(world, (float)i + f1, (float)j + f2, (float)k + f3, new ItemStack(Item.seeds));
                        entityitem.delayBeforeCanPickup = 10;
                        world.entityJoinedWorld(entityitem);
                    }
    
                }
                return true;
            } else
            {
                return false;
            }
        }


    If that doesn't help I can explain in more detail.
    Posted in: Tutorials
  • 0

    posted a message on [DISCONTINUED] Chewy's Metals & Ores v1.8
    Quote from giguy »
    Seriously you need to add armour asap... besides that, great mod.

    I will. The reason it's taking so long is because I am having issues doing that with ModLoader, and adding the special effects they have on the player.
    Posted in: Minecraft Mods
  • 0

    posted a message on - Old help page -
    Quote from stirberdestirb »

    hmm... I got the liquid but i have to change some things. I need to do that you can swim in it, that you can set the flowing speed and to make a texture that is only changing the blocks i want. But this seems very hard...


    I got about as far as that two weeks ago. I'm thinking texture has to do with material. If you set it to Material.water it has the water texture, and if you set it to Material.lava it has the lava textures. This also applies to flow speed. What you could do is make a new BlockFluids.java, BlockFlowing.java, and BlockStationary.java to work with a new liquid. However, I have no idea how to go about starting this.
    Posted in: Mods Discussion
  • 0

    posted a message on [DISCONTINUED] Chewy's Metals & Ores v1.8
    Quote from XxACE5001 »
    I encountered a small problem with the Smoldium, it doesn't smelt anything for me.

    I honestly don't know what this could be caused by, unless you added another mod that uses rg.class after my mod.
    Posted in: Minecraft Mods
  • 0

    posted a message on [URGENT] Help with metal merger mod
    So I had this idea that I could make a furnace that smelts two items together. However, I'm having a bit of trouble adding recipes. I've edited FurnaceRecipes.java, into this:
    package net.minecraft.src;
    
    import java.util.HashMap;
    import java.util.Map;
    
    public class MetalMergerRecipes
    {
    
        public static final MetalMergerRecipes smelting()
        {
            return smeltingBase;
        }
    
        private MetalMergerRecipes()
        {
            smeltingList = new HashMap();
            addSmelting((Item.ingotIron.shiftedIndex, Item.ingotIron.shiftedIndex), new ItemStack(Block.dirt, 1));
        }
    
        public void addSmelting(int i, int j, ItemStack itemstack)
        {
            smeltingList.put((Integer.valueOf(i), Integer.valueOf(j)), itemstack);
        }
    
        public ItemStack getSmeltingResult(int i, int j)
        {
            return (ItemStack)smeltingList.get(Integer.valueOf(i), Integer.valueOf(j));
        }
    
        public Map func_25194_b()
        {
            return smeltingList;
        }
    
        private static final MetalMergerRecipes smeltingBase = new MetalMergerRecipes();
        private Map smeltingList;
    
    }

    This seems like it should work... But when I recompile I get these errors:
    *** Minecraft Coder Pack Version 2.12 ***
    MCP 2.12 running in C:\Users\Chewy\Documents\Minecraft\MCP\MCP 2.12test1 (1.5_01
    )
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:20: ')' expected
            addSmelting((Item.ingotIron.shiftedIndex, Item.ingotIron.shiftedIndex),
    new ItemStack(Block.dirt, 1));
                                                    ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:20: ';' expected
            addSmelting((Item.ingotIron.shiftedIndex, Item.ingotIron.shiftedIndex),
    new ItemStack(Block.dirt, 1));
                                                                                  ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:20: ';' expected
            addSmelting((Item.ingotIron.shiftedIndex, Item.ingotIron.shiftedIndex),
    new ItemStack(Block.dirt, 1));
    
                                ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:25: ')' expected
            smeltingList.put((Integer.valueOf(i), Integer.valueOf(j)), itemstack);
                                                ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:25: ';' expected
            smeltingList.put((Integer.valueOf(i), Integer.valueOf(j)), itemstack);
                                                                     ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:25: not a statement
            smeltingList.put((Integer.valueOf(i), Integer.valueOf(j)), itemstack);
                                                                       ^
    sources\minecraft\net\minecraft\src\MetalMergerRecipes.java:25: ';' expected
            smeltingList.put((Integer.valueOf(i), Integer.valueOf(j)), itemstack);
                                                                                ^
    7 errors
    *** minecraft_server.jar was not found, skipping
    === MCP 2.12 recompile script finished ===
    Press any key to continue . . .

    I'd really like this to work, so if someone could please help me out with this I will give you credit in the mod!
    Posted in: Tutorials
  • 0

    posted a message on [DISCONTINUED] Chewy's Metals & Ores v1.8
    Quote from XxACE5001 »
    It works now! Thanks. I love this mod!
    I have a small question for you though...
    Would it be possible to make a mod where you craft a compressor
    :stone: :_: :stone:
    :stone: :RedShroom: :stone:
    :stone: :_: :stone:
    :_: is a stone pressure plate
    :RedShroom: is redstone.
    It looks like a furnace, you can only smelt coal in it. Smelting a full stack of coal will give you 1 diamond.
    It's an idea I had a while back, but, I don't have a clue on how to mod...
    If you can do this, or know someone who can, let me know, I'd really like to see this made.

    I couldn't make it smelt a whole stack at once, but I could require you to do something like this:
    :Coal: :Coal: :Coal:
    :Coal: [] :Coal:
    :Coal: :Coal: :Coal:

    And then you get compressed coal, something like IndustrialCraft does. However, this doesn't fit with the mod. If I did make it, it would be a seperate mod that is compatible with this one and would also have the metal merger in it. Thanks for your suggestion.
    Posted in: Minecraft Mods
  • 0

    posted a message on [DISCONTINUED] Chewy's Metals & Ores v1.8
    Quote from XxACE5001 »
    I used mod loader and installed everything correctly, I have no other mods installed, i still get a black screen after the Mojang screen. why is this?

    It's because you forgot the textures folder. Believe me, I've done that so many times while testing...
    Posted in: Minecraft Mods
  • To post a comment, please .