Jump to content

skip999

Members
  • Posts

    140
  • Joined

  • Last visited

Everything posted by skip999

  1. 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
  2. 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?
  3. 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
  4. 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!
  5. How would I blit two different animations on the same gui screen. I tried having two different blit commands handling the two different animations, but they result in something cursed to say the least. I even tried one blit line in the background and one in the foreground, but to no avail. For reference, here are the two blit lines I am using: I was poking around in the AbstractGUI class and noticed a method called innerBlit. Would it be something to do with that? For reference, the ProgressionScaled() methods merely return an int value, and do not interact with each other.
  6. Hello, I have been working on a custom furnace. I have everything working except an implementation of a fuel burn time. I have no idea how to implement this however. I tried implementing something, but it crashed and burned (pardon the pun) to say the least. What is even more frustrating is the few tutorials on how to do a custom furnace simply state to review the vanilla furnace on how to do this. I have reviewed the source code and still have no idea how to do it. I have implemented some of the logic that I'm fairly certain you need to implement to make it work, but that's about as far as I have gotten. Here is a link to my repository: https://github.com/skiprocks999/Amulets-of-Infinity/tree/Block-Library/ContInfBlockLib The reliant classes are: >"AlloyForgeContainer" >"AlloyForgeScreen" >"AlloyForgeTileEntity" Any help would be appreciated
  7. Okay I have found the issue. I was trying to insert the output into the wrong inventory slot. Thanks for the help!
  8. I addressed that above those are two old recipes I need to remove from blocks I had to remove. Even with them removed the problem still happens, so its not them.
  9. Okay this time I legitimately have a problem. Everything works perfectly. Except it won't place the item in the furnace output, and I legitimately don't know why. The debug log is showing no errors (aside from some old recipes I need to remove, but that's besides the point). I've placed some loggers in some key methods to make sure they work, which they do. I've even checked if its reading the output from the JSON file correctly, which it is. Yet I cannot get the item to output.Here is the GitHub link again, and I have attached the debug log: https://github.com/skiprocks999/Amulets-of-Infinity/tree/Block-Library/ContInfBlockLib debug.log
  10. I'm a potato I put a capitol letter in the package name. Sorry about this. My brain was fried last night when I was trying to figure this out.
  11. Okay here's the log. It's saying there is a "character in the path of location" for the json file. debug.log
  12. Okay here is a link to the full repository. I suppose I should have just done that from the start. https://github.com/skiprocks999/Amulets-of-Infinity/tree/Block-Library/ContInfBlockLib
  13. Whoops forgot tom make it public try now, And here is the crash report. Ignore the name that's just what it auto-generated. I can confirm its a SP world. crash-2020-10-29_19.39.27-server.txt
  14. Hello, I believe I am doing something wrong with my RecipeHandler, but I cannot seem to figure out what. Unfortunately, the game crashes before it can give me useful information. I have included a github link to the relevant files. I believe the issue lies when it tries to read a JSON recipe, as when I remove the custom recipe type JSON everything will load fine. Thanks for the help! https://github.com/skiprocks999/relivant-code
  15. Okay so its a first in first out structure good to know!
  16. Ah okay I see how the buffer works now. Thanks! So it should look something like this:
  17. I did the write method like so:
  18. Hello, I have been working on implementing a custom furnace block in forge 1.15.2. I have run into a slight snag that I cannot seem to figure out however. For reference, my block will take two inputs and produce 1 output. I have been able to figure out everything but how to set up the serializer properly. Specifically, in the Serializer class's read method, how would I read from the PacketBuffer if I have more than one input. I cannot seem to find any information on this. I have included my best guess at the correct approach. Am I on the right track?
  19. Hello, I have been attempting to create modded server files for 1.12.2. I am able to get the minecraftserver.jar to create its files, however I am unable to get the forge.jar to generate the mods folder amongst the other files it needs. I have tried to do this on multiple versions of forge for 1.12.2, and cannot get it to work. What am I doing wrong?
  20. Wait I got it to work. I had been fiddling since I last posted and forgot. Thanks!
  21. I am not getting that as an option for the block instances. Is it an external method I call and pass in the block instance? If so, what do I call it from?
  22. Here is my code for extracting the list of blocks from the registry: Object[] listOfBlocks = BlockInit.BLOCKS.getEntries().stream().map(RegistryObject::get).toArray(); List<Block> blockItems= new ArrayList<Block>(); for(int i = 0; i < listOfBlocks.length;i++) { blockItems.add((Block)listOfBlocks); } I am not seeing any option for blocktoitem on any of the entries in the blockItems list, nor can I find any documentation online on how I would use it. How would I apply it? And where would I apply it?
  23. I dont know what you mean by that.
  24. So I have hit a bit of a snag. I was able to get it working for the item library just fine. However, I cannot seem to figure out how to get it to work for my block library. The main issue is that I am using deferredregistries, so I only have the blocks defined in the init class. In my main mod class, I have a method that generates the block items for me, which I have listed here: public static void onRegisterItems(final RegistryEvent.Register<Item> event) { final IForgeRegistry<Item> registry = event.getRegistry(); List<BlockItem> blockItems = new ArrayList<BlockItem>(); BlockInit.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> { final Item.Properties properties = new Item.Properties().group(ContInfBlockLibItemGroup.itemGroupInstance); final BlockItem blockItem = new BlockItem(block,properties); blockItem.setRegistryName(block.getRegistryName()); blockItems.add(blockItem); registry.register(blockItem); }); logger.debug("Registered BlockItems"); } I have attempted to get a list of the block items out of the method, but to no avail. How would I go about doing that?
  25. Okay good thats how I want items to appear. Thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.