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. 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
  2. Modify how? Does an overlay texture not work?
  3. That still doesn't make any sense.
  4. What does this even mean
  5. Yes. Because that is client side only.
  6. Yes. In a tile entity.
  7. Touche. In any case, you can't get that data from arbitrary blocks (e.g, torches). You'd have to replace the block.
  8. The only way is to use a ticking TileEntity. There is no other way, all blocks are exactly the same.
  9. ItemStack does not override Equals or HashCode, so you need to remove the object that's actually in the list. itemstack1
  10. You remember the one you clone? You want to remove items from the clone, then check if you've removed everything.
  11. Hit the debugger again, try and figure out what piece of logic isn't doing what you expect.
  12. 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.
  13. 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.
  14. 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.
  15. 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.
  16. So there's this thing called block states and you need to use them to determine which texture frame to display.
  17. This. Do not do this.
  18. What if the dog is an unloaded chunk? What if the dog is in a different dimension?
  19. Your AABB is static, that won't work. Each TE needs to have its own AABB collection volume, or they will only pull items from the world origin
  20. You're attempting to spawn the recipe result before you've checked to make sure that there IS a result.

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.