
Bowtruckle_HD
Members-
Posts
20 -
Joined
-
Last visited
Everything posted by Bowtruckle_HD
-
Ok, I'll try that, htx
-
Is there any way to fix that?
-
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
-
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
-
Ok, I registered it now, but it is still not calling the vents. The code is on github if you need it
-
I Followed A Tutorial which did this. But I'm Gonna Use that one now
-
I think I changed it
-
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
-
You mean like this?,when I do that i get the error messageCannot register a generic Event listener with addlistener
-
Hi, I made a capability, but my CapabilityEventHandler wont activate the events. I added the code down below. GodsMod.java PlayerInfoEventHandler.java
-
[Solved](1.16.5) Attach Capability to every Player.
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
Thank you very much -
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
-
[Solved](1.16.5) Check Phase PlayerTickEvent
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
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 -
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) { }
-
[Solved](1.16.5)How to get the Player who pressed a key?
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
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 -
[Solved](1.16.5)How to get the Player who pressed a key?
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
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? -
[Solved](1.16.5)How to get the Player who pressed a key?
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
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? -
[Solved](1.16.5)How to get the Player who pressed a key?
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
ok and can you tell me how to cancel it only when a player presses a button? Like do I have to use capabillities? -
[Solved](1.16.5)How to get the Player who pressed a key?
Bowtruckle_HD replied to Bowtruckle_HD's topic in Modder Support
yes -
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) { } }