Jump to content

Bowtruckle_HD

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Bowtruckle_HD

  1. Ok, I'll try that, htx
  2. Is there any way to fix that?
  3. Hello, I have made an onPlayerMoveEvent, which turns the Player Invisible when he isn't moving, but it flickers weirdly sometimes. Could anyone look at the Code? I posted my gitHubLink below. https://github.com/Bowtrucklehd/Modding
  4. Thanks to you I figured it out. i'm gonna mark this as solved now. Btw. Thank you guys very much for helping newbies like me figuring this modding stuff out, it really helps
  5. Ok, I registered it now, but it is still not calling the vents. The code is on github if you need it
  6. I Followed A Tutorial which did this. But I'm Gonna Use that one now
  7. I think I changed it
  8. Sorry about that, did not think any of it. Thats my link, but I'm noot used to Github, so I'm not surei f it works https://github.com/Bowtrucklehd/Modding.git
  9. You mean like this?,when I do that i get the error messageCannot register a generic Event listener with addlistener
  10. Hi, I made a capability, but my CapabilityEventHandler wont activate the events. I added the code down below. GodsMod.java PlayerInfoEventHandler.java
  11. Hi, I'm trying to create an onPlayerMove event and I need to save the Players last position in a capability. Now I'm not sure when to attach it to the Player, my idea was to attach it when he joins(but that would fire every time he joins and I don't think thats necessary). Anyone could help me with that? thank you in advance
  12. I'm sorry, that was my bad, i didnt notice i used Tickevent instead of e. Thats why I was so confused. But thank you anyways. I started to question my Java knowledge myself
  13. Hi, i think the Title is explaining my problem, I never worked with Enums before, and I just dont get How to check if the Phase is End. I post the things I tried down below. Its probably just something I understood wrong. if(TickEvent.Phase instanceof TickEvent.Phase.END) { } if(TickEvent.Phase == TickEvent.Phase.END) { }
  14. Ok, thank you both very much, I did apply the invisibility effect and it works well now. I'm gonna mark this post as solved now
  15. Ok, I got it working, but there are still the particles at my feet and the shadow of the player. Any Events I can turn it off with?
  16. I think that I can figure this out myself, only one thing, which event do I use to get when a player presses a key?
  17. ok and can you tell me how to cancel it only when a player presses a button? Like do I have to use capabillities?
  18. Hello, I'm fairly new to modding and I was trying to make a player invisible, when he presses the key "g". I set up the KeyboardKeypressed event, its probably not the right way, because you cant change the keybind, but i wanted to learn , how to make a Player invisible first. Sadly I cant seem to get the Player from the event. Could anyone give me a rough explanation, on what to do and where to start? I dont just want the code, but some explanation too, so I can learn from it. I posted my Code down below, but it is not much. Thx in Advance @SubscribeEvent public void onPlayerRender (GuiScreenEvent.KeyboardKeyPressedEvent event) { if(event.getKeyCode() == 71) { } }
×
×
  • Create New...

Important Information

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