• 0

    posted a message on WIP Mod - Alchemagy

    After a long hiatus, I am pleased to announce that (after some urging from my roommate) I am continuing to work on this mod again, after which I will (hopefully) be updating it to newer minecraft versions

    Posted in: WIP Mods
  • 0

    posted a message on Please help me make an quick easy mod

    im pretty available right now so ill get started on it soon. probably y next wednesday i'll have something

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on 1.8 Features mod for 1.7

    @OP, download back in slime for the slime blocks, i'll try and find/make some mods that fill the rest.

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Please help me make an quick easy mod

    accepted.

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Need textures for a mod

    I'm at a wall with my mods, so i have quite a bit of free time right now, i'd be happy to help with the textures.

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on 1.7.10 Custom furnace's GUI progress and fuel bar not drawing properly?

    i made a custom furnace, and the background gui draws properly. the slots draw properly. items go in, items go out. things burn. everything works fine except for when i try to draw the progress bars. my progress bar is drawing based not on the time left to cook the item, but based on how long the fuel can burn for, and its drawing the entire rectangle that my overlay is in. so it draws the overlay, yes, but it doesnt exclude the rest of the line.


    my gui texture is set like so: (orange is gui, green is fuel bar, blue is progress bar)

    aaaaaaaaa

    bbbbbbbbb

    ccccccc

    dddddd


    but instead of drawing aaa for the fuel, it draws the entire line (aaaaaaaaa)

    same for the progress, it draws bbbbbbbbb instead of bbb


    heres the code in my guiFurnace class regarding the drawing of the background:

        @Override
        protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
            GL11.glColor4f(1F, 1F, 1F, 1F);
    
            Minecraft.getMinecraft().getTextureManager().bindTexture(bground);
            drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
    
            if (this.shadowFurnace.isBurning()) {
                int k = this.shadowFurnace.getBurnTimeRemainingScaled(40);
                int j = 40 - k;
                drawTexturedModalRect(guiLeft + 29, guiTop + 65, 176, 0, 40 - j, 10);
            }
    
            int k = this.shadowFurnace.getCookProgressScaled(24);
            drawTexturedModalRect(guiLeft + 79, guiTop + 34, 176, 10, k + 1, 16);
        }
    }


    and heres the code in my containerFurnace regarding the progress bar:


    public void addCraftingToCrafters(ICrafting iCrafting){
            super.addCraftingToCrafters(iCrafting);
            iCrafting.sendProgressBarUpdate(this, 0, this.shadowFurnace.cookTime);
            iCrafting.sendProgressBarUpdate(this, 1, this.shadowFurnace.burnTime);
            iCrafting.sendProgressBarUpdate(this, 2, this.shadowFurnace.currentItemBurnTime);
        }
        public void detectAndSendChanges(){
            super.detectAndSendChanges();
            for(int i = 0; i < this.crafters.size(); i++){
                ICrafting iCrafting = (ICrafting) this.crafters.get(i);
                if(this.lastCookTime != this.shadowFurnace.cookTime){
                    iCrafting.sendProgressBarUpdate(this, 0, this.shadowFurnace.cookTime);
                }
                if(this.lastBurnTime != this.shadowFurnace.burnTime){
                    iCrafting.sendProgressBarUpdate(this, 0, this.shadowFurnace.burnTime);
                }
                if(this.lastCurrentItemBurnTime != this.shadowFurnace.currentItemBurnTime){
                    iCrafting.sendProgressBarUpdate(this, 0, this.shadowFurnace.currentItemBurnTime);
                }
            }
            this.lastCookTime = this.shadowFurnace.cookTime;
            this.lastBurnTime = this.shadowFurnace.burnTime;
            this.lastCurrentItemBurnTime = this.shadowFurnace.currentItemBurnTime;
        }
        @SideOnly(Side.CLIENT)
        public void updateProgressBar(int par1, int par2)
        {
            if (par1 == 0) {
                this.shadowFurnace.cookTime = par2;
            }
    
            if (par1 == 1) {
                this.shadowFurnace.burnTime = par2;
            }
    
            if (par1 == 2) {
                this.shadowFurnace.currentItemBurnTime = par2;
            }
        }


    any help you can offer is appreciated, since this is seriously annoying.

    Posted in: Modification Development
  • 0

    posted a message on 1.7.10 Change vanilla?

    and what about removing recipes? i know that having the same recipe in my mod will make minecraft use my recipe instead, but what if i just dont want the recipe to exist? would i just return null for the output?

    Posted in: Modification Development
  • 0

    posted a message on 1.7.10 Change vanilla?

    So I know its possible, because there are a couple of mods that do this, but how would I go about tweaking vanilla methods without relying on a 3rd party mod. so for example, change it so you cant punch wood, or that beds will blow up in the overworld. Basically how do i modify the vanilla block's properties in my own mod. I was thinking of making classes that just extend the certain block i want to change and using @Overrides on the things i want to change, but I don't know if that would work. oh and, removing/overriding minecraft recipes too.

    Posted in: Modification Development
  • 0

    posted a message on Ore spawns in overworld but not nether

    yeah that worked. (-_(\ the exact thing i saw and thought i didnt need. thanks.

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Need help setting up a GUI on right clicked block

    i copied the onBlockActivated code from minecraft crafting table, but now the gui flickers on and off real quick, like it closes the gui as soon as its opened,and this only happens once, any subsequent times and the cursor will flicker, but no gui.

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Need help setting up a GUI on right clicked block

    i just checked mc, theres no BlockPos class in net.minecraft.util

    along with no
    net.minecraft.world.IInteractionObject
    net.minecraft.block.state.IBlockState
    net.minecraft.util.EnumWorldBlockLayer


    either.

    Posted in: Modification Development
  • 0

    posted a message on Ore spawns in overworld but not nether

    I want to have two ores spawn in the nether, but they arent
    The ore set to spawn in the overworld works fine though?


    Mod WorldGen class:


    package com.CJMatRox.Alchemagy.world;
    
    import com.CJMatRox.Alchemagy.init.ALCBlocks;
    import cpw.mods.fml.common.IWorldGenerator;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import net.minecraft.world.gen.feature.WorldGenerator;
    
    import java.util.Random;
    
    public class ALCWorldGen implements IWorldGenerator {
        @Override
        public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
            switch (world.provider.dimensionId) {
                case 0: //Overworld
    //works
                    this.runGenerator(this.oreMercury, world, random, chunkX, chunkZ, 10, 32, 64);
                    break;
                case -1: //Nether
    //doesnt
                    this.runGenerator(this.oreNetherMercury, world, random, chunkX, chunkZ, 100, 10, 200);
                    this.runGenerator(this.orePyro, world, random, chunkX, chunkZ, 100, 10, 200);
                    break;
                case 1: //End
                    break;
            }
        }
    //works
        private WorldGenerator oreMercury;
    //doesnt
        private WorldGenerator oreNetherMercury;
        private WorldGenerator orePyro;
    
        public ALCWorldGen() {
    //works
            this.oreMercury = new WorldGenMinable(ALCBlocks.oreMercury, 8);
    //doesnt
            this.oreNetherMercury = new WorldGenMinable(ALCBlocks.oreNetherMercury, 30);
            this.orePyro = new WorldGenMinable(ALCBlocks.orePyro, 30);
        }
        private void runGenerator(WorldGenerator generator, World world, Random rand, int chunk_X, int chunk_Z, int chancesToSpawn, int minHeight, int maxHeight) {
            if (minHeight < 0 || maxHeight > 256 || minHeight > maxHeight)
                throw new IllegalArgumentException("Illegal Height Arguments for WorldGenerator");
    
            int heightDiff = maxHeight - minHeight + 1;
            for (int i = 0; i < chancesToSpawn; i ++) {
                int x = chunk_X * 16 + rand.nextInt(16);
                int y = minHeight + rand.nextInt(heightDiff);
                int z = chunk_Z * 16 + rand.nextInt(16);
                generator.generate(world, rand, x, y, z);
            }
        }
    }





    and the Main Class's section where i call all the methods that need to be called during init:


    @Mod.EventHandler
    public void init(FMLInitializationEvent event){
    GameRegistry.registerWorldGenerator(new ALCWorldGen(), 0);

    LogHelper.info("Initialization Complete");
    }

    I also added GameRegistry.registerWorldGenerator(new ALCWorldGen(), -1); to this and that did nothing either.

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Need help setting up a GUI on right clicked block

    Basically the title, i need help getting a custom crafting gui to appear on my custom crafting table when i right click it.

    Posted in: Modification Development
  • 0

    posted a message on Techne Modelling

    Okay so after a while i figured out myself how to make a model, but then when i imported the textures some parts of it were using the same texture and i had the sides using the same texture as the legs and i just got this really wierd texture. if anyone could help me and tell me whats going on that'd be appreciated

    Posted in: Modification Development
  • 0

    posted a message on Return same item used in recipe?

    Right now I just have the first recipe with the extended code, and it just worked for every other recipe, i don't really know why, but right now thats not important since it doesn't have any metadata/NBT attached to it, since i dont really understand those. i did notice that if i went into NEI, enchanted it (giving it a NBT), then used it in the recipe, it basically reset the enchant (removed the NBT) and it was a regular stone again, but still functioned like it did previously, so i can understand what you mean by it will return a new itemstack with no NBT, not the original itemstack with the NBT.

    Posted in: Modification Development
  • To post a comment, please .