Hi, I'm new to this forum and, I have a question about Minecraft programming in Java.
How do I detect a block that a mob is standing on? I'm making a Chameleon and I need to test the block that it is standing on on onLivingUpdate()?
Thank you for listening!
Bonus: Here's a pic of the Chameleon!
You just get the position of the mob. Every entity has a method to return the position,as a BlockPos instance and that should give block standing on but if you really want to make sure you can go down 0.5 in z direction.
thank you! I'll try it out. I've been modding for some months, but it was really just stuff from tutorials, so thanks for helping me out!