-
[1.16.2] Getting ConfiguredFeature from a resource location?
How can I get the ConfiguredFeature pointed to by a resource location?
-
[SOLVED] Forge 32.0.67: How are we meant to register commands now?
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?
-
Get item stack from an integer slot
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?
-
Get item stack from an integer slot
Thanks so much. I've been looking for an answer to this for a while
-
Get item stack from an integer slot
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.
-
Get item stack from an integer slot
Thank you for the explanation on that. Does this work for entities? If not, what is the method for that?
-
Get item stack from an integer slot
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) -> {})")
-
1.16.1 Game Crash
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?
-
Need help with the mods.toml file
I can't find it from there in IntelliJ IDEA either. Do you know what the usual directory is?
-
Need help with the mods.toml file
I just need the forge library and I'll be set. Where can I download that? Nvm I found it
-
Need help with the mods.toml file
how do i delete replies lol
-
Need help with the mods.toml file
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?
-
Need help with the mods.toml file
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.
-
Need help with the mods.toml file
https://github.com/ChromaKey81/devsdream
-
Need help with the mods.toml file
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.
IPS spam blocked by CleanTalk.