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. You will probably need a custom IRecipe implementation.
  2. container items. you need to override hasContainerItem and getContainerItem to return the damaged item.
  3. That is most definitely not what that means.
  4. Sooo...question. Why are you using Item.getItemFromBlock when you're the one who had to create the item in the first place?
  5. what's likely wrong is that ModIdSFHCORE contains only the mod ID, whereas the dependecy string wants to look like this: "require-after:modID[v1,v2]"
  6. Then your registration is fubar.
  7. Your problem is here: version=Constants.NTMVersion, dependencies=Constants.ModIdSFHCORE And that class file is not in your repo, so I can't examine it more closely.
  8. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderores/models/item/diamondstud_pickaxe.json
  9. Are you a modder or a player? If you are a modder, post crash log and code. If you are a player, what mods are you using? Contact those mod's authors.
  10. Gosh, if only those pages had an example on them. Something somthing player.getServerForPlayer something something.
  11. Technically with code you can enchant a stack of items. Just that if they're tools and take damage, ALL of them will until split. They can't be recombined, but if created that way, they are still stacked.
  12. Well...do you ever call setUnlocalizedName on the block?
  13. 1) You didn't post the crash, but.... 2) Do not put the IMessageHandler in the same class as the IMessage. You'll only make it harder to separate out which bit belongs to which class.
  14. That's because you never set it: if(block instanceof MarbleSlab) { ItemSlab itemSlab = new ItemSlab(marble_slab, marble_slab, marble_double_slab); itemSlab.setRegistryName(Reference.MOD_ID + ":" + "marble_slab"); return register(block, itemSlab); } You never call itemSlab.setUnlocalizedName(...)
  15. Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model betterments:blockstates/marble_single_slab.json You don't have a json file named "marble_single_slab"
  16. You don't ship APIs with your mod. You should not be altering any code inside the Mekanism packages.
  17. If you can get their source code, yes, that would fix it. As your mod has a hard dependency on Mekanism it won't matter to the end user. Mekanism should still fix their shit though. Seems to me that MekanismRenderer.FluidType should be in the API package.
  18. In your item class's constructor? Like....where else would it even make sense. You could also look for existing usages for examples. new Item().setRegistryName("blah").setWhatever(...).setSomethingElse(...) is effectively the same as inside the constructor, as those methods return this so they can be chained and used without needing a unique class. I personally don't like doing it that way when I have a unique class, but that's up to you.
  19. Yes. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntitySifter.java#L138-L146 Note that inputSlot is actually two slots: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/capabilities/SiftableItemsHandler.java#L10 I should probably pass the number of slots as part of SiftableItemsHandler's constructor, but that's the only place that class gets used.
  20. Fuck it. Nuked everything, started over. Ran setup via command prompt, got an eclipse folder this time. Only problem...all the net.minecraftforge packages are missing. The complete reverse of what I was getting with IntelliJ The hell?
  21. ...no, that's not how that works. You need to schedule the first tick yourself onBlockPlaced.

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.