Posted November 1, 20205 yr Hello, I have made a custom furnace and now I'm trying to add a couple features to bring it up to standards with most mods. Firstly, how would I implement it to where a player is able to shift-click items in and out of the inventory. I would also like hoppers to be able to interact with the block. Secondly, how would I add JEI integration so players are able to see the recipes the block offers when looking in JEI. I really don't know what to do here as I am new to modding, and all of the existing tutorials on the subject are for 1.12.2. Thanks!
November 1, 20205 yr 9 minutes ago, skip999 said: Hello, I have made a custom furnace and now I'm trying to add a couple features to bring it up to standards with most mods. Firstly, how would I implement it to where a player is able to shift-click items in and out of the inventory. I would also like hoppers to be able to interact with the block. Secondly, how would I add JEI integration so players are able to see the recipes the block offers when looking in JEI. I really don't know what to do here as I am new to modding, and all of the existing tutorials on the subject are for 1.12.2. Thanks! * Shift-clicking functionality is done via the transferStackInSlot() method in your custom furnace Container class. You could check out the vanilla furnace container to see an example of how it could be done. * Hopper interaction should automatically work by returning a LazyOptional with your ItemStackHandler(s) in the getCapability() method in your furnace tile entity. * Check out the JEI wiki on how to make your mod recipes show up in JEI. Hope this helps! Edited November 1, 20205 yr by vemerion
November 2, 20205 yr Author Okay so I have put the lines in for the dependencies and the repositories for JEI, but I actually have no idea how to make the gradle import the libraries now that I have done so. I have linked my gradle file. For reference I am using Eclipse. How would I make the gradle import the files? https://gist.github.com/skiprocks999/47927e40b66eee121ab2b30ff71059cb
November 2, 20205 yr 9 hours ago, skip999 said: Okay so I have put the lines in for the dependencies and the repositories for JEI, but I actually have no idea how to make the gradle import the libraries now that I have done so. I have linked my gradle file. For reference I am using Eclipse. How would I make the gradle import the files? https://gist.github.com/skiprocks999/47927e40b66eee121ab2b30ff71059cb In situations like this, I find it helpful to look at examples. For example, here is the build.gradle for the Botania mod, which has jei as a dependency. Here are the classes related to jei in the Cyclic mod.
November 2, 20205 yr Author Okay I got the gradle syntax right but how do I have the gradle import the libraries? I've tried refreshing but that hasn't done it. Will they be imported if I do a build?
November 2, 20205 yr 1 hour ago, skip999 said: Okay I got the gradle syntax right but how do I have the gradle import the libraries? I've tried refreshing but that hasn't done it. Will they be imported if I do a build? I think running the 'eclipse' gradle task should be enough.
November 2, 20205 yr Author Okay so I run the gradle and its telling me that it cannot download the JEI libraries because it can't find a valid certification path to the file. I have made a gist of one of the errors: https://gist.github.com/skiprocks999/cd1e922df5d11e3caa9097ed1c8090ec
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.