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

andrussy44

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About andrussy44

  • Rank
    Tree Puncher

Converted

  • Gender
    Male

Recent Profile Visitors

65 profile views
  1. To make a zoom key, you need to add some event listeners. We can do it this way. Here is the event listener code: @SubscribeEvent public static void onFovChange(FOVUpdateEvent fovEvent) { // Update the original FOV variable if(YourMainClass.originalFov != fovEvent.getNewfov() && fovEvent.getNewfov() != YourMainClass.zoomedInFOV) YourMainClass.originalFov=fovEvent.getNewfov(); } @SubscribeEvent public static void onKeyPress(KeyboardKeyPressedEvent keyEvent) { if(keyEvent.getKeyCode()==YourMainClass.zoomKeyCode) YourMainClass.mc.g
  2. Thanks for all of this. However, I don't know how to make sure that the text will not overlap. Is it possible to specify a specific font size?
  3. Thanks, but what does this code do? // UtilitiesMod.overworldPosStack is the matrix stack I am using for this UtilitiesMod.overworldPosStack.scale(0,0,0);
  4. How do I draw text on the screen? Basically, what does the function arguments of the function Minecraft.getInstance().fontRenderer.drawString() mean? Here is the code I used (UtilitiesMod is a static reference to my main mod class): // Code to draw the text fontRenderer.drawString(UtilitiesMod.netherPosStack, "Position (nether): "+UtilitiesMod.mcInstance.player.getPosX()/8+" "+UtilitiesMod.mcInstance.player.getPosY()/8+" "+UtilitiesMod.mcInstance.player.getPosZ()/8,1,0-(UtilitiesMod.mcInstance.currentScreen.height/2),14); // Main class (code for the MatrixStack variables) public static M
×
×
  • Create New...

Important Information

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