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. So you're getting the current item stack.... And then doing nothing with it.... And instead, checking the current item versus an ID....
  2. Changing what the flag is affects this line: if (flag != this.isInfusing()) { //essentially this line is "this.isInfusing() != this.isInfusing()" flag1 = true; CrypticInfuser.updateFurnaceBlockState(this.isInfusing(), this.worldObj, this.xCoord, this.yCoord, this.zCoord); } Sooo....
  3. Exactly what it says on the tin. You didn't put anything into the variable and you're getting nothing out of it. What did you expect to happen? http://en.wikipedia.org/wiki/Garbage_in,_garbage_out
  4. EntityItem objects are Entities and can be found when dropped by using world#entitiesInAABB(...) There are at least three different versions, you're going to want the one that takes a Class as a parameter and looks for Entities that subclass the passed type.
  5. I never found a way to get access to the texture sheet when I was poking around with it (1.7.10). I gave up and used two-pass blocks.
  6. this.getTextureName() And is that value ever set anywhere?
  7. AFAIK, you'd need to have a two-pass block. And I'm not sure how those work in 1.8, due to the way icons are handled now. The first pass would supply the base texture ("stone") and the second pass would supply the overlay (the cracks).
  8. No, actually it doesn't. All it does is change the block-above to being the top half of a door with the correct metadata. The next line, notifyBlocksOfNeighborChange , is what makes double-doors work.
  9. I like that list. My company's website is full of nothing but ducks. Refuctored, hydra-code, ducks. Another one of our programs as at least one loch ness bug, another application has a loch ness bug we know exists but can't reproduce in-house because Apple and iOS 8.0.0/1/2 FUBARed the whole thing ("Of COURSE I upgraded my device to 8.2! What do you think I am, stupid?" "Our tracking code says you're still on 8.0.2, which is broken.")
  10. I remember looking at it once and going "how the fuck does this even work?" I was never able to back-trace the parts that I understood (each segment) back to another piece I understood (the world generator). I wish you luck.
  11. You do know what that one line does, right?
  12. No, it's not. It means your method signature is wrong. You'd know this if you had the prerequisite programming knowledge prior to starting modding.
  13. String F=""+state_entrada.getValue(FACING); if(F.contains("down")){ ... } My god. It's full of Strings. Not to mention static properties. Jesus.
  14. A ConcurrentModificationException occurs when two different threads of a program try to modify the same array structure.
  15. Did you put the @Override annotation on it? What does it say when you do?
  16. Seeing as I can't figure out what the class is doing right now, I can't help you. Find/replace all the srg names with sane, human-readable ones, and I might help you.
  17. I'll tell you what I told someone else. Refactor all of those variable names so that they're readable. if (d12 * d12 + d13 * d13 + d14 * d14 < 1.0D && p_76484_1_.getBlock(k2, l2, i3).isReplaceableOreGen(p_76484_1_, k2, l2, i3, blockB)) Is a mess, I can't read it, you can't read it, no one can read it and figure out what it's doing.
  18. Why are people always so eager about re-inventing the wheel? Because then the wheel is yours. And as I said, only if you really really need it. It's highly likely you don't, but I had one use-case where there wasn't a more appropriate place to put data. I probably could have used worldSaveData , but due to the size it probably wouldn't have been a good idea. It was also good experience reading and writing my own NBT files, I learned a lot about some particulars of the Minecraft internals.
  19. The data I/O isn't that bad, if you really, really need it. All depends on what you're trying to do.
  20. an AABB has three dimensions: Length Width Height
  21. (I think you mean "can learn" ) But that's why that repository is public.

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.