Jump to content

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

Tree Puncher (2/8)

-1

Reputation

  1. 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
  2. I am making a custom furnace called a refueler, and it refuels specific items if you put a bucket of oil in the fuel section of it. I want to make two recipes that will only work if you use the refueler, not the normal vanilla furnace, how could I do that?
  3. 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?
  4. 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!
  5. I can't find the code for lava, I searched for it and all that. I think that I need to make a custom material for my fluid too, how would I do that (preferably without editing minecraft code)?
  6. I am making a fluid (oil) and I want it to do damage to most of the non-hostile mobs in minecraft, how could I do this? Here's my code:
  7. 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?
  8. 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.
  9. Okay now it's working. Also, I just noticed that in the src/main/resources it's giving me a warning "the resource is a duplicate of src/main/java/.DS_Store and was not copied to the output folder"
  10. All of my other recipes are working but not my pickaxe recipe. Code:
  11. 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.
  12. 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)?
  13. 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.
  14. 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:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.