Jump to content

kekmybrain

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by kekmybrain

  1. Whenever i try to run the "runClient" i get this error "/home/epik/JavaProjects/EpikHax/src/main/java: Value too large for defined data type" Here is a screenshot : https://imgur.com/a/DoZ5ej4 version : 1.12.2 I have not written a single line of code, this happen when i am just trying to set up the project for the first time. Thanks for any help!
  2. I found what i was looking for. It was very simple. This is the code if anyone else ever needs it. mc.playerController.processRightClick(mc.player, mc.world, EnumHand.MAIN_HAND);
  3. Yes i know, I'm just very new in forge coding and java, so what you mean is to create a new item that is exactly like the ender pearl?
  4. Okay. edit: if someone knows how to do what im looking for please help me.
  5. Its fine xD, do you know how i could throw the pearl or rightclick via code?
  6. But for that you would need op. What i need is just a way to throw the enderpearl that already is in my hand.
  7. You cant spawn entities in multiplayer? It is a forge client.
  8. That wont work on multiplayer servers tho? is there anyway i can just throw the ender pearl in my current slot. Maybe it click right click for me or some packet that can throw it.
  9. Hello, so I'm making a client and i made it so that whenever i turn on a module it will switch to the enderpearl in my hotbar then when i turn it off it will switch back to the item slot i was previous in. How would i throw the enderpearl?. Via a packet or something. I just need to know how i can throw it using code.
  10. package me.kek.kekclient.event.events; import net.minecraft.client.gui.GuiScreen; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class WaterMarkThing extends GuiScreen { @SubscribeEvent public void onRender(RenderGameOverlayEvent event) { if (event.getType() == RenderGameOverlayEvent.ElementType.ALL) { drawRect(10, 10, 10, 10, 0xb8352c); } } } This code does not show a rectangle Do you know why it does not? I also put it in the eventbus in the init
  11. How would i make a event that draws a simple rectangle on the screen?
  12. I'm looking at a minecraft mod and it has this code Minecraft mc = Minecraft.getMinecraft(); public ConfigUtils() { this.ye = new File(mc.gameDir + File.separator + "ye"); if (!this.ye.exists()) { this.ye.mkdirs(); } And when im trynna code something similair, i cant find the gameDir settings in mc
×
×
  • Create New...

Important Information

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