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 don't need this. You can get the same effect by calling new ElementBase("cu","copper",0xffb732); instead of new Copper(); A class that does fuckall does not need to exist. There's no class for Sticks or for Iron Ingots. I haven't.
  2. Is this the name of the png file, exactly? I think you have an extra "ashed_" in there, judging by the other texture names.
  3. The player's inventory is public and an array. In order to make the slot empty you have to set it to ItemStack.EMPTY
  4. Server creates the packet by calling new YourPacket(some, params), right? What do you think the client does, it doesn't know what some, params are, but it still needs to create the packet instance so that it can take the buffer it does have and pipe it through fromBytes(buf). And the only way that even makes sense is to call a parameterless constructor.
  5. You haven't registered your tile entity.
  6. Blocklight is from blocks (torches, glowstone, etc) while Skylight is light from the sky (aka the sun and moon). Hence the names.
  7. GIMP is also good, though I personally like version 2.6, the UI changes that got introduced after that irk me.
  8. Have you heard of loops?
  9. Guis are client side, but the server has absolute authority on data. You need to send a packet. Also, use Capabilities, not NBT.
  10. ItemStacks cannot be null. They cannot be null because a stack of size zero is empty and should be treated as a non-existent stack. This is why ItemStack.EMPTY exists.
  11. Or use smaller models. If your model is large enough to fill another block space, therte should be a block there anyway, and you can put the other part of the model there.
  12. Ok, so, your first code generates a registry name with two colons in it. Hence "dangerous prefix." Your fixed code is fine, the reason for the missing registry entries is because your old code generated different IDs than your new code. This is fine, either load the world and have the blocks be deleted from it or generate a new world.
  13. Or, you know, its parent class:
  14. GetItemDropped had fuckall to do with falling blocks. That is the item that is dropped when the block is harvested. Redstone ore drops redstone dust, etc, Take a look at BlockFalling instead.
  15. I mean, if you want to do it the hard way, sure.
  16. Yes. You should. Here's the thing: Would you rather deal with integers and floats? Or the zip-compressed string representation thereof?
  17. You're in the wrong place. We don't fix problems with using mods, we fix problems with making mods. also:
  18. Your method isn't static. When using the @EventBusSubscriber annotation, all event methods must be static.
  19. 1. Capabilities do not store NBT data. NBT is a serialization format (like txt or json or xml). 2. Your read and write NBT methods do fuck all, what did you expect to happen?
  20. Yeah. That's LoreMaster. I've made comments on his videos about the sort of crap he ends up recommending, whether intentionally or not.
  21. This is not going to work, for two reasons: 1) You're cloning an array, not the item stacks 2) You check for null *after* calling .clone() on it.
  22. This is the purview of IBlockStates and the blockstate json file.

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.