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. You have this: final ResourceLocation registryName = Preconditions.checkNotNull(block.getRegistryName(), "Block %s has null registry name", block); That precondition is useless. Why? Because if the block's registry name was null, you'd have gotten an error when registering it. What you should do is check to see if the block is null. Because it will be: private static final Block AMETHYST_ORE = null; You never assign a value to this field. If you are intending to use Object Holders to fill it (good idea) you need to add the Object Holder annotation.
  2. More specifically, the class isn't even available. The Minecraft dedicated server jar does not include those classes (or fields/methods). They've literally been stripped. Even if the JVM wants them, they aren't there to go get. That's why the server will crash with a "Class Not Found" exception. While the reason for the removal is to make the jar more lightweight, it's more complicated than simply "not loading" things.
  3. Yep, that. That's what I meant.
  4. Those numbers (519, 515) aren't magic. The decompiled minecraft code uses them because the numbers came from an enum. I'm away from dev, so I can't point you at the right place, but they stand for GL_ALWAYS and GL_LEQUAL respectively. I suggest you update your code to use the enum reference so that your code is more readable and doesn't contain these arbitrary magic numbers.
  5. Store the counter in your TE and reference it in your TESR
  6. As a client only mod? Yes. It is impossible.
  7. Go look at the block class and find what the new signature is for that method.
  8. erik.mod.Amethyst.proxy, but the field is not static
  9. How does the server tell the client anything? Parakeets. Packets.
  10. Sound on the other hand, is also a client side effect. Dollars to doughnuts, that playSound method forwards off to somewhere that does nothing.
  11. .Here: That event is fired on the server. Minecraft.getMinecraft() is client-side-only.
  12. The key bit there being WorldClient world
  13. You changed the server proxy string, but it is the client proxy string that is wrong.
  14. Then click the convenient "remove formatting" button that shows up when you paste stuff. Or the one in the tool bar. Cyan on white is impossible to read.
  15. Please don't color your posts. I can't read that shit.
  16. I can open them just fine in Eclipse...
  17. Have you looked at any of the vanilla recipes that involve metadata items? Say...cookies?
  18. Append to the message rather than displaying a new message.
  19. File not found: ezmod:models/... Your file is located at ezmode:models/...
  20. ...make it SMALLER than 1x1x1 Like... 1x0.9x1 It still HAS a top face, but that when the player stands there, they will take damage.
  21. Oh your file was valid JSON, that wasn't your problem. It was that it failed to deserialize into the expected types.
  22. If its in your build path, all you have to do is import the classes. Unless you have a more specific question.
  23. If you make the collision box a full cube in all directions except up, then you can use the same code that cactus does for damaging the player, which is based on the player's collision box being inside the full 1x1x1 volume of the block. This will allow the player to grind themselves up against the sides the spikes without taking damage.

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.