Everything posted by Draco18s
-
Make Diamond can't mine Block, Help!!!
You're going to have to look at the onHarvest method and try and figure out what level of tool the player is using yourself.
-
Dynamic-Size Container
My guess is client/server disparity.
-
[1.5.2] Creating a pipe?
3, I think. If we consider that implementing a new block is a 1 and handling GUIs* is a 5, then a 3: difficult, but by no means the most difficult thing. *Most frustrating thing I've encountered thus far.
-
[1.5.2][SOLVED]Multitextured block like a Pumpkin!
(And pumpkins are neither)
-
[1.5.2][SOLVED]Multitextured block like a Pumpkin!
Look at blocks like the furnace that get the player's facing when placed.
-
[1.5.2] Creating a pipe?
By non-cube, you mean the shape so it takes up less than a full block? Techne might help you, or you can try and write the renderer by hand (for a simple square pipe its likely not too hard). You might also want to take a peek at Buildcraft's code, which is open source and on Github.
-
Change placed block according to neighbouring blocks
It would be more intensive than if you used metadata. But if you can't use metadata (like redstone, because metadata is being used for other things, or for devices that have more than 16 configurations, like pipes) then it's not too bad. You'd actually be surprised, but the 3D render calls (the tessalator) aren't performed that often.
-
Change placed block according to neighbouring blocks
Fences actually don't use metadata The fence renderer checks neighboring blocks in the render function.
-
Change placed block according to neighbouring blocks
BuildCraft is open source I believe. Look for it on Github.
-
Errors with creating a block.
What version of Minecraft are you compiling for? Did you do the correct imports? 1.5.1 and yes, I imported everything that came with that line of code Well. I'm on 1.5.1 as well. So it should have worked.
-
Errors with creating a block.
What version of Minecraft are you compiling for? Did you do the correct imports?
-
Errors with creating a block.
Rather than doing it that way, which doesn't allow for a config file to change the block ID, do it the "correct" way. That and don't name your variable the same as your class name. It confuses things. public static Block amethystBlock; ... @PreInit public void preInit(FMLInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); int amethystID = config.getBlock("Amethyst", 6543).getInt(); amethystBlock = new AmethystBlock(amethystID).setHardness(5.0F).setResistance(10.0F).setUnlocalizedName("amethystblock").setCreativeTab(CreativeTabs.tabBlock); } Which might not solve your problem, as the error might be elsewhere. Also, block IDs cap at 4095. 6543 is an item ID.
-
Change placed block according to neighbouring blocks
Let's see... public void getBlockMetadata(...) {...} Yeah, I'd say that's the wrong function. You should be using onPlaced or onAdded as well as onNeighborChanged.
-
Change placed block according to neighbouring blocks
Your entire if-block results in corner pieces, with exception of the final else. Your code CANNOT generate anything else: if(j == this.blockID && i == this.blockID) { world.setBlock(x, y, z, SteamPower.LeadPipeCorner.blockID); } else if(i == this.blockID && k == this.blockID) { world.setBlock(x, y, z, SteamPower.LeadPipeCorner.blockID); } else if(k == this.blockID && l == this.blockID) { world.setBlock(x, y, z, SteamPower.LeadPipeCorner.blockID); } else if(l == this.blockID && j == this.blockID) { world.setBlock(x, y, z, SteamPower.LeadPipeCorner.blockID); } else { world.setBlock(x, y, z, SteamPower.LeadPipe.blockID); }
-
Change placed block according to neighbouring blocks
if(...) corner pipe else if(...) corner pipe else if(...) corner pipe else if(...) corner pipe else if(...) corner pipe else if(...) corner pipe else if(...) corner pipe ... Gee. I wonder what's wrong with this picture.
-
Error on custom food
That error is unrelated to your mod. This might help (all hail the power of googling your error: http://www.minecraftforum.net/topic/1641920-minecraft-freezes-in-eclipse-forgemodloader/
-
[1.5.2][solved] Rendering something transparent inside something opaque
Wasn't able to tell.
-
[1.5.2][solved] Rendering something transparent inside something opaque
Your problem is that you only have 1 "bottom" quad, which you're drawing your wine texture on. Right now your barrels inside faces get shorter as you add wine, which is why you can't see the inside walls when you render as transparent. What you need is to draw using render pass 1, but add another quad that is the surface of your wine. That quad will change based on your metadata, but the rest of your barrel won't.
-
[SOLVED] Noob-Problem with GameRegistry.registerBlock / LanguageRegistry.addName
I think you can close your own threads. You can also edit your original post to put "SOLVED" in the title.
-
Missing texture - Unable to add textures for blocks.
Couldn't be bothered to search for other "texture not loading" threads I see. Nor did you check the wiki. Which means I have to post this image AGAIN this week (this makes like nine, I think).
-
Item Textures
I'm still surprised by the number of people that think @Override performs magic. @Override updateTick(Magic moreMagic) { //this works, right? Why is it throwing an error telling me to remove the override? }
-
Two Items Show up the Exact Same in Game?
Ever solved a problem through the process of writing out the post requesting help? I once solved an issue (not a technical one, but what a recipe should be) in a dream. Well, less dream and more "how would I explain this to my mother?" exploration as I fell asleep.
-
Vert tiny render question. Just a tiny one.
I would be willing to bet that it also works for these items: Silk Redstone repeater Brewing stand Comparator (Plus cake, reeds, and cauldron) All seven of those items are instances of the same item class (ItemReed.java). I have no idea why.
-
[Unsolved]Saplings and configs
I think most IDEs and compilers will strip the comparison out and use the strait boolean.
-
Two Items Show up the Exact Same in Game?
Missed that when I glanced at his code. I've done that before.
IPS spam blocked by CleanTalk.