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. Functions aren't magic. They do things. There's plenty of reasons to have more than one constructor, but they're not required.
  2. You delete the file in your local repository, push a commit, and sync. So remove the method you don't need. If they're identical, you don't need one of them. This is like having a shopping list that says: Milk Bread Milk
  3. Yeah, do that. Your block does not override createBlockState() and yet it tries to have properties.
  4. Complain to the mod that's crashing (biomesoplenty). This forum is for people who MAKE mods.
  5. I've been there. My tablet doesn't know the word "do"
  6. I'll admit I might be wrong, its been a while since I messed with it.
  7. http://www.vogella.com/tutorials/EclipseDebugging/article.html
  8. Quick: Name a block that emits particles
  9. Is your texture going to be transparent? No? Use opaque. Look at where vanilla makes particles.
  10. Or the block class...
  11. Its an issue with z-sorting. But without giving us the model and block classes we literally can't help you. Also:
  12. and its not xEnd, yEnd, its xWidth and yHeight.
  13. Same goes for the UV coordinates (almost: they're actually start and size), measured from the top left corner IIRC
  14. You missed the fact that my example layout was 6x5 didn't you?
  15. Note that for programming you also need the JDK...which Minecraft does not autodownload.
  16. I swear, you're either misrepresenting the argument on purpose in order to create strawman or you're actually not understanding it. Lets take this layout: The left side is just a mirror of the right, so I'm not bothering to draw its offsets. If we want to rotate it, we get this: Notice how two of the positions (besides the center) remain filled, even though they are different parts of the whole layout: This is because of how rotations work: they swap the X and Z values (and sometimes flip their sign). https://math.stackexchange.com/questions/1330161/how-to-rotate-points-through-90-degree In order to make what we want to happen, we treat things as relative. Instead of +2X we call it +2R. if Facing.Forward.Z is our Forward offset (moves up under no rotation) and Facing.Forward.X is our Right offset (moves right under no rotation) We'll do this process by focusing only on this blue block: In this orientation it's +1F,+2R. Lets animate that. Now lets rotate it 90 degrees. HOLY SHIT IT WORKS
  17. No its not. Two blocks to the right? pos.offsetZ(Facing.getX() * 2).offsetX(Facing.getZ() * 2) Three blocks left and one up? pos.offsetZ(Facing.getX() * -3).offsetX(Facing.getZ() * -3).offset(Facing.UP) There's always a point from which you can perform all of these calculations and there is no rotation that this doesn't support (unless you want your machines to be constructed on their *sides* too, but even THAT functions if you do it right). It doesn't support mirroring very well, but you CAN do it. The whole even/odd things it moot too. If its an even number of blocks your "center" is just offset to the side a bit, one side extends 1 block away from "center" and the other side extends 2. I dare you to construct something that when rotated does not appear identical to a reference frame rotated the by same amount.
  18. Not really. If you do all your offsets based on a Facing (and Facing has a getOffset method) you don't even need to think about it. "This block is 1 forward" -> pos.offsetX(Facing.getX()).offsetZ(Facing.getZ()) "This block should be one to the right" -> pos.offsetZ(Facing.getX()).offsetX(Facing.getZ()) Then you just loop over the horizontal facing values.
  19. https://github.com/RIS-Mods/RIS-Minimap/blob/master/src/main/java/com/deerangle/render/MinimapCacher.java#L93-L94 That doesn't look right. You should use << 4 Ditto here: https://github.com/RIS-Mods/RIS-Minimap/blob/master/src/main/java/com/deerangle/render/MinimapCacher.java#L107
  20. I did not ask for a stack trace, as the fact that your code is invoking a chunk load event was already self evident. What I want is your code.
  21. And why do you think 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.