Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. 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.
  2. My guess is client/server disparity.
  3. 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.
  4. Look at blocks like the furnace that get the player's facing when placed.
  5. 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.
  6. 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.
  7. Fences actually don't use metadata The fence renderer checks neighboring blocks in the render function.
  8. BuildCraft is open source I believe. Look for it on Github.
  9. 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.
  10. What version of Minecraft are you compiling for? Did you do the correct imports?
  11. 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.
  12. 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.
  13. 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); }
  14. 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.
  15. 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/
  16. 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.
  17. I think you can close your own threads. You can also edit your original post to put "SOLVED" in the title.
  18. 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).
  19. 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? }
  20. 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.
  21. 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.
  22. I think most IDEs and compilers will strip the comparison out and use the strait boolean.
  23. Missed that when I glanced at his code. I've done that before.

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.