Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Posts posted by Animefan8888

  1. 55 minutes ago, ultra_reemun said:

    Any help would be greatly appreciated, this is my first mod!

    This is a little more complicated than what you have tried. When the key is pressed down you will need to send a packet to the server. The packet will say hey this player has pressed this button. The server will verify any other conditions then proceed with the appropriate response. In your case it will change the velocity of the player.

    Now Minecraft uses xVel, yVel, and zVel so you likely need to use trig depending on exactly what you want to do.

     

    PlayerEntity::moveForward and PlayerEntity::moveStrafe are from what I can tell multipliers on the actual motion values. And any change you do to them will be imperceptible because they are changed immediately before the entity moves.

  2. 1 hour ago, Drachenbauer said:

    Maybe i put a gradient png-texture in another color (for sample yellow) into a custome mod resource location.

    I'm not sure if this will work, but it may be worth a try.

    1 hour ago, Drachenbauer said:

    Can i tell the redstone wire to get it´s colors from there by writing a java-class?

    Probably but you may as well just use code and no image file to get the color. In BlockColors.register seems to be what you want. You can use that to change the color of the redstone there.

  3. 4 minutes ago, peter1745 said:

    if anyone knows how to do this, or has any pointers to tutorials it would be very much appreciated

    Seeing as how World Gen tutorials were pretty sparse even prior to 1.13 I doubt there are any or at least any good ones.

    I would say look at the Buried Treasure structure/feature as it seems really basic. Basically look at where the constructors are called as well for the associated classes until a place looks like a registry or something to do with world generation. And use that to make a simple structure before you make your actual structure.

  4. 16 minutes ago, saoj12 said:

    One more thing, how do I look at the vanilla jar file? Up until now I've been right-clicking net.minecraft classes and clicking goto declaration in my IDE ?

    In eclipse in the package explorer there is Reference Libraries -> client-extra.jar You can look at all the assets and data files for vanilla in there.

    If you are not using eclipse I'm not sure of the entire process but somewhere there should be a client-extra.jar file you can look into. If not you can always go to your .minecraft folder and open the 1.15.2 versions jar file.

  5. 6 minutes ago, Nitoxym said:

    What do you mean? An event, class? If so, it's in RenderGameOverlayEvent

    That's exactly what I meant. Inside the RenderGameOverlayEvent there is a getWIndow() function and that has a bunch of getters inside of it. There is one for getScaledWidth/Height and the normal getWidth/Height not sure which one you want to use though.

×
×
  • Create New...

Important Information

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