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. Is it public? Change it. Is it private? Use reflection.
  2. I don't think MC is set up to do that, at least, not easily. None of vanilla's guis close in this manner, it would be jarring for the player to have that happen.
  3. Gotcha
  4. Right click -> Refactor -> Rename
  5. True, it hasn't been. XCompWiz has been busy with his actual job.
  6. (I actually copied his code into my IDE to test it last night, so yes, actually I do know that it's that, but don't tell him--also, it matches the behavior of "the game crashes and when I log back in I've been teleported," but you're right, we can't actually tell from what he's posted what line 50 is.)
  7. *Right clicks air* *Crashes game*
  8. Same. Also, I see redstone ore (repeaters, lamps, etc) is turning into "one block with two states" finally.
  9. While true, it is surprisingly not the problem. playerIn.getServer() Returns null on the client. Unsurprisingly. ItemLinkingBook Are you working on a Myst mod? Because that exists and is probably way better than anything you could accomplish.
  10. Sigh. EnumFacing.getHorizontal(meta)
  11. @Override public IBlockState getStateFromMeta(int meta) { return getDefaultState().withProperty(FACING, meta == 0 ? EnumFacing.SOUTH : EnumFacing.EAST); } What happens when the FACING value (when saved, via getMetaFromState) was NORTH?
  12. No, bad modder, no cookie. Items are singletons, there exists exactly one instance of this class, and right now in your tests, the code is being called twice: Once on the server thread Once on the client thread And each time it's deducting 1 from your counter (1 + 1 = 2). If you want to store information on a stack (like....number of charges) you need to use metadata or capabilities on the itemstack.
  13. No. Forge / Minecraft do not work on Java 9 at all, stop, end, period.
  14. #ThatWasn'tAllOfYourCode I wanted to see the whole class. Namely to see... if the class overrode onNeighborChanged of if the class exteneded another class that does
  15. Null pointers are easy to resolve... If you know where they are. You did not post the crash error itself, therefore I cannot help you.
  16. Well, I'm sure there will. Block metadata still exists, its just under the abstraction of IBlockStates. But in terms of us-as-modders not having to deal with it all the time, sure.
  17. ...and much of the container code that exists (e.g. the vanilla wrapper, many mod container's Transfer Stack methods) blindly goes "does this go in slot 0? Slot 1? Slot 2?" until it runs out of things to insert or places TO insert them. Why does it do this blindly? Because programming a blind insertion is easier: you don't have to look at any slot twice in order to guarantee that the insert succeeds.
  18. I haven't messed with using OBJ models myself, try searching the forums for OBjLoader
  19. I believe it is used instead of ModelLoader.setCustomModelResourceLocation.
  20. Have you told Minecraft that you need an OBJ model? OBjLoader::loadModel
  21. You want your block to place down with the facing based on which direction the player is looking? Go look at BlockFurnace to see how that block does it. Just adding the facing state value doesn't magically make the block place down with a specific state. Ladders are horizontal blocks too, and those face a direction based on what block they're placed on. ....what versions have you modded for before? Yes, but no, but yes, but no. If the block at the position is already the block being placed, then all that changes is the state (the metadata). If not, then it becomes that block too. There is not. If there was, the game would complain about it. Or maybe there is, because your block is still a black and purple cube, but I can tell that this is not the problem you're concerned about at the moment.
  22. I have a feeling he wants to create a button on the main menu that will send a message to a particular server, and if the admin of that server replies with a "yes" then the client automatically connects to that server.
  23. What do you mean "it does nothing"? Do you remember world.setBlockWithMetadata()? That's what setBlockState does (only there's no longer a "metadataless" version; setBlock).
  24. Like I said, minimum logging levels. Debug would be below it, Warn above it.

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.