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


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jaffaaaaa's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. I'm trying to create a simple gui with a few buttons which open when the player does /zm. The command isn't the problem (and I don't think the initGui() ) is, but drawScreen() never triggers. I have two debuggers to see if they trigger and initGui does but not drawScreen. Code: https://pastebin.com/CMXnWj4E What triggers: https://gyazo.com/c9398a1518962b3d4f17f90e3f990bf5.mp4 Any help is appreciated!
  2. I'm trying to make a gui to edit values and settings using a command, but the gui just does nothing apart from showing me the "init gui" message I put i the initGui() method. package xyz.jaffaaaa.zealotmanager; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ChatComponentText; public class GuiHandler extends GuiScreen { private GuiButton reset; private ZealotManager zm; public GuiHandler(ZealotManager zm) { this.zm=zm; } @Override public void initGui() { super.initGui(); this.buttonList.clear(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("init gui")); this.buttonList.add(reset = new GuiButton(0, this.width / 2 - 100, this.height / 2, "Reset Counters")); } @Override protected void actionPerformed(GuiButton button) { if (button == reset) { zm.counter.zealotsSinceLastEye = 0; zm.counter.totalEyes = 0; zm.counter.totalZealots = 0; } } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); drawDefaultBackground(); } }
  3. I want to make a keybind where if you activate the keybind while in a chest gui, it transfers all of your cobblestone into the chest as if you were shift clicking them. All of this on clientside btw. I'm just not sure which direction to go with this. Any help is extremely appreciated.
  4. Literally just render a 2D picture over a player. Not a reskin or anything. Just to draw an image on a player (and scale to how big the player is)
  5. I've tried to look for help on how to just render an image over other players but every time I look for threads I can only find examples of people editing their own player's movement etc. Any help would be appreciated.
  6. I want to make a keybind where if it's pressed, the player goes forward, and holds left click until the keybind is toggled again. Any help is appreciated
  • Create New...

Important Information

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