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. That's an array, and of course you can store that in a capability.
  2. Have you synchronized your capability from server to client? Also, which line is line 33 in NenOverlay?
  3. That was my first guess, but didn't write that because.... I'm dumb, probably. I thought I saw something else?
  4. I mean...its still in beta... What'd you expect?
  5. You are incorrectly setting your block's registry name. This is likely because you are using a static initializer.
  6. What you're probably missing is the declaration that tells Forge "this is client only." Its part of the @mod annotation, but I don't remember the necessary syntax.
  7. See, that's a problem I know how to help with. "Will this work?" isn't. If it did, you wouldn't be here. If it doesn't you haven't stated what your problem is. Similarly "Updatetick and scheduleupdate?" isn't a question. What about those two things? Oooh, they "aren't a thing" any more. Now I know how to help you.
  8. Oh for fuck's sake diesieben07, you know that's what I meant. I was trying to point out that the name was bad because it was copying a naming schema based on the passed in parameters without thinking about what that schema meant.
  9. Dunno. Try it and let us know.
  10. This is a bad name for this variable. The "in" portion of the parameters indicate that it was passed in to the function. If you want to delete the item from their hand, don't return the item.
  11. You don't. Remove the reference to the GameRegistry. You don't need it.
  12. This is tricky because you've already started development. If you were starting from scratch and planning on how to do it to begin with out would be easier (and the answer would be to break things into separate mods based on some quantifier).
  13. I do something like this in one of my mods: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/industry/item/ItemCastingMold.java It has a model defined by its nbt values. I even create a new variant over here in a different mod: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/integration/IndustryIntegration.java Note also that this method can't create new models after the registry events either, though in this case it is because of the way the model bakery works, but there are solutions for more dynamic models (but I didn't need it). You could easily use a colored model for something like metal ingots, which would all use a single predefined model but with a color multiplier that can be whatever value you want. For things like attack damage and durabilit, you're going to want to take a look at this (older 1.10 code that hasn't been updated): https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java
  14. (This number is a magic wildcard value, if you were wondering)
  15. Read: complain to the mod's authors.
  16. Post your code
  17. Harvested. You can break any block with your first if you really want to.
  18. By Do you mean... a) can break the block b) can break the block and gives item drops Also: You set your harvest level to 3 (not 4).
  19. So, make its harvest level 4. You can absolutely do that, its just an interger.
  20. What version of Minecraft? If not 1.13, then you need the data parameter on the stone entry.
  21. You have to send the data back to the client too. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L94-L99 Note that that may not the best method (and that it is invoked elsewhere when the TE's data changes). It ended up being what worked for me. You will also need to override getUpdatePacket, getUpdateTag, and onDataPacket. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L174-L189
  22. I doubt it. Do you have the source code? Do you have the author's permission? Have you tried asking the author to fix it?
  23. They're just different IDEs. Some folks like one, some folks like the other.

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.