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. And where's that invoked from. Ultimately I need to know the IBakedModel modelMain object originates, as by the time it gets to BakedModelCurrencyFinalized, it's null.
  2. https://github.com/swagster43/CardCraft---Base/blob/master/src/main/java/com/cardcraft/ccbase/proxy/ClientProxy.java#L12 There is no reason to rebuild the model resource location like this. item.getResourceName().toString() works just fine. Related to Code Style #3, you do not need this function. Using a class (ItemBase) for code reuse like this is an antipattern.
  3. Where is this invoked from?
  4. Post more of your log. You've only posted the secondary error ("there was a problem with this model") and not the underlying error (e.g. "Caused by: FileNotFoundException")
  5. Sigh. There's an edit button at the bottom.
  6. Or mining machines or 3x3x3 hammers.
  7. Are you using the 1.12.2 versions of those mods? Also you're in the wrong place. This is for programming help while making mods.
  8. Draco18s replied to Kaelym's topic in Modder Support
    You can't reference your objectholder fields until Init (ObjectHolders are filled at the end of the registry events, which run between PreInit and Init). If you want to pass the block to the stair, you need a local variable.
  9. Draco18s replied to Kaelym's topic in Modder Support
    Common code runs in your main mod class. There is no reason to move it into a "common" proxy.
  10. Draco18s replied to Kaelym's topic in Modder Support
    No, its null because @ObjectHolder annotations are handled after registration and the code I quoted is running before/during registration.
  11. Draco18s replied to Kaelym's topic in Modder Support
    This is null. It needs to not be null.
  12. Vanilla already has information for this. Its used for block placement, so check ItemBlock
  13. Logs can be a variable: its called the ore dictionary. For axes, you will need to create your own IRecipe implementation (for these recpies) or a custom Ingredient (for multiple recipes).
  14. This is a basic java question.
  15. WARNING: UNINITIALIZED VARIABLE ERROR: NULL POINTER EXCEPTION
  16. Why are you calling new EntityUndead before dumping out on the client? Way to waste RAM and GC. Also, new EntityUndead is not the entity you clicked on. It's a new entity (as evidenced by the new keyword). Also, what the fuck is this: Why has your IDE not told you to remove this?
  17. Also note that AI Pathfinding is similarly not affected by oversized blocks (as I see you already have invisible placeholders, that solves that problem, but it's a thing to be aware of).
  18. That answers the "how was that relevant" question. Cool. It still doesn't help you do what you want though. :P
  19. Great! That doesn't explain how they replaced the renderer.
  20. I found this youtube clip https://www.youtube.com/watch?v=Yek5Fu1cX7I And? Not sure how that's relevant to what I said.
  21. ...relative folder locations are a Thing
  22. You can also replace those magic keywords with folder locations if you want. If you search the forums for ${project_loc} I've got a post about it somewhere.
  23. Yes. That would be why its marked in red.

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.