Jump to content

Jelly298

Members
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

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

Jelly298's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I want to check if a block can be seen by a player given its FOV (It is client-sided). Is there any function or algorithm that could help me do so?
  2. Is there an event that is fired when the player picks up an item? If yes, what is it called?
  3. I would like to check the block left to player and spawns an entity when it is an iron block. How can I do so?
  4. Oh thanks never thought Pythagoras theorem would come in use
  5. I mean for ordinary rectangular buttons I can do this hovered = (mouseX >= x) && (mouseY >= y) && (mouseX < x + width) && (mouseY < y + height); But then since then 'width' of a circle button is 'changing' along the 'height', how can I detect whether it is hovered/clicked. Please give me some ideas
  6. I have made a button that have a circle texture (by overriding GuiButton), but the hitbox stays rectangular. Any ways I can change it?
  7. Problem resolved. It just smh don't work in debug mode. Once you export it it worked
  8. https://github.com/Sw1rl200/SinePlotter/blob/master/src/main/java/me/SinePlotter/SinePlotter.java Sorry I am still kinda new. I know that the code don't really work and I will work with that later. But I don't understand how even an image isn't displayed. It made me struggle for like 1-2 hours. I changed the name of the image but it still doesn't work so it may not be related to that
  9. SO I am coding a simple GUI, but I encountered this error Th error : java.io.FileNotFoundException: mymod:textures/gui/mnw.png My ResourceLocation code : (Mod ID = mymod) private ResourceLocation Image = new ResourceLocation(Main.MODID, "textures/gui/mnw.png"); My file location : MyMod -> src -> main -> resources -> assets -> mymod -> textures -> gui -> mnw.png Any help is greatly appreciated
  10. Well I am trying to check if the player's lower body is stuck in a block. If I use check intersect I need to check it 8 times (all blocks around the player). Any better way to implement this?
  11. How to check if player is stuck in a block (in a server)? I use getblock from current player coords and check but it don't seem to work. idk if it's because it is happening server side and I need to use sth else to detect it???? someone pls help
  12. So I am coding a AFK mod which basically holds left click in servers (Skyblock). The problem is that once I tabbed out , the island sometimes restarts and I am warped to the community centre. I have coded so it automatically rejoin, but it doesn't hold left click anymore even I used the setKeyBindState method for keyBindAttack(I am tabbed out at this point). But after I went in the game window again, it somehow works again without me pressing left click. So is there any way that I can make setKeyBindState work after tabbing out and rejoining a server? P.S. I observed that after rejoining the server if I am tabbed out, my mouse cursor would somehow move to the centre of the game screen automatically so maybe some other code is affecting.
×
×
  • Create New...

Important Information

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