Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Skelyvelocirap

Members
  • Content Count

    47
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Skelyvelocirap

  • Rank
    Tree Puncher
  1. Alright so, ive gotten it to work but now im a bit confused as to how i add items to the inventory. Im guessing its not as simple as inventoryHandler#setStackInSlot() is it? Would this add it to the item or itemstack?
  2. I am really confused tbh. How exactly am I supposed to do that?
  3. How do i check the type of capability its returning for with this method though?
  4. Hmmm, it still doesn't work. The type ParcelItem does not define ParcelItem() that is applicable here Im guessing this is due to the argument in the constructor but im not really sure how to fix that.
  5. public class ParcelItem extends Item implements ICapabilityProvider { LazyOptional<ItemStackHandler> inventoryHandler = LazyOptional.of(this); public ParcelItem(Properties properties) { super(properties); } @Override public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) { if(cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) { return inventoryHandler.cast(); } return null; } } Alright, i will make sure to use that instead, although, this is currently what I have. From the docs i understand i have to use a lazy optional and
  6. Ohhhhhhh, thats how you get access to those methods. I knew you used to get those in 1.12.2 but completely forgot how, that answers that! So now i simply add an IInventory to the item along with implementing the capability right?
  7. This is pretty self explanatory but i am trying to attach an inventory to one of my items. I know that i should be using capabilities for this but I'm not sure where i should put it for an item. Would it go inside of initCapabilities(), and if so how would i use that? I tried to take a look at how other mods do this but every mod seems to do it a different way and all of which require some kind of GUI(which I do not want). Of course there is the forge docs but their isn't enough documentations for doing so to items, it mostly explains for tile entities. Anything else i could find is too old to
  8. Oops, my bad. I accidentally put it in the wrong spot. It works just fine now! Thank you very much for your help!
  9. Hmmm, for some reason it doesn't work. I know the password and username are both correct and i did exactly what i just mentioned. Am i supposed to run something other than genEclipseRuns?
  10. So for the latter, would this be correct? args '--username', 'insert_username' For the former though, its simply just writing a variable? So something like that: password_variable="this_is_my_password" And then using this as the value for args?
  11. How am i supposed to do both those things? Sorry, i cannot find any resources on gradle and such so i have basically no experience with it.
  12. That's quite odd. Then what am i doing wrong? Is it not supposed to go in Program arguments in the arguments tab in run configurations? This is what is says(i replaced the username and password for obvious reasons) Launching Gradle tasks failed due to an error connecting to the Gradle build. Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.8.1-all.zip'. Problem with provided build arguments: [--username=insert_username, --password=insert_password]. Unknown command-line option '--username'. Either it is not a valid build option or
  13. I know this was possible in earlier versions but for some reason, adding --username=[my username here] and --password[my password here] to the program run arguments doesn't work. Im guessing it has to do with the fact that now you log in with the Dev account. Is there a way to use my own account, and if so how?
  14. Im trying to add support for crafttweaker but for some reason its not actually being used as a dependency. Im new to this gradle stuff and i can't find any documentation on it, so I'm completely stumped. Anyways, i added the maven repo and the dependency to the build.gradle file but for some reason its not added. The project says that the build was successful when I run gradlew genEclipseRuns. buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle',
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.