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. No, that can't be done easily.
  2. They do it with a TextureAtlasSprite https://github.com/rwtema/DenseOres/blob/master/src/main/java/com/rwtema/denseores/client/TextureOre.java I don't recommend doing it this way. 1) create a block model, like this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/resources/assets/harderores/models/block/hardore.json 2) create a blockstate file, like this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/resources/assets/harderores/blockstates/ore_hardiron.json Note the #overlay texture. That's your ore pixels portion (my ores are metadata => number of nuggets, not metadata => ore type). 3) Then create overlay textures, where alpha shows the texture of the base material (my ores actually operate in reverse, due to how I use metadata). e.g. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/resources/assets/harderores/textures/blocks/ore/overlay_15.png
  3. Modify how? Does an overlay texture not work?
  4. That still doesn't make any sense.
  5. What does this even mean
  6. Yes. Because that is client side only.
  7. Yes. In a tile entity.
  8. Touche. In any case, you can't get that data from arbitrary blocks (e.g, torches). You'd have to replace the block.
  9. The only way is to use a ticking TileEntity. There is no other way, all blocks are exactly the same.
  10. ItemStack does not override Equals or HashCode, so you need to remove the object that's actually in the list. itemstack1
  11. You remember the one you clone? You want to remove items from the clone, then check if you've removed everything.
  12. Hit the debugger again, try and figure out what piece of logic isn't doing what you expect.
  13. Which it is, as it contains zero items. But you didn't see the second item in the recipe! This is why it is so important to clone and modify the ingredients required list.
  14. This is not how you clone a list. Both of these variables reference the SAME list: if you modify one... ...you modify the other. Plus, you aren't modifying the right list anyway. By removing any of the recipe items from the list given, you... Which it is, as it contains zero items. But you didn't see the second item in the recipe! This is why it is so important to clone and modify the ingredients required list.
  15. More accurately, the texture needs to have white in its color channels. But most image programs discard text information when the opacity is 0, as it compresses better.
  16. You can't "track" unloaded entities: they've been completely removed from RAM and only exist as serialized and compressed data on the hard drive.
  17. So there's this thing called block states and you need to use them to determine which texture frame to display.
  18. This. Do not do this.
  19. What if the dog is an unloaded chunk? What if the dog is in a different dimension?

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.