Everything posted by Jelly298
-
Check if block is in FOV of player?
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?
-
Event for picking up an item
Is there an event that is fired when the player picks up an item? If yes, what is it called?
-
Check the block left to player
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?
-
Custom button 'hitbox'
Oh thanks never thought Pythagoras theorem would come in use
-
Custom button 'hitbox'
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
- Custom button 'hitbox'
-
Custom button 'hitbox'
I have made a button that have a circle texture (by overriding GuiButton), but the hitbox stays rectangular. Any ways I can change it?
-
Can't find texture for GUI (java.io.FileNotFoundException)
Problem resolved. It just smh don't work in debug mode. Once you export it it worked
-
Can't find texture for GUI (java.io.FileNotFoundException)
Bump again pls
-
Can't find texture for GUI (java.io.FileNotFoundException)
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
-
Can't find texture for GUI (java.io.FileNotFoundException)
bump pls
-
Can't find texture for GUI (java.io.FileNotFoundException)
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
-
How to check if player is stuck in a block (in a server)?
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?
-
How to check if player is stuck in a block (in a server)?
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
-
setKeyBindState not working after tabbing out and server world restarting?
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.
-
WorldPos to ScreenPos (coordinates)?
Hello I am now coding my own mod, but how can I convert world coordinates in minecraft to screen coordinates? Is there a specific function for it, like in Unity?
IPS spam blocked by CleanTalk.