
kennybenny
Members-
Posts
28 -
Joined
-
Last visited
Converted
-
Gender
Male
-
Location
Earth
-
Personal Text
Beginner at Java, but I know some things
kennybenny's Achievements

Tree Puncher (2/8)
-1
Reputation
-
Hi, I can't find out why my custom furnace isn't working, this is probably a noob question with a simple answer, but I just can't figure it out! Here's my container class: Here's my block class: The GUI GUI Handler TileEntity And finally, the main class: I know that I'm not completely done, as I am following a tutorial and have not finished yet, but it should at least open without the texture, according to the tutorial. Sorry about all the posts, I'm new to modding. EDIT: Wow, I didn't set canInteractWith to true, I just did, but it still won't work
-
Whenever I use setBlockTexture() it works, except with the texture on all sides of course, but when I use it like this it just has the "blockIcon" on all of the sides and it doesn't have iconFront anywhere. How can I fix this?
-
I'm pretty sure that you need to replace registerIcons with registerBlockIcons, it used to be what you did, but in 1.7.2, it's registerBlockIcons. Hope this helps!
-
I need help with my custom bucket, it isn't working
kennybenny replied to kennybenny's topic in Modder Support
Oh, sorry. I am a beginner at java, but I do know some Very simple things, but not much. Should I delete this topic or something? -
Here's the stuff about the bucket in my main class: bucketOil = new ItemBucketOil(oilBlock); bucketOil.setUnlocalizedName("bucketOil").setContainerItem(Items.bucket); GameRegistry.registerItem(bucketOil, "bucketOil"); FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluidStack("oil", FluidContainerRegistry.BUCKET_VOLUME), new ItemStack(bucketOil), new ItemStack(Items.bucket));\ It keeps giving me the error "the constructor ItemBucketOil() is unidentified" Oh, also, that's in the preinit. here's all of the main class: Here's the ItemBucketOil class: package k3.moremetals.mod.item; import net.minecraft.item.ItemBucket; import k3.moremetals.mod.MoreMetalsMod; public class ItemBucketOil extends ItemBucket{ public ItemBucketOil(){ //Sets The Texture Of The Item setTextureName(MoreMetalsMod.modid + ":bucketOil"); setMaxStackSize(1); } } In that it's giving me the error "Implicit super constructor ItemBucket() is undefined. Must explicitly invoke another constructor" Here's the BlockOil class: package k3.moremetals.mod.block; import k3.moremetals.mod.MoreMetalsMod; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import net.minecraftforge.fluids.Fluid; public class BlockOil extends BlockFluidClassic { public void registerIcons(IIconRegister register) { oil_still = register.registerIcon(MoreMetalsMod.modid + ":fluidStill"); oil_flowing = register.registerIcon(MoreMetalsMod.modid + ":fluidFlowing"); } public IIcon oil_still; public IIcon oil_flowing; public BlockOil(Fluid fluid, Material material) { super(fluid, material); setCreativeTab(MoreMetalsMod.moreMetalsTab); } @Override public IIcon getIcon(int side, int meta) { return (side == 0 || side == 1)? oil_still : oil_flowing; } @Override public boolean canDisplace(IBlockAccess world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.canDisplace(world, x, y, z); } @Override public boolean displaceIfPossible(World world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.displaceIfPossible(world, x, y, z); } } It's not giving me any errors in that but I thought that I'd put that there anyways. I also have a couple other things I want to know but I don't know if I should put them in here or in a different topic.
-
[1.7.2] I need help with my texturing, It's not working
kennybenny replied to kennybenny's topic in Modder Support
Can you be more specific? Seriously? You want Diesieben07 to name your package for you? Ughh No, I just don't know what he means by "my/awesome/package/name", but I think I figured it out. -
[1.7.2] I need help with my texturing, It's not working
kennybenny replied to kennybenny's topic in Modder Support
Can you be more specific? -
[1.7.2] I need help with my texturing, It's not working
kennybenny replied to kennybenny's topic in Modder Support
YES!!!! It worked! Thank you! Now I guess I have to make a class that extends item for my chunk platinum and do sort of the same thing. Thanks again. Oh and where do I put my main mod file (moreMetalsMod.java)? -
[1.7.2] I need help with my texturing, It's not working
kennybenny replied to kennybenny's topic in Modder Support
Oooohhhhh... I can't believe I didn't realize that you were talking about the "moreMetals" and not the "modid" But now it's not letting me refactor the k3.moreMetals.mod.block and the assets and stuff to moremetals, it's just telling me that it caught an exception and that a resource exists with a different case. -
[1.7.2] I need help with my texturing, It's not working
kennybenny replied to kennybenny's topic in Modder Support
Nope, still not working, could it be that my main thing is in the same package (k3.moremetals.mod.block) as the BlockPlatOre? If it is the problem where should I put it? Here's another screenshot: