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. No, you meant to say "a lot" not "alot."
  2. You copied the project folder, but not the files the project needs to run; there's files at c:\users\[username]\.gradle that are required by Forge (this is where it keeps things like the Minecraft jar). You need to run gradle setupDecompWorkspace again. This is why I only move my /src directory between computers, rather than the /forge directory. Edit: Didn't mean to "Thank" your post. I was trying to switch tabs.
  3. Debug.Log Er I mean, System.out.println(...)
  4. @Override public boolean handleWaterMovement() { /**Code here**/ }
  5. e = EntityLivingBase.class.getDeclaredMethod("getExperiencePoints", EntityPlayer.class); That method does not exist in the obfuscated Minecraft code.
  6. There's also the renderer used when the item is dropped on the ground (for most items, this will be the same as the item frame).
  7. Draco18s replied to Asweez's topic in Modder Support
    Unfortunately, the rails handle most of the Minecart movement logic.
  8. Oh, sure you could use another block from the oreDict, that'd be fine too. You just don't need to care which one.
  9. Drop your own block registered with the oreDict, the translation to any other basalt is what the ore dict DOES.
  10. Draco18s replied to Asweez's topic in Modder Support
    That's a lot all at once, I'd start with making the car and having it auto-jump one block. Like the horse.
  11. On-hit, check position vs. entity position, if in the right place, headshot. (You are unlikely to be able to check individual cubes on the mob for collision, so you'll have to approximate).
  12. Whoah whoah whoah. This is wrong on so many levels. Static is an exception to the standard use of variables, hardly common enough to "not think about" and "just throw in there!"
  13. Yea, 1.8 pretty much takes the idea of "Magic Numbers" and hides them. No more block or item IDs, Entity IDs are almost irrelevant, metadata is now IBlockState...
  14. Been there, done that. My last one was arranging a series of rectangles so that none of them overlapped. As an optimization, I told it to only move the rectangle (between an overlapping pair) that was farthest from the origin, and to move it in the direction closest to making it not overlap. It hit an infinite loop with a set of 3 in a specific arrangement, where the one being moved overlapped with two others both closer to the origin, and both wanting to move the interloper in opposite directions. So I had to track "lastMove" and compare with "currentMove" and if they were diametrically opposed, just make it move in the same direction as "lastMove." Then a little while later I buggered up x/z/y as x/y/z (due to a 2D vector operation accepting a 3D vector and ignoring Z when I actually wanted to ignore Y; I could refactor it, but this code editor is shite at refactoring).
  15. Something's definitely wrong, and likely with your code. But with those two lines I can't immediately pick out the problem.
  16. And....what is this? this.lightValue $10 says that it's a class-level field of the parent Block class. Which is still a singleton.
  17. The hell is this? public class BlockLightEngine extends BlockContainer { int light;
  18. Cool, just wanted to make sure you weren't blindly using the function thinking it did X and it actually did Y. Which is fine. It was whether or not it returned a blockPos that was 1 unit away or if it returned the offset necessary to calculate the block 1 away.
  19. Phase.Start and Phase.End (Just check for the one you're interested in)
  20. Not sure if pos.down() actually offsets by 1 in the downward direction. Just double check (ctrl-click the function name). (Admittedly I haven't messed with 1.8 yet)
  21. *cough* There's an "canPlaceBlockAt" function. Return false there. That's why I said "look at redstone."
  22. You probably need a playerTickEvent handler. Inventory items don't update (with the exception of the armor slots, but only when the armor is actually equipped). Also, this method will break any other mod that also adds the ability to fly.
  23. Yes. And if you'd looked at the Furnace you'd know that.

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.