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. And this is why I have jredfox muted.
  2. Mainly due to authentication: how does the end-user know that you aren't stealing their password? How do they know you're not inadvertently leaking your password (through poor security)?
  3. Sorry, I should have booted up Eclipse. I thought they wrapped that field in a getter. Nope, it just got renamed. Minecraft.getMinecraft().player
  4. See this for the format details: https://minecraft.gamepedia.com/Advancements#JSON_Format Note the "loot" entry towards the bottom. Note that those also have a JSON format: https://minecraft.gamepedia.com/Loot_table#Tags
  5. You don't need events to do that. All you have to do is write an advancement JSON that rewards the player with the item.
  6. Only if your event handler method is static.
  7. Or, slightly farther down the page... http://mcforge.readthedocs.io/en/latest/events/intro/#automatically-registering-static-event-handlers
  8. Also, don't make custom clients.
  9. Apparently you missed this part: Registry events are just another kind of event.
  10. Where do you put an event handler? Maybe in an event handler class? YES
  11. That's not how that works.
  12. Where is your ModelRegistryEvent event handler?
  13. You are correct, that method already runs on the server. I was being hasty. Still, it must happen on the server.
  14. You haven't registered your event handler class as an event handler with the event bus.
  15. You need to send a packet to the server and the server sends a message to all players. Which is true for setting the blockstate, too.
  16. Not here. We stopped providing help with 1.7 about a year and a half ago. We can't support every version forever and the decision was made that only the current version and the next oldest would be supported here. And that means 1.12 and 1.10, although we still do regularly help with 1.8.9, but that support typically comes with a "you should still update" message.
  17. 1.7.10 is fucking ancient and no longer supported. Update.
  18. You can't do this on the client.
  19. I would create a new task, add it with priority 0, and have it use a mutex flag value of 0xFFFFFF. That would prevent other tasks from running.
  20. If you need to read something out of the jar file, use Class#getClassLoader().getResourceAsStream(resourceName);
  21. Post your code. Preferably as a github repository.
  22. You managed to learn about the ModelRegistryEvent, but not the Registry.Register<T> event?
  23. No it doesn't. Yes, that code "automatically writes things to the lang file" but YOU the programmer still need to write the code that does that. And you spend more keystrokes writing your automatic writer than you would just writing things in the lang file. Not having to write out "item.____.name" every time is why I have things like this in my lang files. Copy-paste the line, only change what's important.

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.