• 0

    posted a message on [Not Solved] Multi-Item Drop?
    Thank you everyone, I used some parts of different people's suggestions and got it working.
    Posted in: Modification Development
  • 0

    posted a message on [32x,64x][1.5.1] Defined
    Quote from Ningamer

    Thanks for the feedback!

    Fixed!
    As for the signs, I'm not too sure there's any way to make that work with the aesthetics of the pack without making a completely different sign texture so it has a completely flat face or something :s
    As for water bottles, Minecraft doesn't do semi-transparency, so I can't make the bottle texture itself look better... Sorry :/


    Thanks, and that other stuff isn't a big deal just thought I'd mention it.
    Posted in: Resource Packs
  • 0

    posted a message on [32x,64x][1.5.1] Defined
    Alright, I love this texture pack, but I have a few suggestions:
    -Torches are way too red right now, I would suggest almost completely yellow/ orange.
    -The texture of signs makes it hard to read text on them, but I'm not sure there's anything you can do about that.
    -The textures of the watter bottles and all potions look really flat to me. It just looks like one flat color to me.

    Thanks for the pack, and I hope you consider these changes.

    Posted in: Resource Packs
  • 0

    posted a message on TechGuy's Modding Tutorials
    Is there an easy way to add a config file that can enable/ disable certain features? Once again, thanks for any help.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on DaBuilder123's Ultra-Hardcore #1 (Players Needed!)
    Hey guys, I was wondering if anyone wanted to play in my UHC match at 1 PM EST on Sunday. Fore more info, and to apply, please visit the Reddit thread: http://redd.it/v08b8
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on [Not Solved] Multi-Item Drop?
    Does anyone know how I can get two different items two drop when a certain block is mined?

    Thanks for any help.
    Posted in: Modification Development
  • 0

    posted a message on TechGuy's Modding Tutorials
    Thank you exactly what I needed.

    EDIT: Getting an error:

    package net.minecraft.src;
    import java.util.Random;
    public class CustomBlockBurnstoneOre extends Block
    {

    public CustomBlockBurnstoneOre(int i, int j)
    {
    super(i, j, Material.rock);
    }
    protected void dropFewItems(boolean flag, int i, Random rand)
    {
    int j = rand.nextInt(3 + i);
    for (int k = 0; k < j; k++)
    {
    dropItem(mod_Buildercraft.BurnstoneOre, 1);
    }
    j = rand.nextInt(3 + i);
    for (int l = 0; l < j; l++)
    {
    dropItem(Item.expBottle.shiftedIndex, 8);}
    }
    }

    It says the method for the DropItems are undefined.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Yes two different items, I tried using the code from the cow, but I couldn't get it to work.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    How can I make a block drop two items when mined?
    As always, thanks for the help.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Thanks you've helped me so much.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    I got a problem and a quick question. So I made my beaver model and all the classes and it spawns in the world, but they do not move and are not animated.

    mod_Buildercraft
    package net.minecraft.src;
    import java.util.List;
    import java.util.Map;
    import java.util.Random;
    import net.minecraft.client.Minecraft;
    public class mod_Buildercraft extends BaseMod {
    public void load() {

    //TEXTURES
    BurnstoneOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/burnstoneore.png");
    BurnstoneIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/burnstoneingot.png");
    BurnstonePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/burnstonepickaxe.png");
    BurnstoneSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "/burnstonespade.png");
    BurnstoneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/burnstoneaxe.png");
    BurnstoneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/burnstonesword.png");
    FlameSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/flamesword.png");

    //REGISTERED BLOCKS
    ModLoader.registerBlock(BurnstoneOre);

    //ADD NAME
    ModLoader.addName(BurnstoneIngot, "Burnstone Ingot");
    ModLoader.addName(BurnstonePickaxe, "Burnstone Pickaxe");
    ModLoader.addName(BurnstoneSpade, "Burnstone Shovel");
    ModLoader.addName(BurnstoneOre, "Burnstone Ore");
    ModLoader.addName(BurnstoneAxe, "Burnstone Axe");
    ModLoader.addName(BurnstoneHoe, "Burnstone Hoe");
    ModLoader.addName(BurnstoneSword, "Burnstone Sword");
    ModLoader.addName(FlameSword, "Flame Sword");

    //ADD RECIPES
    ModLoader.addRecipe(new ItemStack(BurnstonePickaxe, 1), new Object [] {"###", " % ", " % ",
    Character.valueOf('#'), BurnstoneIngot, Character.valueOf('%'), Item.stick});
    ModLoader.addRecipe(new ItemStack(BurnstoneSpade, 1), new Object [] {" # ", " % ", " % ",
    Character.valueOf('#'), BurnstoneIngot, Character.valueOf('%'), Item.stick});
    ModLoader.addRecipe(new ItemStack(BurnstoneAxe, 1), new Object [] {"## ", "#% ", " % ",
    Character.valueOf('#'), BurnstoneIngot, Character.valueOf('%'), Item.stick});
    ModLoader.addRecipe(new ItemStack(BurnstoneHoe, 1), new Object [] {"## ", " % ", " % ",
    Character.valueOf('#'), BurnstoneIngot, Character.valueOf('%'), Item.stick});
    ModLoader.addRecipe(new ItemStack(BurnstoneSword, 1), new Object [] {" # ", " # ", " % ",
    Character.valueOf('#'), BurnstoneIngot, Character.valueOf('%'), Item.stick});
    ModLoader.addShapelessRecipe(new ItemStack(FlameSword, 1), new Object [] {BurnstoneSword, Item.blazeRod});

    //ADD SMELTING
    ModLoader.addSmelting(BurnstoneOre.blockID, new ItemStack(BurnstoneIngot, 1));

    //REGISTER ENTITY
    ModLoader.registerEntityID(CustomEntityBeaver.class, "Beaver",
    ModLoader.getUniqueEntityId());

    //ADD SPAWN
    ModLoader.addSpawn(CustomEntityBeaver.class, 12, 14, 18, EnumCreatureType.creature);
    }
    //ITEMS
    public static final Item BurnstoneIngot = new CustomItemBurnstoneIngot(201).setItemName("burnstone ingot");

    //BLOCKS
    public static final Block BurnstoneOre = new CustomBlockBurnstoneOre(200, 0).setBlockName("burnstone ore").setHardness(3F).setResistance(4F);
    //TOOLS
    public static final Item BurnstonePickaxe = new CustomItemPickaxe(202, CustomEnumToolMaterial.BURNSTONE).setItemName("burnstone pickaxe");
    public static final Item BurnstoneSpade = new CustomItemSpade(203, CustomEnumToolMaterial.BURNSTONE).setItemName("burnstone spade");
    public static final Item BurnstoneAxe = new CustomItemAxe(204, CustomEnumToolMaterial.BURNSTONE).setItemName("burnstone axe");
    public static final Item BurnstoneHoe = new CustomItemHoe(205, CustomEnumToolMaterial.BURNSTONE).setItemName("burnstone hoe");
    public static final Item BurnstoneSword = new CustomItemSword(206, CustomEnumToolMaterial.BURNSTONE).setItemName("burnstone sword");
    public static final Item FlameSword = new CustomItemSword(207, CustomEnumToolMaterial.BURNSTONE).setItemName("flame sword");
    //ADD RENDERER
    public void addRenderer(Map m){
    m.put(CustomEntityBeaver.class, new CustomRenderBeaver(new CustomModelBeaver(), 0.5F));
    }
    //CREATIVE GUI
    public boolean onTickInGame(float f, Minecraft minecraft){
    if(minecraft.currentScreen == null){
    creativeInventory = null;
    }
    return true;
    }
    public boolean onTickInGui(float f, Minecraft minecraft, GuiScreen guiscreen){
    if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof
    GuiContainerCreative) && !minecraft.theWorld.isRemote){
    Container container = ((GuiContainer)guiscreen).inventorySlots;
    List list = ((ContainerCreative)container).itemList;
    int i = 0;
    list.add(new ItemStack(BurnstoneOre, 1, i));
    }
    creativeInventory = guiscreen;
    return true;
    }
    private static GuiScreen creativeInventory;

    //STRUCTURES

    //MC VERSION
    public String getVersion() {
    return "1.2.5";
    }
    }
    CustomRenderBeaver
    package net.minecraft.src;
    public class CustomRenderBeaver extends RenderLiving
    {
    protected CustomModelBeaver modelBeaverMain;

    protected float field_40296_d;

    public CustomRenderBeaver(CustomModelBeaver par1CustomModelBeaver, float par2){
    this(par1CustomModelBeaver, par2, 1.0F);
    modelBeaverMain = par1CustomModelBeaver;
    }
    public CustomRenderBeaver(CustomModelBeaver par1CustomModelBeaver, float par2, float par3){
    super(par1CustomModelBeaver, par2);
    modelBeaverMain = par1CustomModelBeaver;
    field_40296_d = par3;
    }
    }
    CustomEntityBeaver
    package net.minecraft.src;
    public class CustomEntityBeaver extends EntityMob {
    public CustomEntityBeaver(World w)
    {
    super(w);
    texture = "/Beaver.png";
    moveSpeed = 1F;
    isImmuneToFire = false;
    attackStrength = 4;
    getNavigator().func_48664_a(true);
    tasks.addTask(0, new EntityAISwimming(this));
    }
    public int getMaxHealth(){
    return 20;
    }
    protected String getLivingSound(){
    return "mob.cow";
    }
    protected int getDropItemID(){
    return mod_Buildercraft.FlameSword.shiftedIndex;
    }
    protected boolean canDeSpawn(){
    return false;
    }
    public CustomEntityBeaver spawnBabyAnimal(EntityAnimal par1EntityAnimal)
    {
    return new CustomEntityBeaver(worldObj);
    }
    public ItemStack getHeldItem()
    {
    return defaultHeldItem;
    }
    static
    {
    defaultHeldItem = new ItemStack(mod_Buildercraft.BurnstoneSword, 1);
    }

    private static final ItemStack defaultHeldItem;
    }
    CustomModelBeaver
    package net.minecraft.src;
    public class CustomModelBeaver extends ModelBase
    {
    //fields
    ModelRenderer head;
    ModelRenderer body;
    ModelRenderer rightarm;
    ModelRenderer tail;
    ModelRenderer leftarm;
    ModelRenderer rightleg;
    ModelRenderer nose;
    ModelRenderer leftleg;

    public CustomModelBeaver()
    {
    textureWidth = 64;
    textureHeight = 32;

    head = new ModelRenderer(this, 0, 0);
    head.addBox(-4F, -8F, -5F, 8, 8, 8);
    head.setRotationPoint(0F, 10F, -1F);
    head.setTextureSize(64, 32);
    head.mirror = true;
    setRotation(head, 0F, 0F, 0F);
    body = new ModelRenderer(this, 16, 16);
    body.addBox(-4F, 0F, -2F, 8, 9, 4);
    body.setRotationPoint(0F, 10F, 0F);
    body.setTextureSize(64, 32);
    body.mirror = true;
    setRotation(body, 0F, 0F, 0F);
    rightarm = new ModelRenderer(this, 40, 16);
    rightarm.addBox(-3F, -2F, -2F, 4, 10, 4);
    rightarm.setRotationPoint(-5F, 10F, 0F);
    rightarm.setTextureSize(64, 32);
    rightarm.mirror = true;
    setRotation(rightarm, 0F, 0F, 0F);
    tail = new ModelRenderer(this, 36, 0);
    tail.addBox(0F, 0F, 0F, 6, 7, 1);
    tail.setRotationPoint(-3F, 13F, 2F);
    tail.setTextureSize(64, 32);
    tail.mirror = true;
    setRotation(tail, 0F, 0F, 0F);
    leftarm = new ModelRenderer(this, 40, 16);
    leftarm.addBox(-1F, -2F, -2F, 4, 10, 4);
    leftarm.setRotationPoint(5F, 10F, 0F);
    leftarm.setTextureSize(64, 32);
    leftarm.mirror = true;
    setRotation(leftarm, 0F, 0F, 0F);
    rightleg = new ModelRenderer(this, 0, 16);
    rightleg.addBox(-2F, 0F, -2F, 4, 5, 4);
    rightleg.setRotationPoint(-2F, 19F, 0F);
    rightleg.setTextureSize(64, 32);
    rightleg.mirror = true;
    setRotation(rightleg, 0F, 0F, 0F);
    nose = new ModelRenderer(this, 0, 26);
    nose.addBox(0F, 0F, 0F, 2, 2, 1);
    nose.setRotationPoint(-1F, 5F, -7F);
    nose.setTextureSize(64, 32);
    nose.mirror = true;
    setRotation(nose, 0F, 0F, 0F);
    leftleg = new ModelRenderer(this, 0, 16);
    leftleg.addBox(-2F, 0F, -2F, 4, 5, 4);
    leftleg.setRotationPoint(2F, 19F, 0F);
    leftleg.setTextureSize(64, 32);
    leftleg.mirror = true;
    setRotation(leftleg, 0F, 0F, 0F);
    }

    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
    {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5);
    head.render(f5);
    body.render(f5);
    rightarm.render(f5);
    tail.render(f5);
    leftarm.render(f5);
    rightleg.render(f5);
    nose.render(f5);
    leftleg.render(f5);
    }

    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
    }

    public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
    {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
    }
    }

    And my question is, how can I make two blocks drop when a certain block is mined, like when you kill a cow.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Alright I guess I will have to either use the biome or just do mob spawners.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Do you know what I can do to make my custom mob just spawn in a generated structure?
    Thanks for the help.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Yeah, if you mean the actual files I made for the mod.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    One quick question. So, I exported my class files from my mcp folder to try it on another computer, then I deleted my mcp and got the new 1.2.5 update. How can I add the class files back in so I can see them in eclipse?
    Posted in: Mapping and Modding Tutorials
  • To post a comment, please .