Jump to content

Hamhub7

Members
  • Posts

    12
  • Joined

  • Last visited

Hamhub7's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I am trying to create a custom cauldron that can craft items when right-clicked. This all works, but I want to add some more advanced functionality. I want to make each recipe take a different amount of time to craft, and spawn a particle when it is complete. So how do I cause a wait, in gameticks, and how do I summon a custom colored particle? You probably don't need my source, but I have it here anyway: https://github.com/hamhub7/Extra-Crafting Thanks for your help!
  2. Well that’s a bit embarrassing. That’s the problem. Thanks, and I’ll try to clean up the class
  3. the init is called in the main class during the init registry. The problem is the large amount of elements (118) so all the elementutil file does is create lists to store all the data, which is then called by the tooltip and other things in the future. I dont know why the list for weight isn't working, because i almost copied and pasted the boiling/melting point one that works. Is there some sort of problem by using an integer instead of a float?
  4. https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemElement.java#L78 I think the error is probably somewhere in here though https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/util/ElementUtil.java#L441
  5. Nevermind it should be updated. I forgot to push
  6. I thought i did, but it didn't appear to have worked. Can you help me out with that?
  7. So I am trying to add elements in the periodic table to Minecraft. For some reason, my tooltip for displaying the information about the element does not display the correct information. The item is ItemElement. The tooltip works for the atomic number, boiling point, and melting point, but not for mass or any of the other values (but i'm most concerned about the mass). I suspect the problem is coming from the items not being added to the NonNullList in the ElementUtil file. What is confusing me is the fact that some work and others don't. Any help would be appreciated! Github: https://github.com/hamhub7/LabDay ItemElement: https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemElement.java ElementUtil: https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/util/ElementUtil.java
  8. Awesome! I got it to work. Thanks for your help
  9. Haha ok thanks. I'll try it out.
  10. That's sorta the question. How do i go about telling the loader that I have all these different items to load separate models for? Also the registerRenderers() is for custom tile entity rendering, which I recently deleted from the mod, but the code is still there if i want to add it back.
  11. My bad. The Github Repository is here: https://github.com/hamhub7/LabDay Files in question: https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemElement.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemBase.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ModItems.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/util/ElementUtil.java https://github.com/hamhub7/LabDay/blob/master/src/main/resources/assets/labday/models/item/element.json
  12. So I am trying to create the elements in the periodic table. However, I'm not really sure how to create different model files for each one. They are all variations of the "element" item, but with different data values. I have attached my base item, specific item, item registering class, utility class which contains my enum list, and my current model file. The first model file works, and my generic element has a texture. My question is how to get the other 118 items to have models and textures. ItemBase.java ItemElement.java ModItems.java ElementUtil.java element.json
×
×
  • Create New...

Important Information

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