Everything posted by kennybenny
-
[1.7.2] GUI on custom furnace isn't opening
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
-
[1.7.2] How do I make smelting recipes that only work with my custom furnace
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?
-
[1.7.2] Making a Multi-sided and animated texture
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?
-
[1.7.2] Creating a custom liquid
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!
-
[1.7.2] How do you make a fluid that only does damage to specific mobs?
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)?
-
[1.7.2] How do you make a fluid that only does damage to specific mobs?
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:
-
I need help with my custom bucket, it isn't working
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?
-
I need help with my custom bucket, it isn't working
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] My pickaxe crafting recipe isn't working, can somebody help?
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"
-
[1.7.2] My pickaxe crafting recipe isn't working, can somebody help?
All of my other recipes are working but not my pickaxe recipe. Code:
-
[1.7.2] I need help with my texturing, It's not working
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
Can you be more specific?
-
[1.7.2] I need help with my texturing, It's not working
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
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
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:
-
[1.7.2] I need help with my texturing, It's not working
Yeah,it gave me errors because there wasn't a "this." and because it was .setTextureName inestead of .setBlocTextureName
-
[1.7.2] I need help with my texturing, It's not working
If you mean like this it's still not working.
-
[1.7.2] I need help with my texturing, It's not working
Do you put all the classes in there or just the blocks, and if you only put the blocks there, where do you put the main file?
-
[1.7.2] I need help with my texturing, It's not working
Hmmmmm... When you said net.techmodcraft.mod.block, what did the "mod" and "block" mean?
-
[1.7.2] I need help with my texturing, It's not working
It's still not working, do you have any tutorials that are any different from what I was already doing?
-
[1.7.2] I need help with my texturing, It's not working
Well, thanks, hope you can look tomorrow.
-
[1.7.2] I need help with my texturing, It's not working
Here you go: http://i.imgur.com/00zvEF3.png
-
[1.7.2] I need help with my texturing, It's not working
I think I have the same setup, there it is
-
[1.7.2] I need help with my texturing, It's not working
Yeah, I copy-pasted it all. I'll take some screenshots and if somebody can tell me how to use the insert image thing on the forum (I'm a big noob on the forum) then I can post them.
-
[1.7.2] I need help with my texturing, It's not working
Nope, still not working, just a checkered purple and black block, the images are 16x16, just saying, it might help.
IPS spam blocked by CleanTalk.