Ezio214 Posted November 16, 2022 Share Posted November 16, 2022 (edited) I'm trying to understand hitboxes in minecraft and found out about EntityEvent.Size. But where do I use that? In the render of my custom entity? Also is this on "common" side or "client" ? Edited November 18, 2022 by Ezio214 Quote Link to comment Share on other sites More sharing options...
warjort Posted November 16, 2022 Share Posted November 16, 2022 For your own entities you override getDimensions(Pose) then call refreshDimensions() when something happens that can affect the calculation. See for example LivingEntity.getDimensions(Pose) that rescales the dimensions according to getScale(). While AgeableMob calls refreshDimensions() when the mob changes from a baby to an adult which affects the return value of LivingEntity.getScale(). Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
warjort Posted November 16, 2022 Share Posted November 16, 2022 For the calculation to be consistent on client and server, you need the data that affects the calculation to be synched from server to client. Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
Ezio214 Posted November 17, 2022 Author Share Posted November 17, 2022 Thank you very much. Overriding getDimensions(Pose) and returning new dimensions I calculate did it for me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.