Posted August 4, 20223 yr I am making a plant sword and I want any mobs hit with it to be stuck in wood. I don't want it to suffocate the mob, so I want to know if a block is in it's hitbox. Please don't put anything from 1.16.5, 1.12.2, 1.14, 1.15, 1.0, or anything not 1.18.x or 1.19.x!
August 4, 20223 yr You can look at the static method Block.pushEntitiesUp() that is to avoid entities getting stuck inside blocks. Maybe you can adapt the logic to your usecase? 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.
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.