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.

ChromaKey81

Members
  • Joined

  • Last visited

  1. How can I get the ConfiguredFeature pointed to by a resource location?
  2. I saw in the changelog that the method to register commands has been changed. How should this be done now, and could you provide an example?
  3. Shoot, actually I'm still having a bit of trouble with that. replace.getSource().getWorld().getTileEntity(BlockPosArgument.getLoadedBlockPos(replace, "sourcePos")).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) This returns LazyOptional<IItemHandler>. How do I get from there to using the IItemHandler methods?
  4. Thanks so much. I've been looking for an answer to this for a while
  5. So it works with players, thanks. Are entities with armor/hand slots (e.g. zombies) included? I need to be able to pass any entity with slots as a source.
  6. Thank you for the explanation on that. Does this work for entities? If not, what is the method for that?
  7. What's the method for getting an item stack from the slot of either an entity or tile entity? I need to input a slot as an integer and return an ItemStack. To get it from a tile entity, I've been using (IInventory) replace.getSource().getWorld().getTileEntity(sourcePos).getStackInSlot(sourceSlot) which works properly, but someone else told me that IInventory won't work for anything outside of the vanilla game and that I should instead use the "IItemHandler wrapper." Not sure exactly what that is though. However, I still haven't figured out how to do this with mobs, so I could use some help with that. Edit: I suppose I should specify that this is being used for a command (the above code line is in ".executes((replace) -> {})")
  8. I've been having issues with Forge 1.16.1, I'm pretty sure it just isn't 100% stable and done yet. Just realized that you're having the issues on a 1.15.2 version so nevermind my comment. Why can't we delete comments on this forum? What is this madness?
  9. I can't find it from there in IntelliJ IDEA either. Do you know what the usual directory is?
  10. I just need the forge library and I'll be set. Where can I download that? Nvm I found it
  11. how do i delete replies lol
  12. Thank you very much for the help (although now my game is crashing altogether. check repo for crash report) Could you briefly explain what I need to change in the build.gradle (or direct me to some documentation)? By the way, do I need to compile all of my .java files to .class? How would I do that in VSCode?
  13. I updated my stuff with fresh files, and now I have a new error: java.lang.RuntimeException: java.net.MalformedURLException: no protocol: github.com/MinecraftForge/MinecraftForge/issues I'm still confused because I deleted this line in the mods.toml. I uploaded everything to the github repo so there's more info available.
  14. https://github.com/ChromaKey81/devsdream
  15. Done, but I'm still getting the same errors. The log still says minecraftforge.net/versions.json despite that URL never being used in the file, so I have no idea what's happening.

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.