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. https://www.w3schools.com/java/java_for_loop.asp
  2. It doesn't work because nether portal facing is set by the code that deals with the detection of the fire inside an obsidian frame. The portal block was never intended to exist in the player's inventory and as such it does not follow placement update rules. Because, frankly, what do you expect to happen if you place three of them like this: XX X
  3. All I have to say is, "Wow dude, do you Java?"
  4. The mods.toml defines your mod version. The @Mod class doesn't give a fuck and your gradle.build file's version is only used for setting the file name when compiling.
  5. Not easily. You're going to need to either maintain your own data structure to track all sources of heat in the world yourself (think of how Minecraft stores chunk data) or you're going to need to make approximations, like making every block of yours search the area around it to see if there are "hot" or "cold" blocks nearby and make a best-guess at its own heat level based on what it finds).
  6. Yes. That's why it exists. If a neighbor changes, allow the block to update its own state.
  7. As has been mentioned in one thread or another on this forum about once a week for the last year and a half: Mojang uses @Deprecated incorrectly. By the way: https://github.com/arjolpanci/VanillaExtended/blob/master/src/main/java/teabx/vanillaextended/main/VanillaExtended.java#L84 Don't do BlockList.transportPipe =, use @ObjectHolder annotations. https://mcforge.readthedocs.io/en/1.15.x/concepts/registries/#injecting-registry-values-into-fields As for why you can still walk through the block I am not sure.
  8. How about using Capabilities, instead? https://mcforge.readthedocs.io/en/1.15.x/datastorage/capabilities/#creating-your-own-capability
  9. Sigh. Let me break this down. X instanceof Y requires X to be an object and Y to be a Class. X == Y requires X to be an object (or primative) and Y to be an object (or primative). Your code, item instanceof ItemInit.RUBBER_EXTRACTOR, has X is an object, Y is an object.
  10. By the way, don't do this. Use @ObjectHolder annotations.
  11. Why don't you go look? Those files are in your workspace too (check client-extra.jar) I suggest double checking what that code actually does.
  12. This is not an existent tag. There is forge:ingots/iron though.
  13. Check the vanilla blocks that do this, like the Fence.
  14. Here's a couple of examples. https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/resources/data/expindustry/advancements/recipes You can set up your own conditions as well, I just don't have any ready examples.
  15. Use advancements instead. https://minecraft.gamepedia.com/Advancements
  16. Fix its returned voxel shape. Your block is not a full cube, so don't return a full cube voxel shape.
  17. Contact the author.
  18. By about 400 nanos, maybe, by avoiding a couple of function call overheads. (That's 0.0004 ms)
  19. https://github.com/matt1999rd/GatesMod/blob/master/src/main/java/fr/mattmouss/gates/network/PacketRaisePrice.java#L32 Holy Jesus. That line can be simpler. Why do you get a world, get a server, get a world? You already HAD a world. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/network/ToServerFilterClick.java#L52

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.