Jump to content

lethinh

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by lethinh

  1. I'm wondering if there is anyway to get the reach distance from the player to the entity for diagonals? Because I'm bad at Maths. Please help me
  2. Just like the old thread, but someone has set permission for that members cannot access it.
  3. Come on dude, you understand that. Check if the ItemStack is not EMPTY (ItemStack.EMPTY) or by using ItemStack#isEmpty.
  4. Dude, you have to first check if the ItemStack is not null first. Then do whatever you want
  5. But I really need help is drawing bevelved rectangles. And I wonder if there are any ways to do it?
  6. No, it doesn't like that. It is kind of Gui.drawRect method, but I don't know how to make the rectangle beveled.
  7. Yes, I have already looked at ItemEnderPearl and EntityEnderPearl, but no luck. Here is my code: https://pastebin.com/Ff1eXKJk But it isn't correct, it keeps saying "It is dangerous to throw", I throwed it and I still on the ground (safe)
  8. When the player is holding it and look at the specific position (to be landed place)
  9. How to get the position of ender pearl's to be landed place?
  10. Ok, so I have to create a "bot" (using java.awt.Robot)
  11. Umm, but you said that is the way to increase CPS. So what is the way to get many clicks after I clicked?
  12. Just kind of like that. But I thought I added clicks.add(Long.valueOf(System.currentTimeMillis())); in the code.
  13. Oh, but what do I have to do with the list? You said in the cps reply that just add System.currentTimeMillis() to the list. (May be I misunderstanded)
  14. I mean I'm going to register many clicks when I clicked, not for displaying it. And onClientTick is where I have to remove the old entries?
  15. I don't really understand what you mean. And I'm not going to display this list, and where to remove click from the list (onClientTick)?
  16. https://pastebin.com/u3iQe90P And I have also registered it using MinecraftForge#EventBus::register
  17. Uhh, I did that but it only registers 1 click (after the click), I mean
  18. I want to register many clicks (CPS) when clicked. But I don't know how to. I'll greatly appreciate your help!
×
×
  • Create New...

Important Information

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