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. 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
  2. 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.
  3. Only if your event handler method is static.
  4. Or, slightly farther down the page... http://mcforge.readthedocs.io/en/latest/events/intro/#automatically-registering-static-event-handlers
  5. Also, don't make custom clients.
  6. Apparently you missed this part: Registry events are just another kind of event.
  7. Where do you put an event handler? Maybe in an event handler class? YES
  8. That's not how that works.
  9. Where is your ModelRegistryEvent event handler?
  10. You are correct, that method already runs on the server. I was being hasty. Still, it must happen on the server.
  11. You haven't registered your event handler class as an event handler with the event bus.
  12. 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.
  13. 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.
  14. 1.7.10 is fucking ancient and no longer supported. Update.
  15. You can't do this on the client.
  16. 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.
  17. If you need to read something out of the jar file, use Class#getClassLoader().getResourceAsStream(resourceName);
  18. Post your code. Preferably as a github repository.
  19. You managed to learn about the ModelRegistryEvent, but not the Registry.Register<T> event?
  20. 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.
  21. Yep. I don't need it in my own mods. https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L196 https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L260 https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L324
  22. Correct link: https://github.com/cryxlichlord/RubyMod What you posted works, but it is a link to the commit itself, rather than to the root directory. Looking at the log... Several missing model files and one error about... Not sure what's causing that. Also, see everything I said over here.
  23. Post the URL of your project.

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.