Jump to content

Get game settings


Recommended Posts

I am trying to make a feature in my mod where when the player presses the jump button they can fly up, how do I get the jump button? I'm trying to put the finished code in a tick handler, am I in the right place and how would I get the minecraft gamesettings?

Link to comment
Share on other sites

Minecraft is not a variable, it is a class. getMinecraft() will return the running instance of the client which is a field.


Just put that wherever? It doesn't seem to work in my tick handler. Looks like we can get the minecraft server from world, but I'm not sure about the client.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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