Jump 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. getExplosionResistance(entity); What does that do? You also have print statements in there, what do they say when run?
  2. Creating a new block, not putting it in the creative menu or giving it a recipe or anything (it's a technical block). When your block is added to the world it checks the space above it for Material.air (this is better than checking for actually air, as some mods add blocks that should be treated like air). If air: replace it with the technical block If not air: drop self / prevent placement Then when either block is broken it breaks the other block.
  3. A hundred thousand damage? o..O
  4. All correct. (Except that it's a field, not a method)
  5. Not outside of a coremod, no.
  6. The OGL code there just rotates the item entity so it lays flat instead of standing upright.
  7. serverSideRequired=true means that a player that has the mod installed on their client CANNOT join a server without it. That's all it does.
  8. This is because Minecraft assumes that blocks never extend outside a full cube. You should really be using a second block to fill that upper space, like pistons do.
  9. OreDict recipes. GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(whatevs), " r ", " s ", " ", 's', "stone", 'r', new ItemStack(Item.redstone)));
  10. It happens there in model class. See line 60.
  11. Not sure what's up with that. Things near the edge of the view cone generally behave oddly anyway. Thanks! Here's a screenshot of it in the world. (Hmm. Need to double check the glass edges. I think I saw them missing the edging the other day...)
  12. Oh ew, no. Event handler yes, but that's the wrong event. Use LivingHurtEvent.
  13. GL11.glEnable(GL11.GL_BLEND) See line 95.
  14. Alright. I don't know what the problem is. I thought it was because of the truncates to integers, but that's not it. I do not know what is wrong. The problem may not even be in that class.
  15. Coremods use reflection and/or ASM, not edits to base classes.
  16. Packets can handle floats. Floats and doubles are convertible into each other. Hmm. Now I'm not sure.
  17. private int lastPlayerX = 0; private int lastPlayerY = 0; private int lastPlayerZ = 0; private int lastPlayerX2 = 0; private int lastPlayerY2 = 0; private int lastPlayerZ2 = 0; *Cough*
  18. Probably. I was just doing a proof of concept thing. I didn't need the copy to be perfect, as the "concept" part was being able to blend the edges of the copy with the destination, so that it looked natural. Here's the only set of screenshots I took of one such teleport. http://s16.postimg.org/d0vp5qjid/2014_01_24_23_09_54.png[/img] http://s23.postimg.org/q9poehyt7/2014_01_25_01_52_15.png[/img] http://s27.postimg.org/5t6vwu11f/2014_01_25_02_04_16.png[/img]
  19. Yes, but if you set the piston head to air before you've copied the base, the base won't get copied (it drops). Flag 2 be damned. Rails are also a bitch to copy, but I think doing them during a second pass would be sufficient.
  20. All blocks in stacks are of type ItemBlock. Check that.
  21. I used Flag 2 as well, but that didn't stop doors and pistons from breaking.
  22. There's also DimensionManager.getCurrentSaveRootDirectory() if you need that. Also, new File(".") will also get the current directory
  23. The reason not to is because mods will want to distinguish copper and iron.

Important Information

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

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.