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


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by JTK222

  1. That is not possible, Minecraft creates a texture atlas. You'd have to use bypass that system for .obj models.
    Which isn't a good thing to do for blocks/items. (I don't think it would even be possible)
    You can do it for TESRs/entities however, but you'll either have to either redo the uv in the baked .obj model,
    or handle the loading on your own.

    Edit: I just now realized how dead this forum is.. I am surprised that the first page still contains posts from... a few months ago)

  2. The reason it's not returning anything from data is because the Client "doesn't know" the data folder.
    For that you need the integrated server, which is just registered when a player joins singleplayer. (and maybe lan)
    I haven't figured out how to hook up into it's creation yet. But I'll let you know when I find a way.

    (On the deticated server it will only return things in the data folder)

  3. You'll probably need some math. What you probably want is kind of a responsive GUI.
    For example, if you want a button that's always in the top right corner of your screen you'd calculate x and y like this:

    y = yOffset;.
    x = this.width - buttonWidht - xOffset;

    However, the way most guis work everything is centered.
    So to get the center you'd use:
    y = this.height / 2;
    x = this.width / 2;
    And place your things according to this. This way the items will always stay relative to the center.

    • Like 2
  4. Heyho, 


    I know this might sound stupid but I would need to change some of my config values from other locations than the default config gui.
    My research has shown that I need the property, but with the new annotation based configs I am unable to find a way to get them (at least without reflections).

    Is there maybe a way to change these values without reflections?


    Thanks in advance.

  5. @Leviathan143 Thank you! But I figured it already out yesterday night using reflexions.


    @Jay Avery Ok, so it can find the models and everything there are no more errors. But the problem is that the Block is now invisible D:
    I've been trying now the whole day to find the cause for this but everything seems right. Here is the source code: https://github.com/DarkRoleplay/Dark-Roleplay-Medieval/blob/1.11/src/main/java/net/dark_roleplay/medieval/client/model_baking/DelayedBakedModel.java

  6. You should really learn some Java Basics....

    The last thing you wrote says it basicly. You cannot pass a string to the method as it requires a Resource Domain.

    Which is mostly build of your modid and the location of a resource or in this case the registry name of your Item/Block.

    You should also be able to just call the register method with the item only.

  7. Ok found a solution, only one problem left D:


    I cant figure out in which format the Keys for the variants in ModelBlockDefinition are.
    The variable is private and the only getter method for this returns it's values. Does anybody maybe know the format?
    Or tell me how to figure it out by myself? (I guess that would be possible with reflections even though I don't have much experience with that)

  8. @Jay Avery Thank you! Your explanation helped me a lot ^^ And I got it working (somehow)

    But one question is there a way to get the Model Path that would be used by default for a blockstate?

    I am asking because I have to many different blocks and making the loadModel and getQuads methods would take to long.

    In case no such method exists I will write something for that by myself.

  9. Heyho folks,

    even though I don't like to ask and prever to figure stuff out my self, I think this might be best for my mod and it's users :P


    My first question is:

    How can I load Models for Blocks and Items only if required. The following thread inspired me to do this: http://www.minecraftforge.net/forum/topic/55133-how-many-models-is-too-many/#comment-262773

    I tried the stuff mentioned in there, but it sadly caused only crashes. And in addition I think this can be done a bunch easier, all I want is to load a model according to it's blockstate json as it's required.

    I would appreciate if anybody could help me with this, as my Mod increases the RAM usage already by 1GB and that is of course to much D:


    My second Question:

    How could I port my current Storage Blocks to Capabilities, I got it working without the problem, I never understood really how it was working (made it 1 (or even more) year ago).

    Now as I've understood at least NBT and Capabilities I want also try to move the storage to capabilities, but this time I would like to understand it earlier and not a few months later. 

    I would be happy about maybe a link to a tutorial with a good Documentation or something similar where it's explained.

    Even though my biggest trouble with it was always the the GUI and synchronization stuff.

    Here is my current code if anybody is interested: 


    I would really appreciate any kind of help and thanks in advance.

  10. Some issues I had was that I first created the files with a uppercase name, and windows didn't recognize that there was a change even though it displayed it.
    Might be the same issue for you, even though it looks like you are using linux and I am not sure if thats an issue in it too.

  11. I guess :

    provided "li.cil.oc:OpenComputers:MC1.11.2-"

    should be :

    provided "li.cil.oc:OpenComputers:MC1.11.2-"

    at least thats how I have it in my gradle .
    I am also not sure if provided is correct by I will leave that to somebody with more experience.

    (I have deobfCompile insteade of provided and it works)

  12. Yes, you would need to iterate trough the buttons, but let's be serious even in case your chapters lists gets a few hundred entries you wouldn't even notice it. (Using this system for a Crafting System I have done).
    But you wouldn't have to iterate trough the chapters, chapters.get(10 * page + buttonOffset); should be enough, you would just have to set buttonOffset for each button (first button 0 and 10th button 9).
    Maybe with a small if statement to prevent an IndexOutOfBounds exception and it would be done.

    	button.chapter = chapters.size > 10 * page + buttonOffset ? chapters.get(10*page +buttonOffset) : null;

  • Create New...

Important Information

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