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. Basically you'd want to do an outward radial search looking for a location that matches the following criteria: 1) Block is solid 2) Block above is air
  2. Considering that you haven't posted your damn code, how the fuck should I know?
  3. You should never set a value in the constructor. There are something like three different constructors for entities, which are all used in different places. Depending on which one you're using, that value might be being overwriten when the entity gets an update from the server that tells it what the server knows/sends to the client.
  4. http://www.minecraftforge.net/forum/index.php?topic=22764.0 You should be using a GUIHandler instead.
  5. I have this feeling he isn't writing java code, but trying to do this via a resource pack. And the end result is: you can't do this with a resource pack.
  6. If you're extending a class, don't copy-paste that class into your new one. Let the parent class handle all the stuff that's exactly the same. That's the beauty of OOP.
  7. Man, if only I knew where it was crashing...might possibly be EntityBlasterBolt.java line 94? No, that couldn't possibly be it.
  8. Ah, you're right. That's what the OP gets for using useless variable names like "item" "item1" and "item2" FFS, name those something intelligent. If you're going to number them at least make them "1" "2" and "3"!
  9. (From a purely aesthetical point of view, the fog will probably look better, as it will lower the maximum view distance as well as make things darker, rather than a 2D flat overlay, giving the effect of tunnel vision).
  10. Ah, it got moved, I forgot about that. Sorry, last time I used it was 1.7.10 Had a real tough time locating the right package so I could see what it's usage parameters were!
  11. new ItemStack(Blocks.DIRT, 2), new ItemStack(Blocks.DIAMOND_BLOCK) if(item1.getItem().equals(item2.getItem())){ Gosh. I wonder why this doesn't return true.
  12. Look at how the blindness potion works. You'll need to subscribe to the FogDensity event and do some manipulation to it/the GL state.
  13. @Optional is part of the cpw.mods.fml.common.Optional package. Eclipse isn't very good at being able to auto-import that particular annotation, usually because it requires a parameter and if you don't have it (because you don't know what it is) the package can't be determined. I had a lot of trouble the first time I tried to use it.
  14. If you want a "stack of 5" to be used, you need to create your own IRecipe implementation.
  15. Something something, recipes still don't respect stack size something something. ItemStack oneCopperCoin = new ItemStack(ModItems.copper_coin, 1); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.silver_coin), oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin);
  16. That's not the actual exception. You have this: catch (Exception e) { This is known as a Pokemon Catch Block. I.e. "gotta catch em all!" You didn't even then print out the error but instead a generic "I had a problem" message.
  17. You need to know how to program (in at least one language, even if it isn't Java!) before you can mod.
  18. Rather than update the NBT every tick, you can save a "start" time and compare with the current time, waiting for the elapsed distance in time to be large enough.
  19. You misplaced thing involving the doohickie inside the whatchamacallit method.
  20. Or your main mod class. I see no point in passing off the initialization events to the proxy classes when they can just do the work themselves. Prior to 1.8 my common proxy would be virtually empty except for the stub methods for the client proxy to override. Now in 1.10 it contains several wrapper methods around GameRegistry.register so I don't have to set the registryName between creating the item and registering it. End result, my main class is full of the dirty work (a lot of people put this in a ModBlocks class, and that's fine, but there's litterally no reason to pass the event off to the proxy, only to call ModBlocks.doStuff(): just call doStuff from Main!)
  21. Finding logs is easy: they'll always be within 1 block (sometimes up wards) of another log (99% chance of never touching a different tree if their bases are not right-up-next-to-each-other adjacent). Leaves will be within 3 blocks (IIRC the distance correctly) in any direction of their "parent" log. There's literally nothing you can do about stripping the leaves off "nearby" trees, where their blocks intermingle. Not unless the variant types are different.
  22. Yes, because the GUI portion still needs to know what the slots are which is defined in the Container (the "server" half).

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.