MrScautHD Posted March 31, 2021 Posted March 31, 2021 Hi i have a problem the EntityEvent.Size Event work not right when i sit on a entity work it not any more i hope forge can fix this in the next version Code: @SubscribeEvent public void renderPlayerPre(EntityEvent.Size size) { if (((event.getEntity().getRidingEntity()) instanceof RocketEntity.CustomEntity)) { size.setNewEyeHeight(1f); } }
Beethoven92 Posted March 31, 2021 Posted March 31, 2021 (edited) Define doesn't work please, also why you call your handler "renderPlayerPre" if you are listening to the EntityEvent.Size event? The code above shouldn't even compile, where did you define "event"? You probably meant to use "size" there. One last thing, the Size event is fired also in the constructor of the Entity, where it is unlikely a riding entity already exists..you can easily check that by logging something to the console inside the if statement and check if the message appears or not Edited March 31, 2021 by Beethoven92 Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 12:08 PM, Beethoven92 said: Define doesn't work please, also why you call your handler "renderPlayerPre" if you are listening to the EntityEvent.Size event? The code above shouldn't even compile, where did you define "event"? You probably meant to use "size" there. One last thing, the Size event is fired also in the constructor of the Entity, where it is unlikely a riding entity already exist..you can easily check that by logging something to the console inside the if statement and check if the message appears or not Expand i have check it already in the console when i leave the entity is it for 1 tick workingand then not any more (only when i check if the player ridding) you can try it self then see you it and without if player ridding a entity is it working. i hope you can help me
Beethoven92 Posted March 31, 2021 Posted March 31, 2021 As i already said, the code above should not even compile..could you send a link to your repository so we can see the whole code please? Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 12:20 PM, Beethoven92 said: As i already said, the code above should not even compile..could you send a link to your repository so we can see the whole code please? Expand https://pastebin.com/2DHjbMk8
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 12:35 PM, diesieben07 said: Stop using MCreator and learn basic Java. Expand i dont use MCreator lol, this workspace based only on a mcreator workspace but the code is from me and i self use Intellij, (is a old workspace, and i have already change the program) pls help (i dont a MCshit user)
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 12:47 PM, diesieben07 said: Post a Git repo of your mod. Expand why should i do that? (and btw my github is private) and this is not my problem, pls help only
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 (edited) On 3/31/2021 at 12:56 PM, diesieben07 said: So that we can look at your code and reproduce the issue since you are not capable of debugging it yourself. Expand https://github.com/MrScautHD/Space-Bosstools you find the code in the folder Procedure/PlayerRendererProcedure.java Edited March 31, 2021 by MrScautHD
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 1:05 PM, diesieben07 said: Why are you lying? Expand ?
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 1:08 PM, MrScautHD said: ? Expand can you help me now?
MrScautHD Posted March 31, 2021 Author Posted March 31, 2021 On 3/31/2021 at 1:09 PM, diesieben07 said: https://github.com/MrScautHD/Space-Bosstools/commit/ac5e0de37cf2cc0e21756924ce3447546227cdc3#diff-7ee0a7b1089adbddd63cb663ca265ed2d588a423635db597b651ac75ffdb2a67 Literally 10 minutes ago you were working in MCreator... Expand but the forge event is dead can you pls help me now or hate you me now because i use mcreator ( yea ok i use mcreator but i use many custom codding) and why i lying because when i say i use Mcreator then help you me not any more
Recommended Posts