Jump to content

MistaOmega

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MistaOmega

  1. I'll give it a go, thank you!
  2. Hello all! It's you favourite guy who can't figure things out I'm working on my grinder tile entity here: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/GrinderTile.java I'm doing all the processing on the server side, which is something I think I'm meant to do.. However, when doing this I need to gather values for the grinder's GUI: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/blocks/grinder/GrinderGUI.java The values are for the processing so I can monitor the progress each tick through the arrow icon going white However, it will always seem to be 0 on the GUI, even when the tile is working as intended. Is there anyway to fix this, or should I be doing my tick handling in a different more appropriate way? Thank you for any assistance ~Omega.
  3. Hello all, new day, new low effort meme On to the problem, I've decided to do datagen for the recipes for my grinder, which you can see here: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/datagen/GrindingRecipeBuilder.java It's basically a slightly rewritten ShapedRecipeBuilder without things like keys and whatnot The thing I would like to do is set a constant location for what I make, say for example, I need a recipe for diamonds from diamond ore, this will go under opes/recipes/grinder/diamond.json I thought this line would be the culprit: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/datagen/GrindingRecipeBuilder.java#L84 More importantly the "pathIn" field, but no matter what I change it to, it always outputs as minecraft/recipes/diamond.json Where could I set this file path so that it goes where I would like it to? Thank you all, covid safe hugs to whoever has the big brain to solve❤️ ~Omega
  4. Ah, I forgot to flag IntelliJ to upload my data asset to github, but I will fix that, As for other stuff, thank you for the heads up, I'll iterate through and fix them Relating back to my original question, does this mean in the context of making it compatable with something like Mekanism, I'd need to write a recipe for osmium dust specifically for my grinder?
  5. Hello all! So I have made a grinder, and a custom recipe for it, that grinds starlight ore, to stardust https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/GrinderTile.java I would like to make this tile compatable with other mods so that for example, if I put osmium ore from Mekanism in, osmium dust comes in. How would I get started doing this? Thank you all, sorry for no meme, I will leave two next time ❤️ ~Omega
  6. I'll look into it thank you for the help 😊 I was extending the recipe type interface anf giving it the recipe type as an instance of my Opes Recipe class, but that implements I inventory which is a no go, so I'll rework all that to fit better, also had no idea how to register recipes, so I'll make sure to do that, and whoops, didn't upload my serializer class... Thank you again 😂
  7. Hello all! So, today I have a question regarding making custom recipes, and using said recipes in a custom tile entity. So I had ago at making a recipe, I have a default recipe that extends IRecipe, and an IRecipeType class that extends that recipe class to (OpesRecipe and OpesRecipeType respectively) I also have an Itemstack to Itemstack recipe class, as in case I use something like fluids in the future, this may be a good idea The question is now, where do I go from here, I feel like I'm missing something and am not sure what to do next so if you could tell me where to go from here, this would be much appreciated, if not at least a gentle nudge in the right direction I'm trying to make this grinder compatable with other grindable ore types too, so any assitance in that matter will also be greatly appreciated, so will any explanations of what's going on when a recipe is used, and called for by a tile, I tried finding documentation as understanding how vanilla does it would help, but to no avail My recipe based code is all here: https://www.github.com/MistaOmega/Opes/tree/master/src%2Fmain%2Fjava%2Fmistaomega%2Fopes%2Frecipes Thank you all, love you long time ~Omega x
  8. Makes sense, thank you all for the help! 😊
  9. Excuse the vague title, I couldn't really describe it short and sweet Right, basically I'm trying to make an item that can recieve power, for now I'm just adding the power directly every tick here: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/items/StarlightInfusedNetherStar.java#L68-L75 Problem is, when I remove the item and get a new one, the power remains the same, so the basic question is, is there a way to only handle instances of items rather than every item from within this class, so that if I was to replace this item, the power would be different and not the same as when I removed it. Thank you for any help ❤️
  10. Ahhhh, I see, thank you very much 😊
  11. Should be public now, thank you for the example, mine at first glance seems to be laid out the same
  12. Oh damn I have it as private don't I... hold up
  13. Hello all! hope you're all staying safe So, with my limited knowledge of tags, I've attempted to add an ore to the forge/ores itemtag collection, so I can use it in my quarry system https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/TerraEngineTile.java#L88-L95 Those lines are where I attempt to grab the forge/ores, which (theoretically) should include mine, note I do actually get all registered forge ores, yanno, iron and such, just not mine Here's my resource locations for the tags: https://github.com/MistaOmega/Opes/tree/master/src/main/resources/data/forge/tags if anyone could lend a helping hand it would be much appreciated, thank you ❤️
  14. yikes, good find
  15. Here's an example from one of my ongoing projects, this is subscribing to a different event but in the same kind of fashion https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/setup/ClientEventHandler.java
  16. Oh hell yeah, sorry for my assumption, best of luck with it. To me it looks fine, although, I have my setup in my main class, for an event listener though, it looks right at first glance, which is why I suggested going through the usual debugging things to see if there's any obvious point it stops working.
  17. My thoughts, make sure that mod is correct, run some print statements to follow the program, or better yet use break points to determine the progress of the code. Without seeing the rest of your code I can't guide you personally. Also, "TutorialMod" I assume you're following a YouTube tutorial, if you are, no judgement from me, just make sure you understand exactly what they're doing. See if any errors come up, ya know, normal debug stuff and get back to me, if anyone spots anything in the meantime I'm sure they'll say something here.
  18. Why do you think you're not subscribed, is there an error, have you done any manual debugging etc??
  19. I'll be sure to avoid it in the future, ended up realising "oh yeah, it won't know where it is, doesn't even exist yet" and felt like an idiot for a solid 10 minutes
  20. Turned out not to need the garbage data, kept with using checks for null positions, just ditched the run once flag for a check if the mining pos was null although I might still add it for "cleanliness" made sure I implemented the getUpdatePacket method for reading and writing the NBT value on entity tick and it works a treat, thank you again
  21. Fabric have a discord server, try there ❤️
  22. Hey man, hope you're doing well, I'm currently not at my machine, and I don't really have any code to work off as I haven't done it before. However, if you're wondering in what order things happens, if you're overwriting vanilla methods just put print statements in it, you'll see what order they print and therefore can work it out, some of them are dependant on conditions but through analysis of the vanilla classes I'm sure it will become explanatory, if there's any particular method you're confused with I'd be happy to take a look when I'm next around, stay safe and stay inside ❤️
×
×
  • Create New...

Important Information

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